joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454c94
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 0x454e3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454e20
mov dl, 1
mov eax, dword [0x412424]
call fcn.00403984
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 0x454e0f
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.00447c10
test al, al
je 0x454e02
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, 0x454e50
lea eax, [ebp - 0x254]
call fcn.00409410
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454e02
xor eax, eax
push ebp
push 0x454dfb
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 0x454e88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454de4
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 0x454de4
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 0x454e02
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454d05
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416104
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 0x454e46
lea eax, [ebp - 0x260]
call fcn.004047e0
ret

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

Disassembly:
push ecx
mov eax, dword [0x46057c]
cmp byte [eax + 0xad], 0
jne 0x455829
cmp dword [0x460594], 0
jne 0x4557ea
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455774
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x460594], eax
cmp dword [0x460590], 0
jne 0x455805
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x460590], eax
cmp dword [0x460598], 0
jne 0x455829
push esp
push 0
push 0
push 0x455718
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x460598], eax
pop edx
ret
Function at 0x4559fc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455a13
add esp, 0xfffffff0
call fcn.00403cd8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a204
mov eax, dword [0x45c920]
cmp word [eax + 2], 0
jne 0x455a3b
mov eax, dword [0x45c920]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004574ac
mov eax, dword [0x45c9c4]
cmp word [eax + 2], 0
jne 0x455a55
mov eax, dword [0x45c9c4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004576b8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412000]
call fcn.00403984
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412000]
call fcn.00403984
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412000]
call fcn.00403984
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 [0x41e94c]
call fcn.00425d1c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x455c0c
mov eax, dword [0x45c850]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004260f0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457d88
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45c850]
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.0040cbb4
test eax, eax
je 0x455b5c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408dc8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cbe8
test eax, eax
je 0x455b70
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
mov byte [ebx + 0xd4], 0
push ebx
push 0x45700c
call fcn.0041b380
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45c74c]
cmp byte [eax], 0
jne 0x455bc1
mov eax, ebx
call fcn.00455d50
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.00457f64
mov eax, ebx
call fcn.00458ac4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455c01
call fcn.00403d30
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455fd0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46057c]
cmp dword [eax + 0x30], 0
je 0x45607a
cmp dword [ebx + 0x94], 0
jne 0x456074
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455f60
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456074
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 0x45603a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456074
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.004143ac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456049
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456d94
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 0x456dc9
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 0x456dd6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404834
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458148
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4581b6
mov eax, esi
call fcn.00442a18
test al, al
je 0x4581b6
mov eax, dword [ebx + 0x84]
call fcn.00442678
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4581b6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4581aa
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442678
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043aa98
jmp 0x4581b6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00457f84
pop esi
pop ebx
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5e1824a6
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x36f2650
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [0x403cdc], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, dword [ebp + 4]
mov dword [0x403b2d], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401031
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403b2d]
mov dword [ebp - 0x48], eax
mov eax, 0x40168b
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x403b2d]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.klavesn
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403d28], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403d28]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010ce
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010c0
mov esp, ebp
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40c063]
shl eax, 2
mov dword [0x40c067], eax
push edi
push ecx
xor eax, eax
mov edi, 0x40e5bc
mov ecx, 0x411ab8
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.004016e7
pop ecx
push 0x40c02c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40c06b], eax
push 0
jmp fcn.0040a198
Function at 0x405900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00405330
test byte [ebp + 0xd], 0xc0
jne 0x405924
mov eax, dword [0x40d474]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x405931
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x40595e
je 0x405970
sub ecx, 0x100
je 0x40597e
sub ecx, 0x100
je 0x405985
sub ecx, 0x100
je 0x405977
jmp 0x40598c
sub ecx, 0x600
je 0x405985
sub ecx, 0x100
je 0x405970
jmp 0x40598c
mov edi, 1
jmp 0x405991
mov edi, 2
jmp 0x405991
mov edi, 4
jmp 0x405991
mov edi, 5
jmp 0x405991
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4059b8
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40d9c8]
test al, 0x80
je 0x4059b1
mov ebx, 0x80
jmp 0x4059ca
mov ebx, 1
jmp 0x4059ca
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4059ca
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4059dc
je 0x4059e5
dec eax
je 0x4059ee
jmp 0x4059f7
mov dword [ebp - 4], 0x80000000
jmp 0x405a06
mov dword [ebp - 4], 0x40000000
jmp 0x405a06
mov dword [ebp - 4], 0xc0000000
jmp 0x405a06
push 1
call fcn.004056f0
pop ecx
mov ebx, eax
jmp 0x405af2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x405a22
sub eax, 0x10
je 0x405a29
sub eax, 0x10
je 0x405a32
sub eax, 0x10
je 0x405a3b
jmp 0x405a3b
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x405a42
mov dword [ebp - 8], 1
jmp 0x405a42
mov dword [ebp - 8], 2
jmp 0x405a42
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x405aab
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x405aa0
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x405aa0
add ebx, 0xffffffb2
push ebx
call fcn.004056f0
pop ecx
mov ebx, eax
jmp 0x405af2
mov edi, esi
push edi
call fcn.00405864
pop ecx
test eax, eax
je 0x405abf
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x405acb
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00405430
add esp, 8
mov ebx, eax
inc eax
jne 0x405af2
push 4
call fcn.004056f0
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
call fcn.00405364
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409034
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x4094c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x40e2ec], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x409580
cmp byte [0x40c062], 0
je 0x40953a
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00408540
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409523
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00408540
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409523
lea ebx, [ebp - 0x54]
jmp 0x409524
inc ebx
call fcn.00409480
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x4095a1
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40e2f0
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00401348
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40e2f3
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x4095a1
cmp dword [0x40e2ec], 0xffffffff
je 0x4095a1
mov eax, dword [0x40e2ec]
test eax, eax
je 0x4095a1
cmp byte [eax], 0
je 0x4095a1
push esi
push eax
call fcn.00409630
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409b8c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x40ea4c], 0
jne 0x409c0d
cmp dword [0x40ea68], 0
jne 0x409bbc
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x40ea68], eax
test eax, eax
jne 0x409bbc
push 0x40e410
call fcn.004095b8
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x40ea68]
jmp 0x409bd0
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00401348
pop ecx
mov edi, eax
test eax, eax
jne 0x409bc8
lea edi, [ebp + 1]
push edi
call fcn.00408d34
pop ecx
mov ebx, eax
mov dword [0x40ea50], ebx
test ebx, ebx
jne 0x409bfa
xor eax, eax
jmp 0x409cd0
push edi
mov edx, dword [0x40ea68]
push edx
push ebx
call fcn.00401128
add esp, 0xc
jmp 0x409c2d
xor esi, esi
mov ebx, dword [0x40ea4c]
jmp 0x409c27
push eax
call fcn.00401348
pop ecx
test eax, eax
jne 0x409c23
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409c17
lea ebx, [esi + 4]
push 4
mov dword [0x40ea54], ebx
inc ebx
push ebx
call fcn.00408598
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x409c50
xor eax, eax
jmp 0x409cd0
cmp dword [0x40ea4c], 0
jne 0x409c81
xor esi, esi
mov ebx, dword [0x40ea50]
mov eax, dword [esp]
mov ebp, eax
jmp 0x409c72
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00401348
pop ecx
mov edi, eax
test eax, eax
jne 0x409c68
jmp 0x409cb2
xor esi, esi
mov ebx, dword [0x40ea4c]
mov eax, dword [esp]
mov edi, eax
jmp 0x409cac
push eax
call fcn.00401348
pop ecx
test eax, eax
je 0x409ca1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x409ca5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409c90
mov eax, dword [0x40ea4c]
test eax, eax
je 0x409cc2
push eax
call fcn.00408c20
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x40ea4c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b148
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_lstrcpyA
push 0x5c
lea edx, [ebp - 0x114]
push edx
call fcn.00401278
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40b181
mov edx, dword [ebp - 4]
mov byte [edx + 1], 0
jmp 0x40b1a0
push 0x3a
lea ecx, [ebp - 0x114]
push ecx
call fcn.00401278
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40b1a0
mov edx, dword [ebp - 4]
mov byte [edx + 1], 0
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x40b1c8
fld xword [0x40b218]
jmp 0x40b211
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], ecx
fild qword [ebp - 0x11c]
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], edx
fild qword [ebp - 0x124]
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], eax
fmulp st(1)
fild qword [ebp - 0x12c]
fmulp st(1)
mov esp, ebp
pop ebp
ret
Function at 0x40b3e4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcac
push 0x44
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00401198
add esp, 0xc
mov dword [ebp - 0x44], 0x44
push 0x40c0f0
lea edx, [ebp - 0x354]
push edx
call fcn.00401318
add esp, 8
cmp dword [ebp + 8], 0
je 0x40b448
push pe_nt_image_headers32
lea ecx, [ebp - 0x154]
push ecx
push dword [ebp + 8]
call sub.KERNEL32.dll_GetShortPathNameA
lea eax, [ebp - 0x154]
push eax
lea edx, [ebp - 0x354]
push edx
call fcn.0040123c
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x40b47a
cmp dword [ebp + 8], 0
je 0x40b468
push 0x40c0f1
lea ecx, [ebp - 0x354]
push ecx
call fcn.0040123c
add esp, 8
push dword [ebp + 0xc]
lea eax, [ebp - 0x354]
push eax
call fcn.0040123c
add esp, 8
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x44]
push edx
push ecx
push 0
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x354]
push 0
push eax
push 0
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
je 0x40b4b7
cmp dword [ebp + 0x10], 0
je 0x40b4b0
push 0xffffffffffffffff
push dword [ebp - 0x54]
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, 1
jmp 0x40b4b9
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40b96d
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce0
xor eax, eax
mov dword [ebp - 0x10], 0x2000
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x118]
push 0x104
push edx
call sub.KERNEL32.dll_GetWindowsDirectoryA
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x118]
add ecx, 0xe
lea edx, [ebp - 0x21c]
push ecx
push eax
push edx
call fcn.0040ac80
add esp, 0xc
lea ecx, [ebp - 0x21c]
push 1
push 0x80
push ecx
call fcn.0040b50f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40b9d9
mov eax, 2
jmp 0x40bb1d
push 0
mov edx, dword [ebp + 0xc]
push dword [edx]
call sub.KERNEL32.dll_GetFileSize
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
sub eax, dword [ecx + 0xa]
movsx ecx, word [edx + 4]
mov edx, dword [ebp + 8]
sub eax, 0xe
sub eax, ecx
movsx ecx, word [edx + 6]
mov edx, dword [ebp + 8]
sub eax, ecx
movsx ecx, word [edx + 8]
sub eax, ecx
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 8]
push dword [eax + 0xa]
push dword [ebp + 0xc]
call fcn.0040b64f
add esp, 0xc
push dword [ebp - 0x10]
call fcn.00408d34
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40ba91
mov dword [ebp - 0x14], 0xe
jmp 0x40baa6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x40ba47
lea edx, [ebp - 0x10]
jmp 0x40ba4a
lea edx, [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub dword [ebp - 0xc], ecx
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0040b601
add esp, 0xc
cmp eax, dword [ebp - 0x10]
je 0x40ba74
mov dword [ebp - 0x14], 4
jmp 0x40ba91
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040b628
add esp, 0xc
cmp eax, dword [ebp - 0x10]
je 0x40ba91
mov dword [ebp - 0x14], 5
cmp dword [ebp - 0x14], 0
jne 0x40ba9d
cmp dword [ebp - 0xc], 0
jg 0x40ba3a
push dword [ebp - 8]
call fcn.00408c20
pop ecx
push dword [ebp - 4]
call fcn.0040b5e1
cmp dword [ebp - 0x14], 0
pop ecx
je 0x40bac4
lea eax, [ebp - 0x21c]
push eax
call fcn.0040b666
pop ecx
jmp 0x40bb1a
push 0x104
lea edx, [ebp - 0x320]
push edx
lea ecx, [ebp - 0x21c]
push ecx
call sub.KERNEL32.dll_GetShortPathNameA
push 0x40c21e
lea eax, [ebp - 0x320]
push eax
push 0x40c211
push 0x40c20c
call sub.KERNEL32.dll_WritePrivateProfileStringA
push 3
push 0
push 1
push 0x11
call sub.USER32.dll_SystemParametersInfoA
push 1
push 0x40c229
lea edx, [ebp - 0x21c]
push edx
call fcn.0040b3e4
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret