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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x491174]
cmp byte [eax + 0xc], 0
je 0x4453dd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4453d6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x492b00], 0
jne 0x4452c4
push 0x4453e4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4453ec
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b00], eax
cmp dword [0x48fbc8], 0
jne 0x4453bf
push 0x4453fc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48fbc8], eax
cmp dword [0x48fbc8], 0
je 0x4453bf
push 0x445408
mov eax, dword [0x48fbc8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b04], eax
push 0x445418
mov eax, dword [0x48fbc8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b08], eax
push 0x44542c
mov eax, dword [0x48fbc8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b0c], eax
push 0x445444
mov eax, dword [0x48fbc8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b10], eax
push 0x44545c
mov eax, dword [0x48fbc8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b14], eax
push 0x445470
mov eax, dword [0x48fbc8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b18], eax
push 0x445488
mov eax, dword [0x48fbc8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b1c], eax
push 0x4454a0
mov eax, dword [0x48fbc8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b20], eax
push 0x4454bc
mov eax, dword [0x48fbc8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b24], eax
push 0x4454c8
mov eax, dword [0x48fbc8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b28], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4453dd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x449748
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.0040477c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x449797
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.004049ec
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x451010
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x451060]
test si, 4
je 0x451024
or bl, 1
test si, 8
je 0x45102e
or bl, 4
test si, 1
je 0x451038
or bl, 8
test si, 2
je 0x451042
or bl, 0x10
test si, 0x10
je 0x45104c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45105b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x451064
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45109c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45107d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45108c
or bl, 4
test esi, 0x20000000
je 0x451097
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x457778
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45778a
add esp, 0xfffffff0
call fcn.00403bc0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f278
mov eax, dword [0x490d68]
mov dword [eax + 4], ebx
mov dword [eax], 0x457b1c
mov eax, dword [0x490d7c]
mov dword [eax + 4], ebx
mov dword [eax], 0x457b28
mov eax, ebx
call fcn.00457b34
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416a90]
call fcn.00403858
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416a90]
call fcn.00403858
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416a90]
call fcn.00403858
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416a90]
call fcn.00403858
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416a90]
call fcn.00403858
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, 0x453f4c
push eax
push 0
push 0
mov eax, dword [0x490f18]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x420d9c]
call fcn.0042245c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x420d9c]
call fcn.0042245c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x420d9c]
call fcn.0042245c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457fa8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e70
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e70
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e70
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4578c7
call fcn.00403c18
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x457c30
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457e00
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x457de1
mov dl, 1
mov eax, dword [0x416eac]
call fcn.00403858
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040477c
lea eax, [ebp - 0x118]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov ebx, eax
call sub.kernel32.dll_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0x10], eax
dec ebx
test ebx, ebx
jl 0x457dd0
inc ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.004455d0
test al, al
jne 0x457ccd
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x457dc3
xor edx, edx
push ebp
push 0x457dbc
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x457ced
mov ebx, dword [ebp - 0x10]
jmp 0x457cef
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
mov edx, 0x457e10
lea eax, [ebp - 0x258]
call fcn.0040a3e4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457da5
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x457e48
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457da5
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.004049ec
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x18]
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 - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x457da5
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.004049ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457dc3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x457cae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041adb0
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 0x457e07
lea eax, [ebp - 0x264]
call fcn.0040477c
ret
Function at 0x458748
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x492b4c]
cmp byte [eax + 0xa5], 0
jne 0x4587b9
cmp dword [0x492b64], 0
jne 0x45877a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458704
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x492b64], eax
cmp dword [0x492b60], 0
jne 0x458795
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x492b60], eax
cmp dword [0x492b68], 0
jne 0x4587b9
push esp
push 0
push 0
push 0x4586a8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x492b68], eax
pop edx
ret

Function at 0x458e4c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x492b4c]
cmp dword [eax + 0x30], 0
je 0x458ef6
cmp dword [ebx + 0x94], 0
jne 0x458ef0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458ddc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458ef0
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 0x458eb6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458ef0
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.00418e8c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458ec5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459a54
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 0x459a89
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.0040486c
jmp 0x459a96
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047d0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ac38
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ac79
mov eax, esi
call fcn.00440b24
test al, al
je 0x45ac79
mov eax, dword [ebx + 0x84]
call fcn.00440820
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ac79
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440820
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x460f88
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x46101c
push 0
mov eax, ebx
call fcn.00404c3c
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x460ff7
mov eax, esi
call fcn.00404a3c
inc eax
push eax
mov eax, esi
call fcn.00404c3c
push eax
push 1
push 0
mov eax, edi
call fcn.00404c3c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x461012
mov ecx, dword [0x490dec]
mov dl, 1
mov eax, dword [0x45fda0]
call fcn.0040d018
call fcn.004040ec
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x46ea44
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x46eb1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jb 0x46eb1c
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x46eb14
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
add edx, edx
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x18]
movzx edx, word [ebp - 0x2e]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
jmp 0x46eb1c
inc dword [ebp - 0x20]
dec dword [ebp - 0x38]
jne 0x46eaab
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x47005c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
mov eax, dword [0x492bec]
call fcn.00470470
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4700c4
xor eax, eax
push ebp
push 0x4700b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x4700a9
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov eax, edx
xor edx, edx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4700d4
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4715c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
test dl, dl
je 0x4715d6
add esp, 0xfffffff0
call fcn.00403bc0
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [0x492be4], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x4716d0
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4716ae
mov dword [ebp - 0x1c], 0x105
mov eax, dword [ebp - 0x1c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004079e0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x47170c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4716a5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x47169c
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x417058]
call fcn.0041b25c
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00471710
mov eax, dword [ebp - 0x10]
call fcn.00403888
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4716c6
call fcn.00403c18
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x473794
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
push 0x473864
push 0x47387c
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47382f
mov eax, 2
call fcn.00402ac0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 1
call dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x47381d
mov eax, dword [ebp - 0xc]
call fcn.00402af0
mov eax, dword [ebp - 0x10]
add eax, 2
add eax, eax
call fcn.00402ac0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
add eax, 2
mov edx, eax
add edx, edx
mov eax, dword [ebp - 0xc]
call fcn.004079e0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
call dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404fd0
jmp 0x473825
mov eax, dword [ebp - 4]
call fcn.00404e88
mov eax, dword [ebp - 0xc]
call fcn.00402af0
jmp 0x47385d
mov eax, 0x106
call fcn.00402ac0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA_1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404fa0
mov eax, dword [ebp - 0xc]
call fcn.00402af0
mov esp, ebp
pop ebp
ret
Function at 0x475220
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004079e0
ret

Function at 0x47599c
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebx
push esi
push ecx
mov esi, eax
push 6
push 1
push 2
call sub.ws2_32.dll_socket
mov ebx, eax
mov dword [esi + 4], ebx
inc ebx
setne al
mov ebx, eax
test bl, bl
jne 0x4759ca
lea eax, [esi + 0x44]
mov edx, 0x475a54
call fcn.004047d0
jmp 0x475a45
mov dword [esp], 0x2328
push 4
lea eax, [esp + 4]
push eax
push 0x1005
push 0xffff
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_setsockopt
mov dword [esp], 0x3a98
push 4
lea eax, [esp + 4]
push eax
push 0x1006
push 0xffff
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_setsockopt
xor eax, eax
mov dword [esp], eax
push 4
lea eax, [esp + 4]
push eax
push 0xff7f
push 0xffff
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_setsockopt
push 4
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_setsockopt
mov eax, ebx
pop edx
pop esi
pop ebx
ret

Function at 0x475a94
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffedc
mov edi, ecx
mov ebx, edx
mov eax, edi
mov edx, ebx
call fcn.004047d0
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
call sub.ws2_32.dll_gethostname
lea eax, [esp + 4]
mov edx, ebx
call fcn.00409de8
lea eax, [esp + 4]
push eax
call sub.ws2_32.dll_gethostbyname
mov dword [esp], eax
cmp dword [esp], 0
je 0x475b45
mov ebx, dword [esp]
push edi
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
xor eax, eax
mov al, byte [esi]
mov dword [esp + 0x108], eax
mov byte [esp + 0x10c], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [esp + 0x110], eax
mov byte [esp + 0x114], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [esp + 0x118], eax
mov byte [esp + 0x11c], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [esp + 0x120], eax
mov byte [esp + 0x124], 0
lea edx, [esp + 0x108]
mov ecx, 3
mov eax, 0x475b58
call fcn.0040a47c
add esp, 0x124
pop edi
pop esi
pop ebx
ret
Function at 0x475b64
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x475c5c
push dword fs:[edx]
mov dword fs:[edx], esp
mov word [ebp - 0x20], 2
push edi
call sub.ws2_32.dll_htons
mov word [ebp - 0x1e], ax
mov eax, esi
call fcn.00404c3c
push eax
call sub.ws2_32.dll_inet_addr
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_connect
inc eax
setne byte [ebp - 1]
lea eax, [ebp - 0x124]
call fcn.0047557c
lea edx, [ebp - 0x124]
mov eax, dword [ebx + 4]
call fcn.0047556c
mov dword [ebp - 0x10], 0xf
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
call sub.ws2_32.dll_select
test eax, eax
je 0x475c1c
inc eax
jne 0x475c33
lea eax, [ebx + 0x44]
mov edx, 0x475c78
call fcn.004047d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x475c66
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_ioctlsocket
mov byte [ebp - 1], 1
mov byte [ebx + 8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x475c66
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
push esi
push edi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x475c95
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x2000
call fcn.0040327c
mov eax, edi
call fcn.00404a3c
mov ebx, eax
mov eax, edi
call fcn.00404c3c
mov edx, esp
mov ecx, ebx
call fcn.00402d88
push 0
push ebx
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_send
inc eax
setne al
add esp, 0x2000
pop edi
pop esi
pop ebx
ret