joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4421c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x4421f1
je 0x44224b
sub eax, 7
je 0x442212
dec eax
je 0x44223c
sub eax, 0x17
je 0x4422f0
jmp 0x44232e
add eax, 0xffffff00
sub eax, 9
jb 0x4422dc
add eax, 0xffffff09
sub eax, 0xb
jb 0x4422a4
jmp 0x44232e
mov eax, ebx
call fcn.00428f7c
mov edi, eax
test edi, edi
je 0x44238e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x442397
jmp 0x44238e
test byte [ebx + 0x44], 0x20
jne 0x442397
jmp 0x44238e
mov edx, esi
mov eax, ebx
call fcn.0043f7c0
cmp dword [esi + 0xc], 0xffffffff
jne 0x442397
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00407760
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0043e2f4
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00442098
test eax, eax
je 0x442397
mov dword [esi + 0xc], 1
jmp 0x442397
mov edx, esi
mov eax, ebx
call fcn.0044212c
test al, al
je 0x44238e
cmp dword [esi + 0xc], 0
jne 0x442397
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.00444860
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x442397
mov eax, ebx
call fcn.0043ee5c
test al, al
jne 0x442397
jmp 0x44238e
mov eax, ebx
call fcn.00444860
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x44238e
cmp dword [0x4a0a00], 0
je 0x44238e
mov eax, dword [0x4a0a00]
cmp ebx, dword [eax + 0x24]
jne 0x44238e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4a0a00]
call fcn.0043f6f4
jmp 0x44238e
mov eax, dword [0x4be784]
cmp byte [eax + 0x20], 0
je 0x44238e
mov eax, dword [0x4be784]
cmp dword [eax + 0x1c], 0
je 0x44238e
mov eax, dword [esi]
mov edx, dword [0x4be784]
cmp eax, dword [edx + 0x1c]
jne 0x44238e
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00428ec0
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00403054
jmp 0x442397
mov edx, esi
mov eax, ebx
call fcn.0043f7c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442858
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x442874
cmp dword [esi + 4], 0
je 0x4428a1
test byte [ebx + 0x45], 1
jne 0x442893
mov eax, ebx
call fcn.00441790
test eax, eax
jne 0x442893
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4429b1
mov edx, esi
mov eax, ebx
call fcn.004424d0
jmp 0x4429b1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4429aa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00444860
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043f6f4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00442858
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00444860
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4429b1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44adf4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403fe4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44ae0d
test al, 0x10
jne 0x44ae11
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x44b0cc
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
push eax
mov eax, dword [eax]
mov esi, edx
or ecx, ecx
je 0x44b0f0
mov edx, eax
shl edx, 8
mov bl, byte [esi]
shr eax, 0x18
xor al, bl
mov eax, dword [eax*4 + 0x4a0b58]
xor eax, edx
inc esi
dec ecx
jne 0x44b0d7
mov ecx, eax
pop eax
mov dword [eax], ecx
pop ebx
pop esi
ret
Function at 0x453524
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00453088
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403fe4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x453582
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4bda60]
mov dl, 1
mov eax, dword [0x452f80]
call fcn.0040b514
call fcn.004035d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45358c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403fe4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4535e4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4bdce8]
mov dl, 1
mov eax, dword [0x452f80]
call fcn.0040b514
call fcn.004035d0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004530d0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x453dec
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
and ax, 0xffff
cmp ax, 0xffff
jne 0x453e1b
mov eax, esi
call fcn.00404324
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x453e1b
push 0x20
push edi
call sub.kernel32.dll_SetFileAttributesW
push ebx
mov ecx, esi
mov dl, 1
mov eax, dword [0x44b1f0]
call fcn.0044b358
cmp dword [eax + 8], 0xffffffff
jne 0x453e37
call fcn.00402e78
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x454fc0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov ebp, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov dl, 1
mov eax, dword [0x40ea34]
call fcn.00402e48
mov esi, eax
push esi
push 0x454fa8
call sub.user32.dll_EnumWindows
mov edi, dword [esi + 8]
dec edi
test edi, edi
jl 0x455040
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.0041031c
cmp ebp, eax
je 0x45503c
push 0x50
lea eax, [esp + 0xc]
push eax
mov edx, ebx
mov eax, esi
call fcn.0041031c
push eax
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x45503c
lea eax, [esp + 8]
mov edx, dword [esp]
call fcn.0040940c
test eax, eax
jne 0x45503c
mov edx, ebx
mov eax, esi
call fcn.0041031c
mov dword [esp + 4], eax
jmp 0x455040
inc ebx
dec edi
jne 0x454ff6
mov eax, esi
call fcn.00402e78
mov eax, dword [esp + 4]
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4551dc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
xor edx, edx
mov dword [ebp - 0x88], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x455261
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x21
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x83]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x455248
lea eax, [ebp - 0x83]
call fcn.004092e0
mov byte [ebp - 0x84], al
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.00403dc4
mov eax, dword [ebp - 0x88]
mov edx, ebx
call fcn.00408818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455268
lea eax, [ebp - 0x88]
call fcn.00403ba0
ret

Function at 0x455270
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4552da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x1e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x23]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4552c4
lea eax, [ebp - 0x23]
call fcn.004092e0
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00403dc4
mov eax, dword [ebp - 0x28]
mov edx, ebx
call fcn.00408818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4552e1
lea eax, [ebp - 0x28]
call fcn.00403ba0
ret

Function at 0x455440
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x455556
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [esi]
mov eax, 0x45556c
call fcn.0040410c
mov ebx, eax
test ebx, ebx
je 0x455535
cmp ebx, dword [ebp - 8]
je 0x455535
mov dword [ebp - 8], ebx
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.00404068
mov edx, dword [esi]
mov eax, 0x45556c
call fcn.0040410c
mov edi, eax
test edi, edi
je 0x455535
lea eax, [ebp - 4]
push eax
mov ecx, edi
sub ecx, ebx
mov eax, dword [esi]
mov edx, ebx
call fcn.00404028
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, esi
mov edx, ebx
call fcn.00404068
cmp dword [ebp - 4], 0
je 0x45546c
push 0x45556c
push dword [ebp - 4]
push 0x45556c
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403ee0
push 0x104
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
call fcn.00403ff0
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00403dd0
mov eax, dword [ebp - 0x110]
mov edx, esi
mov ecx, ebx
call fcn.004040b0
jmp 0x45546c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45555d
lea eax, [ebp - 0x110]
call fcn.00403ba0
lea eax, [ebp - 4]
call fcn.00403ba0
ret

Function at 0x4555c8
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov edi, eax
mov esi, edx
mov ecx, ecx
shr ecx, 2
cld
mov eax, dword [esi]
xor dword [edi], eax
add esi, 4
add edi, 4
loop 0x4555d4
pop esi
pop edi
ret
Function at 0x455e9c
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test bl, bl
je 0x455eb9
test byte [esi + 0x20], 0x10
je 0x455eb9
mov eax, 0x455f28
call fcn.0044ac04
jmp 0x455f1a
cmp bl, byte [esi + 0x28]
je 0x455f1a
test bl, bl
je 0x455ef2
test byte [esi + 0x20], 0x10
jne 0x455f17
mov cl, 1
mov dl, 1
mov eax, dword [0x455c10]
call fcn.00415768
mov edi, eax
mov dword [esi + 0x48], edi
mov dword [edi + 0x30], esi
mov byte [edi + 0xe], 1
mov eax, edi
call fcn.004158a4
mov eax, esi
call fcn.00455f4c
jmp 0x455f17
test byte [esi + 0x20], 0x10
jne 0x455f17
mov eax, dword [esi + 0x24]
push eax
call sub.winmm.dll_timeKillEvent
push 0
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [esi + 0x48]
call fcn.00402e78
mov byte [esi + 0x28], bl
pop edi
pop esi
pop ebx
ret

Function at 0x456a28
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x456ab1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4be8ec
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x456a9b
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040abd0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x456ac8
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4bdbb4]
mov dl, 1
mov eax, dword [0x4562e4]
call fcn.0040b514
call fcn.004035d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456ab8
lea eax, [ebp - 0x1c]
call fcn.00403ba0
ret

Function at 0x457120
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00457044
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00403054
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x457184
call fcn.00456970
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x457176
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [esi + 8], al
mov cl, 2
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00403054
pop esi
pop ebx
ret

Function at 0x457234
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00403fe4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402b60
test ebx, ebx
je 0x45727f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x45735c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45738d
mov ecx, dword [0x4bdaa4]
mov dl, 1
mov eax, dword [0x4562e4]
call fcn.0040b4d8
call fcn.004035d0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4573ba
mov ecx, dword [0x4bda40]
mov dl, 1
mov eax, dword [0x4562e4]
call fcn.0040b4d8
call fcn.004035d0
xor eax, eax
push ebp
push 0x457439
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.00403054
cmp byte [ebp + 8], 0
je 0x457415
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004572c4
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00457120
jmp 0x45742f
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00456c5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x457456
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45761c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00456edc
xor edx, edx
push ebp
push 0x45777c
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x457766
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x457666
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x457670
call fcn.00403670
jmp 0x457783
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00412558
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
test ebx, ebx
jle 0x45775b
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
cmp eax, 0xffffffff
jne 0x457719
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x457709
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403054
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.004575d4
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45778c]
cmp dl, byte [eax + 0x28]
je 0x457762
call fcn.0040b3b4
jmp 0x457762
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00412568
jmp 0x457762
cmp eax, ebx
jge 0x457732
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00412568
jmp 0x457670
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00412558
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00412574
cmp ebx, eax
jne 0x457670
push ebp
call fcn.004575d4
pop ecx
jmp 0x457762
push ebp
call fcn.004575d4
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457783
mov eax, dword [ebp - 4]
call fcn.00456ee8
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457790
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4578b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00456edc
xor eax, eax
push ebp
push 0x457895
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4577e0
call fcn.00403670
jmp 0x45789c
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45787f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45787f
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403054
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45787f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040abd0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4578cc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4bdbb4]
mov dl, 1
mov eax, dword [0x4562e4]
call fcn.0040b514
call fcn.004035d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45789c
mov eax, dword [ebp - 4]
call fcn.00456ee8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4578b9
lea eax, [ebp - 0x28]
call fcn.00403ba0
ret
Function at 0x457918
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457a62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00456edc
xor eax, eax
push ebp
push 0x457a45
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x45797d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45797d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x457a2f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x457990
call fcn.00403670
jmp 0x457a4c
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x457a2f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x457a2f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403054
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x457a2f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040abd0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x457a7c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4bdbb4]
mov dl, 1
mov eax, dword [0x4562e4]
call fcn.0040b514
call fcn.004035d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457a4c
mov eax, dword [ebp - 4]
call fcn.00456ee8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457a69
lea eax, [ebp - 0x28]
call fcn.00403ba0
ret
Function at 0x4583dc
Capabilities:
Create pipe

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov eax, ebx
call fcn.00458580
mov dword [esp + 0xc], 0xc
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0xffffffff
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x34]
push eax
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x45841d
call fcn.0040c6b0
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x30]
push eax
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x45843b
call fcn.0040c6b0
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x38]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x458459
call fcn.0040c6b0
push 2
push 0
push 0
lea eax, [ebx + 0x28]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x458482
call fcn.0040c6b0
push 2
push 0
push 0
lea eax, [ebx + 0x24]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x4584ab
call fcn.0040c6b0
push 2
push 0
push 0
lea eax, [ebx + 0x2c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x4584d4
call fcn.0040c6b0
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dl, 1
mov eax, dword [0x40f158]
call fcn.00402e48
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x40f158]
call fcn.00402e48
mov dword [ebx + 0x68], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
xor eax, eax
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebx + 0x58]
mov edx, dword [eax]
call dword [edx + 0x40]
add esp, 0x18
pop ebx
ret