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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4b0bac]
cmp byte [eax + 0xc], 0
je 0x44f9b1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44f9aa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b1b2c], 0
jne 0x44f898
push 0x44f9b8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44f9c0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b1b2c], eax
cmp dword [0x4abfbc], 0
jne 0x44f993
push 0x44f9d0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4abfbc], eax
cmp dword [0x4abfbc], 0
je 0x44f993
push 0x44f9dc
mov eax, dword [0x4abfbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b1b30], eax
push 0x44f9ec
mov eax, dword [0x4abfbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b1b34], eax
push 0x44fa00
mov eax, dword [0x4abfbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b1b38], eax
push 0x44fa18
mov eax, dword [0x4abfbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b1b3c], eax
push 0x44fa30
mov eax, dword [0x4abfbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b1b40], eax
push 0x44fa44
mov eax, dword [0x4abfbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b1b44], eax
push 0x44fa5c
mov eax, dword [0x4abfbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b1b48], eax
push 0x44fa74
mov eax, dword [0x4abfbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b1b4c], eax
push 0x44fa90
mov eax, dword [0x4abfbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b1b50], eax
push 0x44fa9c
mov eax, dword [0x4abfbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b1b54], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f9b1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x453e20
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.004047e0
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x453e6e
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.00404a50
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457de0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457f15
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x424d90]
call fcn.00424fbc
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x457eeb
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00425098
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404a50
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x457f2c
call fcn.00404aec
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.004251dc
lea ecx, [ebp - 4]
mov edx, 0x457f68
mov eax, dword [ebp - 0xc]
call fcn.00425914
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e840
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x457ece
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x457f74
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4ac0c8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457ed5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x457fc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x45800b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457fee
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457fff
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x45800b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x45bc94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45bce8]
test si, 4
je 0x45bca9
or bl, 1
test si, 8
je 0x45bcb3
or bl, 4
test si, 1
je 0x45bcbd
or bl, 8
test si, 2
je 0x45bcc7
or bl, 0x10
test si, 0x10
je 0x45bcd1
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bce0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45bcec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45bd28]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bd06
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bd15
or bl, 4
test esi, 0x20000000
je 0x45bd20
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x462d64
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x462d76
add esp, 0xfffffff0
call fcn.00403d44
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422850
mov eax, dword [0x4b06a8]
mov dword [eax + 4], ebx
mov dword [eax], 0x463108
mov eax, dword [0x4b06b4]
mov dword [eax + 4], ebx
mov dword [eax], 0x463114
mov eax, ebx
call fcn.00463120
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004039b0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004039b0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004039b0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004039b0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004039b0
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, 0x45ee28
push eax
push 0
push 0
mov eax, dword [0x4b08b8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x427634]
call fcn.00428ddc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x427634]
call fcn.00428ddc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x427634]
call fcn.00428ddc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046355c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x463420
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x463420
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x463420
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x462eb3
call fcn.00403d9c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x463204
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 0x4633af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x463390
mov dl, 1
mov eax, dword [0x417b30]
call fcn.004039b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46337f
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.0044fba0
test al, al
je 0x463372
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, 0x4633c0
lea eax, [ebp - 0x254]
call fcn.0040a198
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x463372
xor eax, eax
push ebp
push 0x46336b
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 0x4633f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x463354
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a50
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 0x463354
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463372
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x463275
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041c388
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 0x4633b6
lea eax, [ebp - 0x260]
call fcn.004047e0
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b1b78]
cmp byte [eax + 0xad], 0
jne 0x463da5
cmp dword [0x4b1b90], 0
jne 0x463d66
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x463cf0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b1b90], eax
cmp dword [0x4b1b8c], 0
jne 0x463d81
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b1b8c], eax
cmp dword [0x4b1b94], 0
jne 0x463da5
push esp
push 0
push 0
push 0x463c94
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4b1b94], eax
pop edx
ret
Function at 0x463f78
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x463f8f
add esp, 0xfffffff0
call fcn.00403d44
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422850
mov eax, dword [0x4b089c]
cmp word [eax + 2], 0
jne 0x463fb7
mov eax, dword [0x4b089c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00465a60
mov eax, dword [0x4b0994]
cmp word [eax + 2], 0
jne 0x463fd1
mov eax, dword [0x4b0994]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00465c6c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004039b0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004039b0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4174c4]
call fcn.004039b0
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x428138]
call fcn.0042f714
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x464180
mov eax, dword [0x4b074c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042fae8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x466398
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b074c]
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.0040db94
test eax, eax
je 0x4640d8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409b74
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dbc8
test eax, eax
je 0x4640ec
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a50
push ebx
push 0x4655a8
call fcn.004239b8
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4b05a0]
cmp byte [eax], 0
jne 0x464136
mov eax, ebx
call fcn.004642c4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00466574
mov eax, ebx
call fcn.004670c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x464176
call fcn.00403d9c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464544
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b1b78]
cmp dword [eax + 0x30], 0
je 0x4645ee
cmp dword [ebx + 0x94], 0
jne 0x4645e8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4644d4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4645e8
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 0x4645ae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4645e8
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.00419d30
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4645bd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x465300
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x465335
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.004048d0
jmp 0x465342
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404834
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x466758
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4667c6
mov eax, esi
call fcn.0044ab10
test al, al
je 0x4667c6
mov eax, dword [ebx + 0x84]
call fcn.0044a810
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4667c6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4667ba
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044a810
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00443840
jmp 0x4667c6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00466594
pop esi
pop ebx
ret
Function at 0x47c6d0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c90
mov eax, dword [ebp - 8]
call fcn.00404c90
xor eax, eax
push ebp
push 0x47c85d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
jne 0x47c720
lea eax, [ebp - 4]
mov edx, 0x47c874
call fcn.00404878
cmp dword [ebp - 8], 0
jne 0x47c733
lea eax, [ebp - 8]
mov edx, 0x47c880
call fcn.00404878
xor edx, edx
push ebp
push 0x47c82e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x1ce]
call fcn.00404aa0
test eax, eax
jne 0x47c774
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
lea eax, [ebx + 0xc]
call fcn.00402760
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
jmp 0x47c7c4
lea ecx, [ebp - 0x14]
mov edx, dword [ebx + 0x1ce]
mov eax, ebx
call fcn.0047d698
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x1ce]
call fcn.00404834
mov eax, dword [ebx + 0x1ce]
call fcn.00404aa0
add eax, 0xd
call fcn.00402760
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x1ce]
call fcn.00404aa0
mov ecx, eax
inc ecx
mov edx, dword [ebx + 0x1ce]
mov eax, dword [ebp - 0x10]
call fcn.00409bf4
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404ca0
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x47c818
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.004049d8
mov eax, dword [ebp - 0xc]
call fcn.00404ca0
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.004049d8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00409888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c835
mov eax, dword [ebp - 0x10]
call fcn.00402780
ret
Function at 0x47d36c
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, edx
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push 0x47d4c8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
test ebx, ebx
je 0x47d3fc
push 0x47d4d4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov ebp, eax
test ebp, ebp
je 0x47d3f6
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x194]
call fcn.00404ca0
push eax
call ebp
test eax, eax
je 0x47d3f6
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push ebx
call sub.kernel32.dll_FreeLibrary_1
cmp dword [esp + 0x14], 0xffffffff
jne 0x47d487
cmp dword [esp + 0x10], 0xffffffff
jne 0x47d487
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x194]
call fcn.00404ca0
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x47d487
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.0040564c
call fcn.0040564c
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.0040564c
call fcn.0040564c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test edi, 1
je 0x47d4a3
mov eax, dword [esp + 0x10]
mov dword [esi + 0x188], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x18c], eax
test edi, 2
je 0x47d4bf
mov eax, dword [esp + 0x18]
mov dword [esi + 0x178], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x17c], eax
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47d4e8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x114], edx
mov esi, eax
xor eax, eax
push ebp
push 0x47d684
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
mov dword [esi + 0x178], 0
mov dword [esi + 0x17c], 0
mov dword [esi + 0x180], 0
mov dword [esi + 0x184], 0
lea eax, [esi + 0x174]
call fcn.004047e0
mov byte [ebp - 1], 0
lea edx, [ebp - 0x114]
mov eax, dword [esi + 0x194]
call fcn.00408acc
mov eax, dword [ebp - 0x114]
movzx ebx, byte [eax]
cmp bl, 0x5c
je 0x47d5cb
cmp bl, 0x41
jb 0x47d57a
cmp bl, 0x5a
jbe 0x47d597
mov eax, dword [esi + 0x194]
push eax
mov ecx, 0x2afb
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d934
call fcn.004041ec
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
movzx eax, bl
sub eax, 0x41
cmp eax, 0x1f
ja 0x47d5ac
bt edi, eax
jb 0x47d5cb
mov eax, dword [esi + 0x194]
push eax
mov ecx, 0x2afc
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d934
call fcn.004041ec
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x190]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [esi + 0x194]
call fcn.00404ca0
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x47d623
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x1f
jne 0x47d61b
test byte [esi + 0x35], 0x80
je 0x47d61b
mov byte [ebp - 1], 1
push edi
call sub.kernel32.dll_SetErrorMode
jmp 0x47d66b
lea eax, [esi + 0x174]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00404a50
mov edx, 3
mov eax, esi
call fcn.0047d36c
push edi
call sub.kernel32.dll_SetErrorMode
cmp bl, 0x5c
je 0x47d667
cmp bl, 0x5c
je 0x47d66b
cmp dword [esi + 0x17c], 0xffffffff
jne 0x47d665
cmp dword [esi + 0x178], 0xffffffff
je 0x47d66b
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d68b
lea eax, [ebp - 0x114]
call fcn.004047e0
ret
Function at 0x47e0ac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
xor ecx, ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c90
lea eax, [ebp - 0x160]
mov edx, dword [0x407dbc]
call fcn.00405190
xor eax, eax
push ebp
push 0x47e23d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
mov ecx, 0x47e254
mov edx, dword [ebp - 4]
call fcn.00404aec
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
mov edx, 0x3f
call fcn.00409778
test eax, eax
jne 0x47e1f6
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404aec
test byte [ebp - 0x158], 0x10
je 0x47e1b5
mov eax, dword [ebp - 0x154]
mov edx, 0x47e260
call fcn.00404bec
je 0x47e1b5
mov eax, dword [ebp - 0x154]
mov edx, 0x47e26c
call fcn.00404bec
je 0x47e1b5
lea eax, [ebp - 8]
mov edx, 0x47e278
call fcn.00404aa8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0047e0ac
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 8]
mov edx, 0x47e284
call fcn.00404aec
mov edx, dword [ebp - 0x168]
mov eax, ebx
call fcn.0047a8fc
mov eax, dword [0x4b0964]
mov eax, dword [eax]
call fcn.00465758
mov eax, dword [ebp - 8]
call fcn.00409b20
jmp 0x47e1e3
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 8]
mov edx, 0x47e2a4
call fcn.00404aec
mov edx, dword [ebp - 0x16c]
mov eax, ebx
call fcn.0047a8fc
mov eax, dword [ebp - 8]
call fcn.00404ca0
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x160]
call fcn.004097c8
test eax, eax
je 0x47e12a
lea eax, [ebp - 0x160]
call fcn.004097ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e244
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00404804
lea eax, [ebp - 0x160]
mov edx, dword [0x407dbc]
call fcn.00405260
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404804
ret