joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a570
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4ac118]
cmp byte [eax + 0xc], 0
je 0x45a6dd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a6d6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4adba8], 0
jne 0x45a5c4
push 0x45a6e4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45a6ec
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adba8], eax
cmp dword [0x4aae60], 0
jne 0x45a6bf
push 0x45a6fc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4aae60], eax
cmp dword [0x4aae60], 0
je 0x45a6bf
push 0x45a708
mov eax, dword [0x4aae60]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adbac], eax
push 0x45a718
mov eax, dword [0x4aae60]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adbb0], eax
push 0x45a72c
mov eax, dword [0x4aae60]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adbb4], eax
push 0x45a744
mov eax, dword [0x4aae60]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adbb8], eax
push 0x45a75c
mov eax, dword [0x4aae60]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adbbc], eax
push 0x45a770
mov eax, dword [0x4aae60]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adbc0], eax
push 0x45a788
mov eax, dword [0x4aae60]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adbc4], eax
push 0x45a7a0
mov eax, dword [0x4aae60]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adbc8], eax
push 0x45a7bc
mov eax, dword [0x4aae60]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adbcc], eax
push 0x45a7c8
mov eax, dword [0x4aae60]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4adbd0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a6dd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45f250
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403f7c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45f29f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004041ec
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4669f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x466a48]
test si, 4
je 0x466a0c
or bl, 1
test si, 8
je 0x466a16
or bl, 4
test si, 1
je 0x466a20
or bl, 8
test si, 2
je 0x466a2a
or bl, 0x10
test si, 0x10
je 0x466a34
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466a43
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x466a4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x466a84]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466a65
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466a74
or bl, 4
test esi, 0x20000000
je 0x466a7f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x466ad4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00466a88
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x46d14c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46d15e
add esp, 0xfffffff0
call fcn.004034cc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421674
mov eax, dword [0x4abd40]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d4f0
mov eax, dword [0x4abd50]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d4fc
mov eax, ebx
call fcn.0046d508
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416100]
call fcn.00403138
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416100]
call fcn.00403138
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416100]
call fcn.00403138
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416100]
call fcn.00403138
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416100]
call fcn.00403138
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, 0x469924
push eax
push 0
push 0
mov eax, dword [0x4abec4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4231ac]
call fcn.004249d4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4231ac]
call fcn.004249d4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4231ac]
call fcn.004249d4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046d970
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d84c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d84c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d84c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46d29b
call fcn.00403524
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46d630
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 0x46d7db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46d7bc
mov dl, 1
mov eax, dword [0x4167b8]
call fcn.00403138
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f7c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46d7ab
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.0045a8d0
test al, al
je 0x46d79e
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, 0x46d7ec
lea eax, [ebp - 0x254]
call fcn.0040908c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46d79e
xor eax, eax
push ebp
push 0x46d797
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 0x46d824
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46d780
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041ec
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 0x46d780
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d79e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46d6a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b100
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 0x46d7e2
lea eax, [ebp - 0x260]
call fcn.00403f7c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4adbf4]
cmp byte [eax + 0xa5], 0
jne 0x46e181
cmp dword [0x4adc0c], 0
jne 0x46e142
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46e0cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4adc0c], eax
cmp dword [0x4adc08], 0
jne 0x46e15d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4adc08], eax
cmp dword [0x4adc10], 0
jne 0x46e181
push esp
push 0
push 0
push 0x46e070
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4adc10], eax
pop edx
ret
Function at 0x46e2d4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46e2eb
add esp, 0xfffffff0
call fcn.004034cc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421674
mov eax, dword [0x4abeb0]
cmp word [eax + 2], 0
jne 0x46e313
mov eax, dword [0x4abeb0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046fa3c
mov eax, dword [0x4abf78]
cmp word [eax + 2], 0
jne 0x46e32d
mov eax, dword [0x4abf78]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046fc34
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416100]
call fcn.00403138
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416100]
call fcn.00403138
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x423d40]
call fcn.0042b6d0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46e4b4
mov eax, dword [0x4abdc4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042baa0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4701d4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4abdc4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c790
test eax, eax
je 0x46e422
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a6c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c7b8
test eax, eax
je 0x46e436
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041ec
mov eax, dword [0x4abc58]
cmp byte [eax], 0
jne 0x46e46a
mov eax, ebx
call fcn.0046e5dc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004703b0
mov eax, ebx
call fcn.00470d74
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e4aa
call fcn.00403524
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e85c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4adbf4]
cmp dword [eax + 0x30], 0
je 0x46e906
cmp dword [ebx + 0x94], 0
jne 0x46e900
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46e7ec
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46e900
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 0x46e8c6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46e900
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.00418a1c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46e8d5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46f468
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 0x46f49d
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.0040406c
jmp 0x46f4aa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fd0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47058c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4705cd
mov eax, esi
call fcn.00455e68
test al, al
je 0x4705cd
mov eax, dword [ebx + 0x84]
call fcn.00455b64
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4705cd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00455b64
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x471c58
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
push edi
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_recv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
pop edi
pop esi
pop ebx
ret
Function at 0x471dd0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
je 0x471f52
cmp dword [ebp - 8], 0
je 0x471e21
lea ebx, [ebp - 0x120]
lea eax, [ebp - 0x120]
call fcn.00470e6c
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00470e5c
jmp 0x471e23
xor ebx, ebx
cmp dword [ebp - 0xc], 0
je 0x471e4d
lea esi, [ebp - 0x224]
lea eax, [ebp - 0x224]
call fcn.00470e6c
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00470e5c
jmp 0x471e4f
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x471e7c
lea eax, [ebp - 0x328]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x328]
call fcn.00470e6c
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00470e5c
jmp 0x471e81
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
jl 0x471ead
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x471eb2
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x471ef2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
inc eax
push eax
call sub.wsock32.dll_select
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test eax, eax
setg al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x471efe
cmp dword [ebp - 8], 0
je 0x471f1a
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00470e44
mov edx, dword [ebp - 8]
mov byte [edx], al
cmp dword [ebp - 0xc], 0
je 0x471f36
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00470e44
mov edx, dword [ebp - 0xc]
mov byte [edx], al
cmp dword [ebp + 0xc], 0
je 0x471f52
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00470e44
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x471f60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea ecx, [ebp - 4]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x34]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_send
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp eax, 0xffffffff
je 0x471f9d
add dword [ebx + 0x38], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x472254
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.00403f7c
test ebx, ebx
je 0x4722f5
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x472290
mov eax, ebx
call fcn.0040443c
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x472301
mov eax, esi
mov edx, ebx
call fcn.00403fd0
jmp 0x472301
mov eax, ebx
call fcn.0040443c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x472301
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x472310
call fcn.0040910c
jmp 0x472301
mov eax, esi
mov edx, 0x472324
call fcn.00403fd0
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x48bb9c
Capabilities:
Log keystrokes via polling

Disassembly:
push 2
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x48bbbd
push 1
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x48bbbd
xor eax, eax
ret
mov al, 1
ret

Function at 0x494fbc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x494fea
mov eax, ebx
call fcn.00495a70
cmp dword [ebx + 0x40], 0
je 0x494fe3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x49505b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x49504d
cmp dword [ebx + 8], 0
je 0x49500c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x49501e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49504d
cmp dword [ebx + 8], 0
je 0x494fff
cmp eax, 3
je 0x495031
dec eax
jne 0x494fff
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x494fff
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x494fff
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x495079
cmp dword [ebx + 0x14], 0xcc
je 0x495079
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00495084
pop ebx
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x407480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sub.msvcrt.dll__read
leave
ret

Function at 0x40ab54
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40ab79
mov dword [0x413164], eax
add esp, 0xfffffff8
push 0x40ab18
push eax
call fcn.0040f39c
jmp 0x40ab7e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40ab94
mov dword [0x41231c], 0x40ac78
jmp 0x40ab9e
mov dword [0x41231c], 0x40ac2c
leave
ret
Function at 0x441045
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004411f5
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x441143
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4410e6
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x441129
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4410fd
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x441118
test al, 0x40
je 0x44110f
mov ecx, dword [edi + 0x20]
jmp 0x441116
test al, 0x80
je 0x441129
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x441129
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4410b5
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret