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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x454270]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454251
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454260
or bl, 4
test esi, 0x20000000
je 0x45426b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x459230
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4592be
mov ax, word [esi + 4]
sub ax, 9
je 0x459257
add eax, 0xffffffe4
sub ax, 4
jb 0x459289
jmp 0x4592be
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4592be
push 1
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
setge cl
mov edx, dword [ebx + 0x220]
mov eax, ebx
call fcn.00443644
mov dword [esi + 0xc], 1
pop esi
pop ebx
ret
mov eax, dword [ebx + 0x220]
test eax, eax
je 0x4592c7
push 0
mov dx, word [esi + 4]
cmp dx, 0x27
je 0x4592a9
cmp dx, 0x28
je 0x4592a9
xor ecx, ecx
jmp 0x4592ab
mov cl, 1
mov edx, dword [eax + 0x30]
xchg edx, eax
call fcn.00443644
mov dword [esi + 0xc], 1
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
call fcn.00442554
pop esi
pop ebx
ret

Function at 0x45a934
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45a946
add esp, 0xfffffff0
call fcn.00404114
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420bd8
mov eax, dword [0x5738bc]
mov dword [eax + 4], ebx
mov dword [eax], 0x45acd8
mov eax, dword [0x5738d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ace4
mov eax, ebx
call fcn.0045acf0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4176c8]
call fcn.00403dac
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4176c8]
call fcn.00403dac
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4176c8]
call fcn.00403dac
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4176c8]
call fcn.00403dac
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4176c8]
call fcn.00403dac
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x457108
push eax
push 0
push 0
mov eax, dword [0x573cec]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4226c8]
call fcn.00423f00
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4226c8]
call fcn.00423f00
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4226c8]
call fcn.00423f00
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045b140
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b008
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b008
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b008
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45aa83
call fcn.0040416c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45adec
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45af97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45af78
mov dl, 1
mov eax, dword [0x417d2c]
call fcn.00403dac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404bec
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45af67
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00447e7c
test al, al
je 0x45af5a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45afa8
lea eax, [ebp - 0x254]
call fcn.0040a53c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45af5a
xor eax, eax
push ebp
push 0x45af53
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45afe0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45af3c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e5c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45af3c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45af5a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ae5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c650
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45af9e
lea eax, [ebp - 0x260]
call fcn.00404bec
ret

Function at 0x45b8e0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x575b54]
cmp byte [eax + 0xa5], 0
jne 0x45b951
cmp dword [0x575b6c], 0
jne 0x45b912
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b89c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x575b6c], eax
cmp dword [0x575b68], 0
jne 0x45b92d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x575b68], eax
cmp dword [0x575b70], 0
jne 0x45b951
push esp
push 0
push 0
push 0x45b840
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x575b70], eax
pop edx
ret
Function at 0x45bfe4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x575b54]
cmp dword [eax + 0x30], 0
je 0x45c08e
cmp dword [ebx + 0x94], 0
jne 0x45c088
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45bf74
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45c088
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45c04e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45c088
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419dc8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45c05d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45cbec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45cc21
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404cdc
jmp 0x45cc2e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c40
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45dd58
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45dd99
mov eax, esi
call fcn.00443414
test al, al
je 0x45dd99
mov eax, dword [ebx + 0x84]
call fcn.00443110
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45dd99
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443110
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45ef1c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x45efab
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x575b7c
push 0x202
call sub.wsock32.dll_WSAStartup
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45ef95
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040cc80
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
mov eax, 0x45efc0
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x1c]
push eax
push 2
mov ecx, dword [0x574144]
mov dl, 1
mov eax, dword [0x45e70c]
call fcn.0040d5c0
call fcn.0040457c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45efb2
lea eax, [ebp - 0x20]
call fcn.00404bec
ret
Function at 0x45f614
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov al, byte [0x45f690]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x28]
je 0x45f646
mov dword [ebp - 8], 0x401
mov eax, dword [ebp - 4]
call fcn.0045f7cc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
mov al, byte [0x45f690]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x28]
jne 0x45f689
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
mov esp, ebp
pop ebp
ret

Function at 0x45f740
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045f614
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403fe4
push 0x10
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x45f7c4
mov eax, dword [ebp - 4]
call fcn.0045ee50
mov eax, dword [ebp - 4]
mov byte [eax + 0x29], 0
mov eax, dword [ebp - 4]
test byte [eax + 0x28], 0x10
jne 0x45f7b6
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 8], al
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403fe4
pop esi
pop ecx
pop ebp
ret

Function at 0x45f804
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004050ac
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 4
call fcn.004035b8
cmp dword [ebp - 0x10], 0
je 0x45f873
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 1]
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 2]
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 3]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x45f97c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45f9ae
mov ecx, dword [0x573e14]
mov dl, 1
mov eax, dword [0x45e70c]
call fcn.0040d584
call fcn.0040457c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x45f9df
mov ecx, dword [0x573c8c]
mov dl, 1
mov eax, dword [0x45e70c]
call fcn.0040d584
call fcn.0040457c
xor eax, eax
push ebp
push 0x45fa5d
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.00403fe4
cmp byte [ebp + 8], 0
je 0x45fa38
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045f8d0
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x1c]
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.0045f740
jmp 0x45fa53
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045f1b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45fa7a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45fcc8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045f4a4
xor eax, eax
push ebp
push 0x45fe46
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 0x45fe30
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45fd13
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45fd1d
call fcn.00404628
jmp 0x45fe4d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c70c
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1018]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x45fe25
push 0
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x45fdd3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x2733
je 0x45fdc0
lea eax, [ebp - 0x18]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403fe4
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.0045fc80
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45fe58]
cmp dl, byte [eax + 0x28]
je 0x45fe2c
call fcn.0040d49c
jmp 0x45fe2c
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c72c
jmp 0x45fe2c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jle 0x45fdf4
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041c72c
jmp 0x45fd1d
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.0041c70c
cmp edx, dword [esp + 4]
jne 0x45fe14
cmp eax, dword [esp]
pop edx
pop eax
jne 0x45fd1d
push ebp
call fcn.0045fc80
pop ecx
jmp 0x45fe2c
push ebp
call fcn.0045fc80
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fe4d
mov eax, dword [ebp - 4]
call fcn.0045f4bc
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fe5c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ff86
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045f4a4
xor eax, eax
push ebp
push 0x45ff69
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45feae
call fcn.00404628
jmp 0x45ff70
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x45ff53
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x45ff53
lea eax, [ebp - 0x14]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403fe4
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 - 0x14], 0
je 0x45ff53
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040cc80
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, 0x45ffa0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x574144]
mov dl, 1
mov eax, dword [0x45e70c]
call fcn.0040d5c0
call fcn.0040457c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ff70
mov eax, dword [ebp - 4]
call fcn.0045f4bc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ff8d
lea eax, [ebp - 0x30]
call fcn.00404bec
ret
Function at 0x460018
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46016b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045f4a4
xor eax, eax
push ebp
push 0x46014e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x460080
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x460080
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x460138
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x460093
call fcn.00404628
jmp 0x460155
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x460138
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x460138
lea eax, [ebp - 0x14]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403fe4
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 - 0x14], 0
je 0x460138
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040cc80
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, 0x460184
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x574144]
mov dl, 1
mov eax, dword [0x45e70c]
call fcn.0040d5c0
call fcn.0040457c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460155
mov eax, dword [ebp - 4]
call fcn.0045f4bc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460172
lea eax, [ebp - 0x30]
call fcn.00404bec
ret

Function at 0x465e4c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
test dl, dl
je 0x465e5e
add esp, 0xfffffff0
call fcn.00404114
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00403dac
push 0x40
push 0x1000
push 0x800
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x465e9f
call fcn.0040416c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret
Function at 0x48323c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jle 0x4832e6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jle 0x4832e6
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x482f7c]
call fcn.00483648
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4832df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00402d40
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.004838ec
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.0041c970
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4832e6
mov eax, dword [ebp - 0xc]
call fcn.00403ddc
ret
mov esp, ebp
pop ebp
ret

Function at 0x490390
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.004050ac
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4903e8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x574448]
mov dl, 1
mov eax, dword [0x48fe9c]
call fcn.0040d5c0
call fcn.0040457c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00490010
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