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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x485478]
cmp byte [eax + 0xc], 0
je 0x45ecb5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ecae
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x486b74], 0
jne 0x45eb9c
push 0x45ecbc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45ecc4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b74], eax
cmp dword [0x484dcc], 0
jne 0x45ec97
push 0x45ecd4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x484dcc], eax
cmp dword [0x484dcc], 0
je 0x45ec97
push 0x45ece0
mov eax, dword [0x484dcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b78], eax
push 0x45ecf0
mov eax, dword [0x484dcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b7c], eax
push 0x45ed04
mov eax, dword [0x484dcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b80], eax
push 0x45ed1c
mov eax, dword [0x484dcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b84], eax
push 0x45ed34
mov eax, dword [0x484dcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b88], eax
push 0x45ed48
mov eax, dword [0x484dcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b8c], eax
push 0x45ed60
mov eax, dword [0x484dcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b90], eax
push 0x45ed78
mov eax, dword [0x484dcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b94], eax
push 0x45ed94
mov eax, dword [0x484dcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b98], eax
push 0x45eda0
mov eax, dword [0x484dcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486b9c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ecb5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Function at 0x46a87c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46a8cc]
test si, 4
je 0x46a890
or bl, 1
test si, 8
je 0x46a89a
or bl, 4
test si, 1
je 0x46a8a4
or bl, 8
test si, 2
je 0x46a8ae
or bl, 0x10
test si, 0x10
je 0x46a8b8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46a8c7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46a8d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46a908]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46a8e9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46a8f8
or bl, 4
test esi, 0x20000000
je 0x46a903
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x470fb0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x470fc2
add esp, 0xfffffff0
call fcn.00403e18
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421804
mov eax, dword [0x4850e0]
mov dword [eax + 4], ebx
mov dword [eax], 0x471354
mov eax, dword [0x4850ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x471360
mov eax, ebx
call fcn.0047136c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416bc4]
call fcn.00403a84
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416bc4]
call fcn.00403a84
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416bc4]
call fcn.00403a84
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416bc4]
call fcn.00403a84
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416bc4]
call fcn.00403a84
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, 0x46d788
push eax
push 0
push 0
mov eax, dword [0x48525c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x423290]
call fcn.00424a04
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x423290]
call fcn.00424a04
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x423290]
call fcn.00424a04
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0047178c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471668
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471668
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471668
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4710ff
call fcn.00403e70
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47144c
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 0x4715f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4715d8
mov dl, 1
mov eax, dword [0x417228]
call fcn.00403a84
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404844
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4715c7
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.0045eea8
test al, al
je 0x4715ba
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, 0x471608
lea eax, [ebp - 0x254]
call fcn.00409b74
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4715ba
xor eax, eax
push ebp
push 0x4715b3
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 0x471640
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47159c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ab4
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 0x47159c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4715ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4714bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b804
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 0x4715fe
lea eax, [ebp - 0x260]
call fcn.00404844
ret

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

Disassembly:
push ecx
mov eax, dword [0x486bc0]
cmp byte [eax + 0xa5], 0
jne 0x471f9d
cmp dword [0x486bd8], 0
jne 0x471f5e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x471ee8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x486bd8], eax
cmp dword [0x486bd4], 0
jne 0x471f79
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x486bd4], eax
cmp dword [0x486bdc], 0
jne 0x471f9d
push esp
push 0
push 0
push 0x471e8c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x486bdc], eax
pop edx
ret
Function at 0x472094
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4720ab
add esp, 0xfffffff0
call fcn.00403e18
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421804
mov eax, dword [0x485248]
cmp word [eax + 2], 0
jne 0x4720d3
mov eax, dword [0x485248]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00473814
mov eax, dword [0x485308]
cmp word [eax + 2], 0
jne 0x4720ed
mov eax, dword [0x485308]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00473a0c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416bc4]
call fcn.00403a84
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416bc4]
call fcn.00403a84
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 [0x423d70]
call fcn.0042b4b0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x472274
mov eax, dword [0x485148]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b880
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x473fbc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x485148]
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.0040d3a4
test eax, eax
je 0x4721e2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409554
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d3cc
test eax, eax
je 0x4721f6
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.00404ab4
mov eax, dword [0x48502c]
cmp byte [eax], 0
jne 0x47222a
mov eax, ebx
call fcn.0047239c
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.00474198
mov eax, ebx
call fcn.00474b5c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47226a
call fcn.00403e70
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47261c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x486bc0]
cmp dword [eax + 0x30], 0
je 0x4726c6
cmp dword [ebx + 0x94], 0
jne 0x4726c0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4725ac
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4726c0
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 0x472686
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4726c0
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.00419414
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x472695
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x473228
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 0x47325d
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.00404934
jmp 0x47326a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404898
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x474374
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4743b5
mov eax, esi
call fcn.0045a42c
test al, al
je 0x4743b5
mov eax, dword [ebx + 0x84]
call fcn.0045a128
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4743b5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045a128
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x474dec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x474f49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404844
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
call fcn.00404d04
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x474f2e
mov eax, dword [ebp - 0xc]
call fcn.0040271c
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x474f27
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x474f58
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
push 0x474f7c
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov edx, 4
call fcn.00408d3c
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.004074e0
movzx eax, ax
lea ecx, [ebp - 0x28]
mov edx, 4
call fcn.00408d3c
push dword [ebp - 0x28]
push 0x474f98
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404bc4
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
call fcn.00404b50
mov eax, dword [ebp - 0x2c]
call fcn.00404d04
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x474f11
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
call fcn.00404a3c
mov eax, dword [ebp - 0x30]
mov edx, esi
call fcn.004089c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474f2e
mov eax, dword [ebp - 0x14]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474f50
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00404868
ret
Function at 0x475570
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x47563b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x110]
mov eax, esi
call fcn.00403380
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x10]
call fcn.00404aa8
lea eax, [ebp - 0xc]
mov edx, 0xf
call fcn.00404e90
mov eax, ebx
call fcn.00404d04
push eax
push 0xf
mov eax, dword [ebp - 0xc]
call fcn.00404d04
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404d04
push eax
mov eax, dword [ebp - 4]
call fcn.00404d04
push eax
mov eax, edi
call fcn.00404d04
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404d64
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0040338c
mov ebx, eax
cmp dword [ebp - 8], 0
jle 0x475620
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475642
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404868
ret

Function at 0x475650
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x475716
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x475685
lea eax, [ebp - 8]
mov edx, 0x475730
call fcn.004048dc
jmp 0x475692
lea eax, [ebp - 8]
mov edx, 0x47573c
call fcn.004048dc
lea eax, [ebp - 4]
mov edx, 2
call fcn.00404e90
mov eax, ebx
call fcn.00404d04
push eax
push 2
mov eax, dword [ebp - 4]
call fcn.00404d04
push eax
mov eax, dword [ebp - 8]
call fcn.00404d04
push eax
mov eax, edi
call fcn.00404d04
push eax
mov eax, esi
call fcn.00404d04
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0xc]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404d64
mov eax, dword [ebp - 0xc]
mov edx, 0x475730
call fcn.00404c50
jne 0x4756f9
mov bl, 1
jmp 0x4756fb
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47571d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404868
ret
Function at 0x477284
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x47728c
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x477427
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, ebx
xor ecx, ecx
mov edx, 0x61
call fcn.00403114
mov eax, ebx
mov edx, esi
call fcn.00404898
push 0x477440
push esi
push 0x477450
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404bc4
mov eax, dword [ebp - 0xc]
call fcn.00477f94
mov byte [ebx + 0x60], al
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0047753c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 8]
call fcn.00404898
lea eax, [ebp - 0x14]
mov ecx, 0x47745c
mov edx, esi
call fcn.00404b50
mov eax, dword [ebp - 0x14]
call fcn.00404d04
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebx + 4], eax
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00477698
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xc]
call fcn.00404898
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00477758
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x10]
call fcn.00404898
lea ecx, [ebp - 0x20]
xor edx, edx
mov eax, esi
call fcn.00477818
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.00408dd0
mov dword [ebx + 0x14], eax
lea ecx, [ebp - 0x24]
mov dl, 1
mov eax, esi
call fcn.00477818
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0x18]
call fcn.00404898
lea eax, [ebx + 0x2c]
push eax
lea ecx, [ebx + 0x24]
lea edx, [ebx + 0x1c]
mov eax, esi
call fcn.00477928
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push 0x477440
push esi
push 0x477450
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404bc4
mov eax, dword [ebp - 0x28]
call fcn.00404d04
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x47740c
xor eax, eax
push ebp
push 0x477405
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebx + 0x34]
mov eax, dword [ebp - 8]
call fcn.00477fec
test al, al
jne 0x4773ea
call fcn.0040432c
jmp 0x47740c
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47740c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47742e
lea eax, [ebp - 0x28]
mov edx, 8
call fcn.00404868
ret
Function at 0x477460
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x47752d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, pe_nt_image_headers32
call fcn.0040271c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47750b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push 0xff
call sub.kernel32.dll_GetLogicalDriveStringsA
mov dword [ebp - 8], eax
xor edi, edi
cmp dword [ebp - 8], 0
jne 0x4774e6
call fcn.0040432c
jmp 0x477512
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404a2c
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404b0c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404a3c
mov eax, dword [ebp - 0x10]
call fcn.00404b04
add edi, eax
inc edi
mov eax, dword [ebp - 4]
mov bl, byte [eax + edi]
test bl, bl
je 0x4774f5
cmp edi, dword [ebp - 8]
jl 0x4774bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477512
mov eax, dword [ebp - 4]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477534
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404868
ret

Function at 0x477698
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47773c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, pe_nt_image_headers32
call fcn.00404e90
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xff
mov eax, dword [ebp - 4]
call fcn.00404d04
push eax
lea eax, [ebp - 0x10]
mov ecx, 0x477754
mov edx, esi
call fcn.00404b50
mov eax, dword [ebp - 0x10]
call fcn.00404d04
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x477717
mov eax, dword [ebp - 4]
call fcn.00404d04
mov edx, eax
mov eax, ebx
call fcn.00404a3c
jmp 0x47771e
mov eax, ebx
call fcn.00404844
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477743
lea eax, [ebp - 0x10]
call fcn.00404844
lea eax, [ebp - 4]
call fcn.00404844
ret
Function at 0x477758
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4777fc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, pe_nt_image_headers32
call fcn.00404e90
push 0xff
mov eax, dword [ebp - 4]
call fcn.00404d04
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov ecx, 0x477814
mov edx, esi
call fcn.00404b50
mov eax, dword [ebp - 0x10]
call fcn.00404d04
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4777d7
mov eax, dword [ebp - 4]
call fcn.00404d04
mov edx, eax
mov eax, ebx
call fcn.00404a3c
jmp 0x4777de
mov eax, ebx
call fcn.00404844
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477803
lea eax, [ebp - 0x10]
call fcn.00404844
lea eax, [ebp - 4]
call fcn.00404844
ret
Function at 0x407cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x409660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
lea eax, [esp + 4]
mov dword [esp + 0x114], 1
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407d7a
mov edx, dword [esp + 0x124]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push esi
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x407d7a
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x12c]
call fcn.004082c4
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x120]
mov byte [esp + 0x114], 0
call fcn.004082ac
lea ecx, [esp + 0x124]
mov dword [esp + 0x114], 0xffffffff
call fcn.004082ac
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx