joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d140
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x41d1f8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x41d1e2
xor eax, eax
push ebp
push 0x41d1d8
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0xf003f
push 0
push 0x41d20c
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
je 0x41d1c0
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404bd4
push eax
push ebx
call sub.advapi32.dll_RegEnumKeyExA
mov edi, eax
test edi, edi
je 0x41d1ba
push edi
call sub.advapi32.dll_RegCloseKey
mov esi, 1
push edi
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.advapi32.dll_AdjustTokenPrivileges
test esi, esi
jle 0x41d1ca
mov byte [ebp - 5], 1
jmp 0x41d1ce
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41d1e2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d1ff
lea eax, [ebp - 4]
call fcn.00404714
ret

Function at 0x41d41c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push ebp
push 0x41d459
push dword fs:[edi]
mov dword fs:[edi], esp
cmp edx, dword [ebp + 8]
jne 0x41d44d
mov esi, eax
mov eax, edx
test eax, eax
jbe 0x41d449
mov dl, byte [esi]
xor dl, 8
mov byte [ecx], dl
inc esi
inc ecx
dec eax
jne 0x41d43d
mov bl, 1
jmp 0x41d44f
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41d465
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41d470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push ebp
push 0x41d4ad
push dword fs:[edi]
mov dword fs:[edi], esp
cmp edx, dword [ebp + 8]
jne 0x41d4a1
mov esi, eax
mov eax, edx
test eax, eax
jbe 0x41d49d
mov dl, byte [esi]
xor dl, 8
mov byte [ecx], dl
inc esi
inc ecx
dec eax
jne 0x41d491
mov bl, 1
jmp 0x41d4a3
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41d4b9
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41d728
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x4765bc]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret
Function at 0x41da24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x41da3d
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x41da36
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x41da4f
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x41da48
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0041d618
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x41da69
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0041d728
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x41daee
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x41db0b
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0041d6a8
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x41db34
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41db4c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x41db65
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x41db5e
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x41db79
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0041d510
test bl, bl
jne 0x41dc4c
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x47c950
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x41dbb0
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x41dbc4
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0041da24
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x41dbf6
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x41dba5
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x41dc19
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x41dc2a
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x41dc3e
jmp 0x41dd07
cmp bl, 1
jne 0x41dd07
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x47c9aa
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x41dc6c
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x41dc80
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0041da24
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x41dcb2
sub ebx, 6
inc dword [ebp - 8]
jne 0x41dc61
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x41dcd9
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x41dcea
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x41dcfe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0041d594
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8

Function at 0x41f848
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f84e
ret
Function at 0x43ea68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43ebe0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.user32.dll_GetKeyboardState
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x43ebf4
call fcn.00409e10
mov edx, dword [ebp - 4]
mov eax, 0x47cc94
call fcn.00404768
mov eax, dword [0x47cc94]
call fcn.00404bd4
push eax
call sub.user32.dll_InflateRect
mov word [0x47cc90], ax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x47c664]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call sub.user32.dll_GetLastActivePopup
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x43ec08
call fcn.00409e10
mov edx, dword [ebp - 0x10]
mov eax, 0x47cc98
call fcn.00404768
mov eax, dword [0x47cc98]
call fcn.00404bd4
push eax
call sub.user32.dll_InflateRect
mov word [0x47cc92], ax
mov eax, dword [0x47cc98]
call fcn.00404bd4
push eax
call fcn.004073e8
mov dword [0x47cc9c], eax
mov dl, 1
mov eax, dword [0x412b08]
call fcn.004151a8
mov dword [0x47ccd4], eax
call fcn.0043e66c
mov dl, 1
mov eax, dword [0x43061c]
call fcn.0043e494
mov dword [0x47cc84], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x449a20]
call fcn.0045068c
mov edx, dword [0x47b188]
mov dword [edx], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x449af8]
call fcn.00451770
mov edx, dword [0x47b018]
mov dword [edx], eax
mov eax, dword [0x47b018]
mov eax, dword [eax]
mov dl, 1
call fcn.00453370
mov ecx, 0x43097c
mov edx, 0x43098c
mov eax, dword [0x42e594]
call fcn.004148b8
push 0x43ec1c
call sub.user32.dll_GetSubMenu
mov ebx, eax
test ebx, ebx
je 0x43ebc2
push 0x43ec24
push ebx
call sub.user32.dll_GetSysColor
mov dword [0x476df4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ebe7
lea eax, [ebp - 0x10]
call fcn.00404714
lea eax, [ebp - 4]
call fcn.00404714
ret
Function at 0x45d1e8
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 0x45d271
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x47cd60
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x45d25b
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040bfcc
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, 0x45d288
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x47b0a8]
mov dl, 1
mov eax, dword [0x45c9a8]
call fcn.0040c8f0
call fcn.004040cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d278
lea eax, [ebp - 0x1c]
call fcn.00404714
ret

Function at 0x45d924
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0045d848
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403b3c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x45d988
call fcn.0045d0ec
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x45d97a
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403b3c
pop esi
pop ebx
ret

Function at 0x45d9ac
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404bd4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004031dc
test ebx, ebx
je 0x45d9f7
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 0x45dad4
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 edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45db05
mov ecx, dword [0x47afcc]
mov dl, 1
mov eax, dword [0x45c9a8]
call fcn.0040c8b4
call fcn.004040cc
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 0x45db32
mov ecx, dword [0x47af60]
mov dl, 1
mov eax, dword [0x45c9a8]
call fcn.0040c8b4
call fcn.004040cc
xor eax, eax
push ebp
push 0x45dbae
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403b3c
cmp byte [ebp + 8], 0
je 0x45db8a
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, edi
mov eax, dword [ebp - 4]
call fcn.0045da3c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0045d924
jmp 0x45dba4
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, edi
mov eax, dword [ebp - 4]
call fcn.0045d41c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45dbcb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45ddac
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045d6e4
xor eax, eax
push ebp
push 0x45df1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x45df07
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45ddf7
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45de01
call fcn.00404178
jmp 0x45df24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416bd4
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 + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x45defc
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
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x45deaf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x45de9c
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b3c
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.0045dd64
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45df30]
cmp dl, byte [eax + 0x28]
je 0x45df03
call fcn.0040c7d8
jmp 0x45df03
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416bf4
jmp 0x45df03
cmp ecx, ebx
jge 0x45decb
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416bf4
jmp 0x45de01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416bd4
cmp edx, dword [esp + 4]
jne 0x45deeb
cmp eax, dword [esp]
pop edx
pop eax
jne 0x45de01
push ebp
call fcn.0045dd64
pop ecx
jmp 0x45df03
push ebp
call fcn.0045dd64
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45df24
mov eax, dword [ebp - 4]
call fcn.0045d6f0
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45df4c
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 0x45e06e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045d6e4
xor eax, eax
push ebp
push 0x45e051
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 0x45df9c
call fcn.00404178
jmp 0x45e058
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 0x45e03b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45e03b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b3c
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 0x45e03b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bfcc
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, 0x45e088
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x47b0a8]
mov dl, 1
mov eax, dword [0x45c9a8]
call fcn.0040c8f0
call fcn.004040cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e058
mov eax, dword [ebp - 4]
call fcn.0045d6f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e075
lea eax, [ebp - 0x28]
call fcn.00404714
ret
Function at 0x45e0d4
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 0x45e21e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045d6e4
xor eax, eax
push ebp
push 0x45e201
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x45e139
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45e139
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 0x45e1eb
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45e14c
call fcn.00404178
jmp 0x45e208
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 0x45e1eb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45e1eb
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b3c
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 0x45e1eb
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bfcc
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, 0x45e238
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x47b0a8]
mov dl, 1
mov eax, dword [0x45c9a8]
call fcn.0040c8f0
call fcn.004040cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e208
mov eax, dword [ebp - 4]
call fcn.0045d6f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e225
lea eax, [ebp - 0x28]
call fcn.00404714
ret
Function at 0x45ec90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45ee66
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
je 0x45eced
lea edx, [ebp - 0x14]
mov eax, 0x45eb6c
call fcn.004064f0
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x45eb10]
call fcn.0040c7f8
call fcn.004040cc
mov eax, dword [ebp - 4]
mov esi, eax
lea edi, [ebx + 8]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x44]
mov esi, eax
mov ecx, eax
sub ecx, 0x40
mov edx, dword [ebp - 4]
add edx, 0x40
mov eax, dword [ebx + 0x64]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 4]
add eax, esi
cmp dword [eax], 0x4550
je 0x45ed42
lea edx, [ebp - 0x18]
mov eax, 0x45eb74
call fcn.004064f0
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x45eb10]
call fcn.0040c7f8
call fcn.004040cc
add esi, 4
mov eax, dword [ebp - 4]
add eax, esi
push esi
mov esi, eax
lea edi, [ebx + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
add esi, 0x14
mov edi, dword [ebp - 4]
add edi, esi
cmp word [edi], 0x10b
je 0x45ed86
lea edx, [ebp - 0x1c]
mov eax, 0x45eb7c
call fcn.004064f0
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x45eb10]
call fcn.0040c7f8
call fcn.004040cc
movzx edx, word [ebx + 0x58]
lea eax, [ebx + 0x5c]
call fcn.0040276c
movzx ecx, word [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
mov eax, edi
call fcn.004029d8
movzx eax, word [ebx + 0x58]
add esi, eax
mov edi, dword [ebp - 4]
add edi, esi
movzx eax, word [ebx + 0x4a]
shl eax, 3
lea eax, [eax + eax*4]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x14]
sub eax, dword [ebp - 0xc]
mov dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 0
jle 0x45ede5
mov eax, dword [ebx + 0x6c]
call fcn.0040272c
mov dword [ebx + 0x68], eax
mov edx, dword [ebx + 0x68]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x6c]
call fcn.004029d8
movzx eax, word [ebx + 0x4a]
dec eax
test eax, eax
jl 0x45ee1f
inc eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 4]
add edi, esi
push edi
mov eax, dword [edi + 0x14]
add eax, dword [ebp - 4]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x45e994]
call fcn.0045f564
mov edx, eax
mov eax, dword [ebx + 0x60]
call fcn.0042890c
add esi, 0x28
dec dword [ebp - 0x10]
jne 0x45edf2
mov esi, dword [edi + 0x14]
add esi, dword [edi + 0x10]
mov edi, dword [ebp - 8]
sub edi, esi
mov dword [ebx + 0x74], edi
test edi, edi
jle 0x45ee4b
mov eax, edi
call fcn.0040272c
mov dword [ebx + 0x70], eax
mov edx, dword [ebx + 0x70]
mov eax, dword [ebp - 4]
add eax, esi
mov ecx, dword [ebx + 0x74]
call fcn.004029d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ee6d
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404738
ret