joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d550
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
mov eax, dword [0x4c8124]
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
cmp eax, dword [0x4c43e0]
jl 0x42d579
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov esi, dword [0x4c87b4]
cmp byte [esi + 0x17], 0
jne 0x42d588
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x42d595
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42d5ae
test byte [esi + 0x15], 4
je 0x42d5a9
mov eax, esi
call fcn.00430d00
mov eax, dword [esi + 8]
jmp 0x42d5be
cmp al, 2
jne 0x42d5b9
call fcn.00401000
jmp 0x42d5be
mov eax, 0x4ca0b8
push 0x7f
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00491764
mov eax, dword [0x4c440c]
inc dword [0x4c8124]
add eax, 0x108
xor edx, edx
mov edi, eax
mov word [esp + 0x122], dx
mov ecx, 0x42
mov esi, 0x4c6bf0
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov esi, eax
xor ebx, ebx
mov dword [0x4c440c], eax
push ebx
mov eax, 0x4ca140
mov dword [esi + 0x2c], ebx
call fcn.00415d30
mov dword [0x4cac10], ebx
mov dword [0x4cac14], ebx
cmp dword [0x4c8154], ebx
je 0x42d62c
push 0x4c87b8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or eax, 0xffffffff
cmp byte [esi + 0xea], bl
jne 0x42d646
mov byte [esi + 0xea], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x4cac1c], ebx
je 0x42d65c
cmp dword [0x4cac18], ebx
jne 0x42d664
cmp byte [esi + 0xea], bl
je 0x42d68d
mov byte [esi + 0xe8], bl
cmp byte [esi + 0xea], bl
jne 0x42d68d
cmp dword [0x4cac1c], ebx
jl 0x42d687
call edi
mov dword [esi + 0xd8], eax
mov eax, dword [0x4cac1c]
mov dword [esi + 0xdc], eax
mov eax, dword [0x4cab8c]
mov ebx, dword [0x4cab90]
mov ecx, dword [0x4cabe4]
mov edx, dword [0x4cabe8]
mov ebp, eax
mov dword [0x4cab90], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [0x4cabe8], ecx
mov dword [0x4cab8c], eax
call edi
mov esi, dword [esp + 0x120]
mov ecx, dword [0x4c440c]
mov dword [0x4cac24], eax
mov dword [0x4cac20], eax
mov dword [0x4cabe4], eax
mov dword [0x4ca770], esi
cmp byte [ecx + 0xf5], 0
je 0x42d727
mov edx, dword [0x4ca060]
mov dword [edx*4 + 0x4c9a20], esi
call edi
mov ecx, dword [0x4ca060]
mov dword [ecx*4 + 0x4c78c0], eax
inc ecx
mov dword [0x4ca060], ecx
cmp ecx, 0x190
jl 0x42d727
mov dword [0x4ca060], 0
push 0
push 0xffffffffffffffff
push 0
push esi
call fcn.0045c690
mov esi, eax
cmp esi, 1
jne 0x42d749
mov eax, dword [esp + 0x120]
push eax
call fcn.0042bba0
mov esi, eax
mov ecx, dword [0x4c440c]
mov edx, dword [ecx + 0xc0]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [0x4c8144], edx
lea edx, [esp + 0x18]
push edx
mov dword [0x4cab8c], ebp
mov dword [0x4cabe4], eax
mov dword [0x4cab90], ebx
mov dword [0x4cabe8], ecx
call fcn.00403620
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
Function at 0x430bd0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.0049a260
cmp dword [esp + 0x4008], 0
push ebx
push ebp
mov ebp, dword [esp + 0x4018]
mov ebx, ecx
je 0x430cf3
test ebx, ebx
jne 0x430c08
mov eax, dword [esp + 0x400c]
mov ebx, dword [eax + 0x630]
test ebx, ebx
je 0x430c12
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x430c1f
mov ecx, dword [eax + 0x26c]
movzx eax, word [eax + 0x270]
mov edx, dword [esp + 0x4014]
mov ecx, dword [ecx*4 + 0x4c7f50]
push esi
push edi
push edx
movzx eax, ax
push eax
push ecx
push str._s___d__:___Warning:__s_n
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.00475700
add esp, 0x10
cmp word [ebp], 0
lea edi, [esp + eax*2 + 0x10]
je 0x430c70
lea eax, [esp + 0x10]
mov edx, edi
sub edx, eax
sar edx, 1
push ebp
push str._____Specifically:__s_n
sub esi, edx
call fcn.00475700
add esp, 8
mov esi, dword [esp + 0x4018]
cmp esi, 3
jne 0x430c9f
call fcn.0048f01d
add eax, 0x20
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00490a49
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x430cf1
test ebx, ebx
jne 0x430cc4
mov ecx, dword [esp + 0x4014]
mov ebx, dword [ecx + 0x630]
test ebx, ebx
je 0x430ce3
mov eax, dword [esp + 0x401c]
push ebp
push 1
push eax
mov ecx, ebx
call fcn.00430490
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
mov edx, dword [esp + 0x401c]
push ebp
push edx
call fcn.00430750
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
Function at 0x4379b0
Capabilities:
Log keystrokes

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x28]
call fcn.00445670
mov edi, eax
test edi, edi
je 0x4379de
mov esi, dword [esp + 0x1c]
push edi
call fcn.00479d40
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x437a29
mov ecx, dword [0x4c440c]
cmp byte [ecx + 0x104], 0
jne 0x437a0c
mov edx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a531c
push edx
call fcn.004783a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x4acd84
push 0
push 0x4a531c
call fcn.004301d0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0
push edi
xor bl, bl
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
test ebp, ebp
je 0x437a61
cmp ebp, dword [0x4ca0cc]
je 0x437a61
mov esi, edi
call fcn.0047a260
test al, al
jne 0x437a61
mov eax, dword [0x4ca0cc]
push 1
push ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne bl
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x437a9f
mov edx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2900
push edx
call fcn.004783a0
mov eax, dword [0x4c440c]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x437a9f
push 1
push eax
call fcn.00401340
add esp, 8
test bl, bl
je 0x437ab3
mov ecx, dword [0x4ca0cc]
push 0
push ebp
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x10
Function at 0x438910
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.004324d0
mov ebx, eax
test ebx, ebx
jne 0x438943
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.00430490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x43894f
jmp dword [eax*4 + 0x438b48]
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x43896a
push eax
call fcn.004568b0
add esp, 4
jmp 0x438970
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4c87b4]
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.004568b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4389e8
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4389e8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4c87b4]
push 0x18
push 0
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2900
push ecx
call fcn.004783a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx edx, word [edi]
push edx
call fcn.00490bbd
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x438a26.67
movzx eax, byte [eax + 0x438b78]
jmp dword [eax*4 + 0x438b5c]
mov esi, 0x40
jmp 0x438a55
mov esi, 0x4000
jmp 0x438a55
mov esi, 0x20
jmp 0x438a55
mov esi, 0x8000
jmp 0x438a55
mov esi, 0x80
jmp 0x438a55
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x438a69
push eax
call fcn.004568b0
add esp, 4
jmp 0x438a6f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x4389e8
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4389e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x4389bc
mov edx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2900
push edx
call fcn.004783a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [edi], 0
je 0x438ae9
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.004130a0
fmul qword [0x4bf1c8]
call fcn.0049d390
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x438af0
mov byte [esp + 0x13], 1
xor edi, edi
mov eax, dword [ebp + 0xc]
push eax
call fcn.004568b0
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x438b0d
test esi, esi
jne 0x4389cb
jmp 0x438b11
test esi, esi
je case.0x438a26.67
cmp byte [esp + 0x13], 0
jne 0x438b2f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4389cb
push 1
push 0x64
call fcn.00401340
add esp, 8
jmp 0x438af0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4393c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4c7f00]
push eax
mov eax, dword [esp + 0x18]
call fcn.00445670
mov ebp, eax
test ebp, ebp
je 0x4393e6
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
jmp 0x4393eb
mov ebx, 1
push 1
push 0
lea ecx, [ebx - 1]
push ecx
push 0
push edi
call fcn.004783a0
cmp eax, 1
je 0x439409
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebp, ebp
je 0x43951e
cmp byte [edi + 0x17], 0
jne 0x43941c
mov esi, dword [edi + 0xc]
jmp 0x43941e
mov esi, edi
test byte [esi + 0x15], 8
je 0x43942b
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x439444
test byte [esi + 0x15], 4
je 0x43943f
mov eax, esi
call fcn.00430d00
mov eax, dword [esi + 8]
jmp 0x439454
cmp al, 2
jne 0x43944f
call fcn.00401000
jmp 0x439454
mov eax, 0x4ca0b8
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x17], 0
mov ebx, eax
jne 0x43946a
mov esi, dword [edi + 0xc]
jmp 0x43946c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x439484
test byte [esi + 0x15], 8
je 0x43947f
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x439489
mov eax, 0x4cae08
lea edx, [ebx + ebx]
mov dword [eax], edx
cmp byte [edi + 0x17], 0
jne 0x439499
mov esi, dword [edi + 0xc]
jmp 0x43949b
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x4394b3
test byte [esi + 0x15], 8
je 0x4394ae
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x4394b8
mov eax, 0x4cae08
test dword [eax], 0xfffffffe
jne 0x439595
cmp byte [edi + 0x17], 0
jne 0x4394cf
mov esi, dword [edi + 0xc]
jmp 0x4394d1
mov esi, edi
test byte [esi + 0x15], 8
je 0x4394de
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4394ff
test byte [esi + 0x15], 4
je 0x4394f2
mov eax, esi
call fcn.00430d00
mov eax, dword [esi + 8]
xor ecx, ecx
mov word [eax], cx
jmp 0x439595
cmp al, 2
jne 0x439512
call fcn.00401000
xor ecx, ecx
mov word [eax], cx
jmp 0x439595
mov eax, 0x4ca0b8
xor ecx, ecx
mov word [eax], cx
jmp 0x439595
cmp byte [edi + 0x17], 0
jne 0x439529
mov esi, dword [edi + 0xc]
jmp 0x43952b
mov esi, edi
test byte [esi + 0x15], 8
je 0x439538
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x439551
test byte [esi + 0x15], 4
je 0x43954c
mov eax, esi
call fcn.00430d00
mov eax, dword [esi + 8]
jmp 0x439561
cmp al, 2
jne 0x43955c
call fcn.00401000
jmp 0x439561
mov eax, 0x4ca0b8
xor edx, edx
mov word [eax], dx
cmp byte [edi + 0x17], dl
jne 0x439570
mov esi, dword [edi + 0xc]
jmp 0x439572
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x43958a
test byte [esi + 0x15], 8
je 0x439585
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x43958f
mov eax, 0x4cae08
mov dword [eax], 0
cmp byte [edi + 0x17], 0
jne 0x43959e
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x4395be
cmp dword [0x4ca0f0], 0
je 0x4395be
mov ecx, 0x4ca0e4
call fcn.00404270
pop edi
pop esi
pop ebp
pop ebx
ret 4
and byte [edi + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x43a3f0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.0049a260
push ebp
mov ebp, dword [0x4c7f00]
push esi
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x7fff
jb 0x43a51a
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push ebp
call fcn.004783a0
test eax, eax
jne 0x43a440
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
cmp byte [ebp + 0x17], 0
jne 0x43a44b
mov esi, dword [ebp + 0xc]
jmp 0x43a44d
mov esi, ebp
test byte [esi + 0x15], 8
je 0x43a45a
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43a473
test byte [esi + 0x15], 4
je 0x43a46e
mov eax, esi
call fcn.00430d00
mov eax, dword [esi + 8]
jmp 0x43a483
cmp al, 2
jne 0x43a47e
call fcn.00401000
jmp 0x43a483
mov eax, 0x4ca0b8
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x43a4d7
cmp byte [ebp + 0x17], al
jne 0x43a49a
mov esi, dword [ebp + 0xc]
jmp 0x43a49c
mov esi, ebp
test byte [esi + 0x15], 8
je 0x43a4a9
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43a4c2
test byte [esi + 0x15], 4
je 0x43a4bd
mov eax, esi
call fcn.00430d00
mov eax, dword [esi + 8]
jmp 0x43a4d2
cmp al, 2
jne 0x43a4cd
call fcn.00401000
jmp 0x43a4d2
mov eax, 0x4ca0b8
xor edx, edx
mov word [eax], dx
cmp byte [ebp + 0x17], 0
jne 0x43a4e2
mov eax, dword [ebp + 0xc]
jmp 0x43a4e4
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x43a507
cmp dword [0x4ca0f0], 0
je 0x43a507
mov ecx, 0x4ca0e4
call fcn.00404270
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
and byte [eax + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x43a527
mov eax, 0x4acd84
push 1
push 0
push edi
push eax
push ebp
call fcn.004783a0
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x43cce0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push 0
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x43cd20
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43cd85
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push str.InstallDir
push edx
mov dword [esp + 0x28], 0x208
call ebp
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43cdb3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43cdb3
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43cd93
test eax, eax
je 0x43cd85
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43cd7d
sub ecx, 2
dec eax
jne 0x43cd71
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43cdbc
test edi, edi
jne 0x43cdbc
mov edi, 0x100
jmp 0x43ccf8
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43cdaa
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43cd85
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43cd81
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43cd85
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43cddf
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
nop
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x43cdd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x4406f0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [0x4c7f00]
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [edi]
test cx, cx
je 0x4407d5
cmp word [edi + 2], 0
jne 0x440755
cmp ecx, 0xa
jne 0x440729
mov al, 0xd
jmp 0x4407cf
push eax
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x440749
cmp cl, 0xff
jne 0x440749
xor al, al
jmp 0x4407cf
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x4407cf
mov esi, ecx
test esi, 0xffffff80
jne 0x440771
push 2
push esi
call fcn.0048fcbe
add esp, 8
test eax, eax
je 0x440771
and esi, 0xffffffdf
cmp si, 0x56
jne 0x440798
mov ax, word [edi + 2]
call fcn.004095a0
cmp ax, 0x4b
jne 0x440798
push 0x10
lea ecx, [edi + 4]
push 0
push ecx
call fcn.0049009b
add esp, 0xc
jmp 0x4407cf
xor esi, esi
lea ebx, [ebx]
mov edx, dword [esi*8 + 0x4c5218]
push edi
push edx
call fcn.0048ea69
add esp, 8
test eax, eax
je 0x440808
inc esi
cmp esi, 0x6d
jl 0x4407a0
mov eax, edi
call fcn.004121d0
movzx ecx, ax
test cx, cx
je 0x4407d5
call fcn.00412950
mov bl, al
test bl, bl
jne 0x44084e
push 0
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.004518f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x440811
push 1
push eax
push 0xffffffffffffffff
push 0x4acd84
push ebp
call fcn.004783a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov bl, byte [esi*8 + 0x4c521c]
jmp 0x4407d1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
call fcn.00451ba0
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00477cc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov edx, dword [esp + 0x22c]
movzx esi, word [edx]
test esi, 0xffffff80
jne 0x440872
push 2
push esi
call fcn.0048fcbe
add esp, 8
test eax, eax
je 0x440872
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x50
je 0x44088a
xor ecx, ecx
cmp eax, 0x54
setne cl
lea eax, [ecx - 1]
and eax, 2
jmp 0x44088f
mov eax, 1
push eax
call fcn.00451af0
add esp, 4
test al, al
mov eax, 0x4abd74
jne 0x4408a6
mov eax, 0x4abd78
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.004783a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
Function at 0x4408c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
push esi
mov esi, ecx
mov ecx, dword [0x4c7f00]
push edi
call fcn.004130e0
test esi, esi
je 0x440a39
cmp word [esi], 0
je 0x440a39
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00491764
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x30]
mov word [esp + 0x238], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440911
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
je 0x440948
lea edx, [eax + 1]
cmp edx, 0x105
jae 0x440a39
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0x30], cx
mov word [esp + eax*2 + 0x32], dx
test byte [0x4cb71c], 1
jne 0x440976
or dword [0x4cb71c], 1
push str.GetDiskFreeSpaceExW
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb718], eax
jmp 0x44097b
mov eax, dword [0x4cb718]
test eax, eax
je 0x4409c7
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
call eax
test eax, eax
je 0x440a39
test bl, bl
je 0x4409b4
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x440a07
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x440a07
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x440a39
mov eax, dword [esp + 0x14]
test bl, bl
jne 0x4409f6
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
shr eax, 0x14
mov esi, eax
xor edi, edi
mov edx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2900
push edx
call fcn.004783a0
mov eax, dword [0x4c7f00]
push 0x18
push edi
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4c440c]
cmp byte [eax + 0x104], 0
jne 0x440a66
mov ecx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a531c
push ecx
call fcn.004783a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4acd84
push 0
push 0x4a531c
call fcn.004301d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4428d0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x218
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call ebp
test eax, eax
jne 0x4428fd
cmp byte [0x4cac08], al
je 0x4429a9
call fcn.00409780
pop ebp
add esp, 0x218
ret
cmp byte [0x4cac08], 0
push ebx
push esi
mov esi, 0x4c87b8
jne 0x442911
lea esi, [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push 0x104
call ebx
test eax, eax
je 0x44296f
cmp word [edi], 0
je 0x442987
cmp word [edi + 2], 0x3a
jne 0x442987
cmp word [edi + 4], 0
jne 0x442987
push esi
push edi
call fcn.0048ea69
add esp, 8
test eax, eax
je 0x442987
push edi
lea ecx, [esp + 0x10]
push 0x4ac208
push ecx
call fcn.0048ee73
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call ebp
test eax, eax
je 0x442987
push esi
push 0x104
call ebx
test eax, eax
jne 0x442987
push 0x103
push edi
push esi
call fcn.00491764
add esp, 0xc
xor eax, eax
mov word [esi + 0x206], ax
cmp byte [0x4cac08], 0
pop esi
pop ebx
je 0x4429a9
mov ecx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2900
push ecx
call fcn.004783a0
pop ebp
add esp, 0x218
ret
Function at 0x443040
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
mov ebp, ecx
test edi, edi
je 0x4431e8
cmp word [edi], 0
je 0x4431e8
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44309c
mov ecx, dword [0x4c440c]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.004302c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0x5c
push edi
call fcn.0049063d
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x4431af
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4430b6
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x443123
mov eax, dword [0x4c440c]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0x104], cl
jne 0x443103
mov eax, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a531c
push eax
call fcn.004783a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov ecx, ebp
push 0x4acd84
push 0
push 0x4a531c
call fcn.004301d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov esi, ebx
sub esi, edi
sar esi, 1
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00491764
add esp, 0xc
lea eax, [esp + 0x18]
xor edx, edx
push eax
mov ecx, ebp
mov word [esp + esi*2 + 0x1c], dx
call fcn.00443040
cmp word [ebx + 2], 0
je 0x44319d
mov esi, dword [0x4c87b4]
cmp byte [esi + 0x17], 0
jne 0x443161
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x44316e
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x443187
test byte [esi + 0x15], 4
je 0x443182
mov eax, esi
call fcn.00430d00
mov eax, dword [esi + 8]
jmp 0x443197
cmp al, 2
jne 0x443192
call fcn.00401000
jmp 0x443197
mov eax, 0x4ca0b8
cmp word [eax], 0x31
jne 0x4431af
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete cl
mov byte [esp + 0x14], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4c440c]
mov dword [edx + 0x30], eax
mov eax, dword [esp + 0x14]
push eax
push ebp
call fcn.004302c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov eax, dword [0x4c440c]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x443105
mov ecx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a531c
push ecx
call fcn.004783a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4