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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e7194]
cmp byte [eax + 0xc], 0
je 0x4661ed
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4661e6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e8ba8], 0
jne 0x4660d4
push 0x4661f4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4661fc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8ba8], eax
cmp dword [0x4e405c], 0
jne 0x4661cf
push 0x46620c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4e405c], eax
cmp dword [0x4e405c], 0
je 0x4661cf
push 0x466218
mov eax, dword [0x4e405c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8bac], eax
push 0x466228
mov eax, dword [0x4e405c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8bb0], eax
push 0x46623c
mov eax, dword [0x4e405c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8bb4], eax
push 0x466254
mov eax, dword [0x4e405c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8bb8], eax
push 0x46626c
mov eax, dword [0x4e405c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8bbc], eax
push 0x466280
mov eax, dword [0x4e405c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8bc0], eax
push 0x466298
mov eax, dword [0x4e405c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8bc4], eax
push 0x4662b0
mov eax, dword [0x4e405c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8bc8], eax
push 0x4662cc
mov eax, dword [0x4e405c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8bcc], eax
push 0x4662d8
mov eax, dword [0x4e405c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8bd0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4661ed
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x46a28c
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.00404ccc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x46a2db
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.00404f3c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471ad0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x471b20]
test si, 4
je 0x471ae4
or bl, 1
test si, 8
je 0x471aee
or bl, 4
test si, 1
je 0x471af8
or bl, 8
test si, 2
je 0x471b02
or bl, 0x10
test si, 0x10
je 0x471b0c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x471b1b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x471b24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x471b5c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x471b3d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x471b4c
or bl, 4
test esi, 0x20000000
je 0x471b57
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x478220
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x478232
add esp, 0xfffffff0
call fcn.004041d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426ca0
mov eax, dword [0x4e6be0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4785c4
mov eax, dword [0x4e6bf0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4785d0
mov eax, ebx
call fcn.004785dc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b3f0]
call fcn.00403e2c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b3f0]
call fcn.00403e2c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b3f0]
call fcn.00403e2c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b3f0]
call fcn.00403e2c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b3f0]
call fcn.00403e2c
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, 0x4749f4
push eax
push 0
push 0
mov eax, dword [0x4e6e28]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42877c]
call fcn.00429f14
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42877c]
call fcn.00429f14
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42877c]
call fcn.00429f14
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00478a2c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4788f4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4788f4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4788f4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47836f
call fcn.0040422c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4786d8
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 0x478883
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x478864
mov dl, 1
mov eax, dword [0x41ba54]
call fcn.00403e2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404ccc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x478853
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.004663e0
test al, al
je 0x478846
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, 0x478894
lea eax, [ebp - 0x254]
call fcn.0040ac24
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x478846
xor eax, eax
push ebp
push 0x47883f
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 0x4788cc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x478828
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f3c
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 0x478828
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478846
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x478749
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420704
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 0x47888a
lea eax, [ebp - 0x260]
call fcn.00404ccc
ret

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

Disassembly:
push ecx
mov eax, dword [0x4e8bf4]
cmp byte [eax + 0xa5], 0
jne 0x47923d
cmp dword [0x4e8c0c], 0
jne 0x4791fe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x479188
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e8c0c], eax
cmp dword [0x4e8c08], 0
jne 0x479219
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4e8c08], eax
cmp dword [0x4e8c10], 0
jne 0x47923d
push esp
push 0
push 0
push 0x47912c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4e8c10], eax
pop edx
ret
Function at 0x4798d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4e8bf4]
cmp dword [eax + 0x30], 0
je 0x47997a
cmp dword [ebx + 0x94], 0
jne 0x479974
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x479860
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x479974
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 0x47993a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x479974
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.0041dc9c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x479949
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47a4d8
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 0x47a50d
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.00404dbc
jmp 0x47a51a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d20
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47b644
Capabilities:
Hide graphical window

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

Function at 0x47c054
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47c112
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47c0e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 5], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
call fcn.0047c39c
mov ebx, eax
cmp ebx, 1
jne 0x47c0d8
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
test edx, edx
je 0x47c0ac
sub edx, 0xffffffe4
call fcn.00406a3c
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, esi
call fcn.0040518c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0040518c
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
je 0x47c0d8
xor ebx, ebx
mov eax, dword [ebp - 4]
mov byte [eax + 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47c0fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c119
lea eax, [ebp - 8]
call fcn.00406a24
ret
Function at 0x47c39c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x47c4b7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0
push 0
push 0
push 0x47c4c8
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c49c
push 0
push 0x80000000
push 0
push 0
mov eax, esi
call fcn.0040518c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0xa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x13
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
call fcn.00404ec4
mov eax, dword [ebp - 0x2c]
mov edx, 0x47c4e0
call fcn.004050d8
je 0x47c45c
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x14]
call fcn.00404ec4
mov eax, dword [ebp - 0x30]
mov edx, 0x47c4ec
call fcn.004050d8
jne 0x47c463
mov ebx, 1
jmp 0x47c484
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x14]
call fcn.00404ec4
mov eax, dword [ebp - 0x34]
mov edx, 0x47c4f8
call fcn.004050d8
jne 0x47c482
or ebx, 0xffffffff
jmp 0x47c484
xor ebx, ebx
cmp dword [ebp - 8], 0
je 0x47c493
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c4be
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404cf0
ret

Function at 0x47fa5b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4e4e3e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47fab3
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4e4e5f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47faa9
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x47fab7
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4a916c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x4a9185
mov eax, dword [0x4e6f00]
mov eax, dword [eax]
call fcn.0047a788
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp esi, eax
ja 0x4a9179
pop esi
pop ebx
ret
Function at 0x4ac0bc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4ac0ea
mov eax, ebx
call fcn.004acb70
cmp dword [ebx + 0x40], 0
je 0x4ac0e3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4ac15b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4ac14d
cmp dword [ebx + 8], 0
je 0x4ac10c
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 0x4ac11e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4ac14d
cmp dword [ebx + 8], 0
je 0x4ac0ff
cmp eax, 3
je 0x4ac131
dec eax
jne 0x4ac0ff
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 0x4ac0ff
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4ac0ff
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4ac179
cmp dword [ebx + 0x14], 0xcc
je 0x4ac179
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.004ac184
pop ebx
ret

Function at 0x4be730
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4be8a1
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4be87c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404eb4
lea eax, [ebp - 0x118]
mov edx, 0x4be8b8
call fcn.00404f94
mov eax, dword [ebp - 0x118]
call fcn.0040518c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4be7ee
lea eax, [ebp - 0x111]
call fcn.0040a57c
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404dbc
jmp 0x4be7f5
mov eax, esi
call fcn.00404ccc
cmp bl, 0x61
jae 0x4be816
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040eb5c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404d20
jmp 0x4be830
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040ead0
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404d20
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4be8c4
call fcn.0040acbc
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be883
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4c3a98
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040517c
xor eax, eax
push ebp
push 0x4c3b88
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004c4ab0
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a3b8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c4000
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a29c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c4074
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3b8f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404cf0
ret
Function at 0x4c3b98
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040517c
xor eax, eax
push ebp
push 0x4c3c98
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004c4ab0
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
cmp dword [ebp - 4], 0
je 0x4c3c5e
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a3b8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c4000
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a29c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c4074
jmp 0x4c3c70
xor edx, edx
mov eax, ebx
call fcn.004c4000
xor edx, edx
mov eax, ebx
call fcn.004c4074
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3c9f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404cf0
ret
Function at 0x4c4304
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4c4327
cmp eax, 0x16
jae 0x4c434a
jmp 0x4c4329
jge 0x4c434a
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4c447e
cmp eax, 0
jne 0x4c447e
mov byte [ebp - 5], 1
jmp 0x4c447e
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov edx, 0x10015
call fcn.004c48f0
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
neg edx
mov cx, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00402b58
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4c4477
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, dword [ebp - 0x10]
je 0x4c43a2
call fcn.004046e8
jmp 0x4c447e
mov eax, dword [ebp - 0x10]
sub eax, 0x16
xor edx, edx
mov dword [ebp - 0x14], edx
jmp 0x4c43dc
dec eax
test eax, eax
jl 0x4c43bf
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax], 0x50
jne 0x4c43b1
test eax, eax
jl 0x4c43e6
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0x6054b50
je 0x4c43dc
dec eax
xor edx, edx
mov dword [ebp - 0x14], edx
test eax, eax
jl 0x4c43e6
cmp dword [ebp - 0x14], 0
je 0x4c43b2
cmp dword [ebp - 0x14], 0
jne 0x4c43f6
call fcn.004046e8
jmp 0x4c447e
mov eax, dword [ebp - 4]
add eax, 4
mov edx, dword [ebp - 0x14]
mov dx, word [edx + 4]
mov word [eax + 4], dx
mov edx, dword [ebp - 0x14]
mov dx, word [edx + 6]
mov word [eax + 6], dx
mov edx, dword [ebp - 0x14]
mov dx, word [edx + 8]
mov word [eax + 8], dx
mov edx, dword [ebp - 0x14]
mov dx, word [edx + 0xa]
mov word [eax + 0xa], dx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x14]
mov dx, word [edx + 0x14]
mov word [eax + 0x14], dx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x18]
sub eax, edx
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c447e
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00402b88
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c4d14
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040517c
xor eax, eax
push ebp
push 0x4c4d78
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004c4d84
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a7a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4d7f
lea eax, [ebp - 4]
call fcn.00404ccc
ret