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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46d04c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46d02d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46d03c
or bl, 4
test esi, 0x20000000
je 0x46d047
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4736f4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x473706
add esp, 0xfffffff0
call fcn.00403734
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421ea0
mov eax, dword [0x4cee74]
mov dword [eax + 4], ebx
mov dword [eax], 0x473a98
mov eax, dword [0x4cee84]
mov dword [eax + 4], ebx
mov dword [eax], 0x473aa4
mov eax, ebx
call fcn.00473ab0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41702c]
call fcn.004033a0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41702c]
call fcn.004033a0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41702c]
call fcn.004033a0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41702c]
call fcn.004033a0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41702c]
call fcn.004033a0
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, 0x46fecc
push eax
push 0
push 0
mov eax, dword [0x4cf0b0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x423954]
call fcn.004250c8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x423954]
call fcn.004250c8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x423954]
call fcn.004250c8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00473ed0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473dac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473dac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473dac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x473843
call fcn.0040378c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x473b90
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 0x473d3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x473d1c
mov dl, 1
mov eax, dword [0x417690]
call fcn.004033a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404160
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x473d0b
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.00461364
test al, al
je 0x473cfe
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, 0x473d4c
lea eax, [ebp - 0x254]
call fcn.00409830
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x473cfe
xor eax, eax
push ebp
push 0x473cf7
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 0x473d84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x473ce0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043d0
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 0x473ce0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473cfe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x473c01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041bcdc
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 0x473d42
lea eax, [ebp - 0x260]
call fcn.00404160
ret

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

Disassembly:
push ecx
mov eax, dword [0x4d0bc4]
cmp byte [eax + 0xa5], 0
jne 0x4746e1
cmp dword [0x4d0bdc], 0
jne 0x4746a2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47462c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4d0bdc], eax
cmp dword [0x4d0bd8], 0
jne 0x4746bd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4d0bd8], eax
cmp dword [0x4d0be0], 0
jne 0x4746e1
push esp
push 0
push 0
push 0x4745d0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4d0be0], eax
pop edx
ret
Function at 0x474804
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47481b
add esp, 0xfffffff0
call fcn.00403734
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421ea0
mov eax, dword [0x4cf088]
cmp word [eax + 2], 0
jne 0x474843
mov eax, dword [0x4cf088]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00475f84
mov eax, dword [0x4cf1bc]
cmp word [eax + 2], 0
jne 0x47485d
mov eax, dword [0x4cf1bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047617c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41702c]
call fcn.004033a0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41702c]
call fcn.004033a0
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 [0x424434]
call fcn.0042be68
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4749e4
mov eax, dword [0x4cef14]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042c238
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x47671c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4cef14]
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.0040d184
test eax, eax
je 0x474952
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409210
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d1ac
test eax, eax
je 0x474966
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.004043d0
mov eax, dword [0x4ced38]
cmp byte [eax], 0
jne 0x47499a
mov eax, ebx
call fcn.00474b0c
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.004768f8
mov eax, ebx
call fcn.004772bc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4749da
call fcn.0040378c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474d8c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4d0bc4]
cmp dword [eax + 0x30], 0
je 0x474e36
cmp dword [ebx + 0x94], 0
jne 0x474e30
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x474d1c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x474e30
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 0x474df6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x474e30
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.00419904
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x474e05
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x475998
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 0x4759cd
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.00404250
jmp 0x4759da
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x476ad4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x476b15
mov eax, esi
call fcn.0045c8e8
test al, al
je 0x476b15
mov eax, dword [ebx + 0x84]
call fcn.0045c5e4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x476b15
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045c5e4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x477fb8
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.00407110
ret
Function at 0x478a4c
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [0x4cf3f0]
cmp dword [eax], 2
je 0x478a69
mov byte [ebp - 1], 1
jmp 0x478c37
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x4ca0f4
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x478c37
xor eax, eax
push ebp
push 0x478c30
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x478acb
push 0x478c40
push 0x478c58
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
test ebx, ebx
je 0x478af2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x478c19
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x478c19
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x478b43
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x478b24
call fcn.00403c48
jmp 0x478c37
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x478b43
call fcn.00403c48
jmp 0x478c37
xor eax, eax
push ebp
push 0x478c12
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x478b86
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x478b86
call fcn.00403c48
call fcn.00403c48
jmp 0x478c37
mov eax, dword [ebp - 0x14]
call fcn.00402714
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x478bb8
call fcn.00403c48
call fcn.00403c48
jmp 0x478c37
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x478bf3
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x478bef
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x478bef
mov byte [ebp - 1], 1
jmp 0x478bf3
inc ebx
dec esi
jne 0x478bc5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478c19
mov eax, dword [ebp - 0x18]
call fcn.00402734
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478c37
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b9f4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.004049f4
push eax
push 0x1000
lea eax, [ebp - 0x1000]
push eax
mov eax, dword [ebp + 0xc]
call fcn.004049f4
push eax
mov eax, edi
call fcn.004049f4
push eax
mov eax, esi
call fcn.004049f4
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov ecx, eax
lea edx, [ebp - 0x1000]
mov eax, dword [ebp + 8]
call fcn.00404950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47ba54
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff800
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.0040463c
push eax
push 0x800
lea eax, [ebp - 0x800]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040463c
push eax
mov eax, edi
call fcn.0040463c
push eax
mov eax, esi
call fcn.0040463c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x800]
mov eax, dword [ebp + 8]
call fcn.00404250
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47ecc4
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x47ed41
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x47ed3f
dec ecx
jne 0x47ed41
cmp eax, 4
jg 0x47ecf9
mov bl, 4
jmp 0x47ed41
cmp eax, 5
jne 0x47ed06
test edx, edx
jne 0x47ed06
mov bl, 5
jmp 0x47ed41
cmp eax, 5
jne 0x47ed14
cmp edx, 1
jne 0x47ed14
mov bl, 6
jmp 0x47ed41
cmp eax, 5
jne 0x47ed22
cmp edx, 2
jne 0x47ed22
mov bl, 8
jmp 0x47ed41
cmp eax, 6
jne 0x47ed2f
test edx, edx
jne 0x47ed2f
mov bl, 9
jmp 0x47ed41
cmp eax, 6
jne 0x47ed3b
dec edx
jl 0x47ed3b
mov bl, 0xb
jmp 0x47ed41
xor ebx, ebx
jmp 0x47ed41
mov bl, 2
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x47f120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47f236
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004041f8
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00408670
cmp dword [ebp - 0x44], 0
je 0x47f213
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402da4
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, 0x47f244
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
call fcn.0040463c
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
jne 0x47f213
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.0040905c
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408420
mov eax, dword [ebp - 0x48]
mov edx, 0x47f254
call fcn.00404588
je 0x47f207
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.0040905c
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.00408420
mov eax, dword [ebp - 0x50]
mov edx, 0x47f264
call fcn.00404588
jne 0x47f213
push 1
push 0x47f26c
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f23d
lea eax, [ebp - 0x54]
mov edx, 5
call fcn.00404184
lea eax, [ebp - 4]
call fcn.00404160
ret

Function at 0x47f464
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffc00
mov esi, edx
mov ebx, eax
push 0x400
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404250
mov eax, dword [esi]
call fcn.0040443c
cmp eax, 1
jle 0x47f4c2
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x5c
je 0x47f4b1
test bl, bl
je 0x47f4c2
mov eax, esi
mov edx, 0x47f4d4
call fcn.00404444
jmp 0x47f4c2
test bl, bl
jne 0x47f4c2
mov edx, esi
mov ecx, 1
xchg edx, eax
call fcn.004046dc
add esp, 0x400
pop esi
pop ebx
ret

Function at 0x47f4d8
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffc00
mov esi, edx
mov ebx, eax
push 0x400
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404250
mov eax, dword [esi]
call fcn.0040443c
cmp eax, 1
jle 0x47f536
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x5c
je 0x47f525
test bl, bl
je 0x47f536
mov eax, esi
mov edx, 0x47f548
call fcn.00404444
jmp 0x47f536
test bl, bl
jne 0x47f536
mov edx, esi
mov ecx, 1
xchg edx, eax
call fcn.004046dc
add esp, 0x400
pop esi
pop ebx
ret
Function at 0x47f54c
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 7
push 0x80
mov eax, ebx
call fcn.0040463c
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47f5b9
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp + 8]
xor edx, edx
mov edx, eax
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret

Function at 0x47f5c8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
push ebx
call sub.kernel32.dll_GetFileAttributesA
test ah, 8
je 0x47f650
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47f649
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0xa], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 2
lea eax, [ebp - 0xa]
push eax
push 0x9c040
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x47f632
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f654
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47f7ec
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040462c
xor eax, eax
push ebp
push 0x47f831
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.0040463c
push eax
call sub.kernel32.dll_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f838
lea eax, [ebp - 4]
call fcn.00404160
ret
Function at 0x47f974
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47fb25
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
xor eax, eax
push ebp
push 0x47fafc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
mov dl, 1
mov eax, dword [0x4348bc]
call fcn.00434a28
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x47faeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x14]
call fcn.00434b04
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00434b6c
test al, al
je 0x47fad5
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, edi
call fcn.0040463c
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
push eax
call sub.kernel32.dll_SetLastError
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x47fad5
cmp dword [ebp - 8], 7
jne 0x47faa4
mov eax, dword [ebp - 0xc]
call fcn.00402714
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x47fa9d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, dword [ebp - 0x10]
jmp 0x47fa82
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00404358
mov edx, dword [ebp - 0x18]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push ebx
call sub.kernel32.dll_lstrlenA_1
inc eax
add ebx, eax
cmp byte [ebx], 0
jne 0x47fa65
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fad5
mov eax, dword [ebp - 0x10]
call fcn.00402734
ret
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x20]
call fcn.0040ba90
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x47fb40
call fcn.00404488
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x43485c]
call fcn.0040c2bc
call fcn.00403b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47faf2
mov eax, dword [ebp - 0x14]
call fcn.004033d0
ret

Function at 0x47fbe8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov esi, eax
xor eax, eax
push ebp
push 0x47fc5d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0047fb9c
lea eax, [ebp - 0x10]
mov edx, 0x47fc74
call fcn.00404444
mov eax, dword [ebp - 0x10]
call fcn.0040463c
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x47fc47
mov ebx, dword [ebp - 4]
imul ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fc64
lea eax, [ebp - 0x10]
call fcn.00404160
ret