joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42faa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cce15
push eax
mov dword fs:[0], esp
sub esp, 0x50
cmp dword [0x4faae4], 0
push esi
push edi
mov esi, ecx
je 0x42fb1d
lea ecx, [ebp - 0x5c]
call fcn.0042d1f0
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0042f5d0
mov edi, eax
cmp edi, 3
jne 0x42fb01
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.0042fc00
mov edi, eax
lea ecx, [ebp - 0x5c]
call fcn.0042d280
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x50]
call fcn.004052e0
mov dword [ebp - 0x50], vtable.TextFile.0
mov dword [ebp - 0x1c], 0xffffffff
push 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x50]
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0042f5d0
mov edi, eax
cmp edi, 3
jne 0x42fb64
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.0042fc00
mov edi, eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x50], vtable.TextFile.0
test ecx, ecx
je 0x42fb99
cmp dword [ebp - 0x24], 0
jne 0x42fb99
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push ecx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov word [ebp - 0x28], ax
cmp ecx, 0xffffffff
je 0x42fbc4
mov eax, dword [ebp - 0x4c]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x42fbbd
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], vtable.TextStream.0
test eax, eax
je 0x42fbeb
push 0x2000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x436540
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
mov word [esp + 0xc], ax
mov ebx, ebp
mov ax, word [0x4f93d0]
mov dword [esp + 8], ecx
mov word [esp + 0xe], ax
mov dword [esp + 0x10], 0x90028
mov dword [esp + 0x14], 0x3e003c
mov dword [esp + 0x18], 0x3d003a
mov dword [esp + 0x1c], 0x2d002b
mov dword [esp + 0x20], 0x2f002a
mov dword [esp + 0x24], 0x7e0021
mov dword [esp + 0x28], 0x7c0026
mov dword [esp + 0x2c], 0x5b005e
mov dword [esp + 0x30], 0x3f002e
mov dword [esp + 0x34], 0x7b
push esi
push edi
test ebp, ebp
je 0x436605
movzx eax, word [ebp]
test ax, ax
je 0x436605
mov esi, eax
nop word [eax + eax]
lea eax, [esp + 0x14]
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x436675
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x4365e0
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x4365d0
mov ecx, ebp
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436610
sub ecx, edx
lea edi, [ebp - 2]
sar ecx, 1
lea edi, [edi + ecx*2]
cmp edi, ebp
jbe 0x436644
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x43663d
cmp eax, 9
jne 0x436644
sub edi, 2
cmp edi, ebp
ja 0x436630
mov ebx, edi
sub ebx, ebp
sar ebx, 1
inc ebx
cmp ebx, 0xfd
jbe 0x436683
cmp byte [esp + 0x4c], 0
je 0x436669
push ecx
mov ecx, dword [esp + 0x14]
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0044df00
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
test ebx, ebx
je 0x436605
cmp ebx, ebp
lea edi, [ebx - 2]
cmovbe edi, ebx
jmp 0x436625
mov esi, dword [esp + 0x44]
push ebx
push ebp
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
Function at 0x43d0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10004
call fcn.004cc6a0
push esi
push edi
push dword [esp + 0x10018]
lea eax, [esp + 0xc]
push dword [esp + 0x10018]
push 0x4ea57c
push 0x8001
push eax
call fcn.004b0610
add esp, 0x14
mov edi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0x10010]
cmp eax, 0xffffffff
je 0x43d159
test al, 0x10
je 0x43d159
lea eax, [edi*4 + 0x408]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x43d159
lea ecx, [edi*2 + 2]
push ecx
lea ecx, [esp + 0xc]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 4], edi
pop edi
pop esi
add esp, 0x10004
ret 0xc
pop edi
mov dword [esi], 0x4cec30
pop esi
add esp, 0x10004
ret 0xc
Function at 0x44d4c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcc
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
mov dword [esp + 4], eax
mov edx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], str.What
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x44], 0
push esi
mov esi, 8
test eax, eax
jne 0x44d560
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4f8620]
movzx ecx, word [edx + 2]
mov dword [esp + 0x40], eax
mov eax, dword [0x4fb60c]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], str.File
mov dword [esp + 0x68], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], str.Line
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], str.Message
mov dword [esp + 0xa8], 0
test eax, eax
je 0x44d629
cmp word [eax], 0
je 0x44d629
mov esi, 0xa
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb0], str.Extra
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc0], eax
mov edx, esi
lea ecx, [esp + 8]
call fcn.0049c8d0
pop esi
add esp, 0xcc
ret 0xc
Function at 0x44d8a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ccedd
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x4f9bb0]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
je 0x44d8e0
push str.stdout
push esi
mov ecx, 0x4f9b70
call fcn.0040bb20
mov eax, dword [0x4f9bb0]
cmp eax, 2
je 0x44da31
lea ecx, [ebp - 0x48]
call fcn.004052e0
mov dword [ebp - 0x48], vtable.TextFile.0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
push dword [edi + 0xafc]
push 2
push dword [ebp + 0x10]
call fcn.004ad860
push dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
push esi
call fcn.004adf70
mov edx, dword [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test edx, edx
je 0x44d96b
cmp dword [ebp - 0x1c], 0
jne 0x44d96b
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x10]
cmp eax, fcn.004ae3b0
jne 0x44d95d
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call edi
jmp 0x44d966
push edx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call eax
xor edx, edx
mov dword [ebp - 0x40], edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
cmp eax, method.TextFile.virtual_8
jne 0x44d9a9
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xffffffff
je 0x44d9b4
mov eax, dword [ebp - 0x44]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x44d9a1
push ecx
call esi
mov edx, dword [ebp - 0x40]
or ecx, 0xffffffff
mov dword [ebp - 0x14], ecx
jmp 0x44d9b4
lea ecx, [ebp - 0x48]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], vtable.TextFile.0
test edx, edx
je 0x44d9e3
cmp dword [ebp - 0x1c], 0
jne 0x44d9e3
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x18]
push ecx
call edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], 0
xor eax, eax
mov word [ebp - 0x20], ax
cmp ecx, 0xffffffff
je 0x44da07
mov eax, dword [ebp - 0x44]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x44da00
push ecx
call esi
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], vtable.TextStream.0
test eax, eax
je 0x44da31
push 0x2000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44e4f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004cc6a0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x44e5fc
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x44e530
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x44e530
mov ecx, dword [edi + 0x24c]
movzx eax, word [edi + 0x250]
jmp 0x44e538
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
mov eax, dword [0x4fb60c]
push dword [eax + ecx*4]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.004b0610
mov edx, eax
add esp, 0x18
mov eax, dword [ebp + 0x10]
cmp word [eax], 0
je 0x44e587
push eax
mov ecx, 0x2000
lea eax, [esp + 0x14]
push str._____Specifically:__s_n
sub ecx, edx
lea eax, [eax + edx*2]
push ecx
push eax
call fcn.004b0610
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x44e5a8
push 0x4e7f54
push 0
push eax
mov ecx, edi
call fcn.0044d8a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
mov ecx, 0x4f9b70
call fcn.0040bc40
test al, al
jne 0x44e5c2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 2
jne 0x44e5fc
test esi, esi
jne 0x44e5ec
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x44e5ec
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0044df00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, esi
push 1
push eax
call fcn.0044dae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x454b90
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov edi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004633d0
mov esi, eax
test esi, esi
je 0x454ce9
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.004b69b0
mov ebx, eax
test ebx, ebx
je 0x454ce9
push 0
push esi
mov byte [esp + 0x1b], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
test edi, edi
je 0x454c66
cmp edi, dword [0x4fcbf0]
je 0x454c66
mov eax, dword [0x4ff18c]
test al, 1
jne 0x454c1c
push str.IsHungAppWindow
or eax, 1
push str.user32
mov dword [0x4ff18c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ff190], eax
jmp 0x454c21
mov eax, dword [0x4ff190]
test eax, eax
je 0x454c2a
push esi
call eax
jmp 0x454c48
lea eax, [esp + 0x14]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
jne 0x454c6c
push 1
push edi
push dword [0x4fcbf0]
call esi
test eax, eax
setne byte [esp + 0x13]
jmp 0x454c6c
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x454cc9
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
call fcn.004b4bf0
mov eax, dword [0x4f8174]
cmp dword [eax + 0x58], 0xffffffff
jle 0x454cc9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fcbf0], eax
je 0x454cb6
mov eax, dword [0x4f8174]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x454cc9
mov ecx, dword [0x4f8174]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004018d0
cmp byte [esp + 0x13], 0
je 0x454cdb
push 0
push edi
push dword [0x4fcbf0]
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne 0x454d16
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4cec30
push 0
push 0x4e513c
mov ecx, edi
call fcn.0044d640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x45a0c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x241c
call fcn.004cc6a0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x4fd700]
lea ebp, [esp + 0x430]
push str.__s_s
mov eax, ebp
push 0x800
push eax
call fcn.004b0610
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
add esp, 0x14
cmp esi, 0x800
jge 0x45a12c
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45a12c
mov dword [esp + esi*2 + 0x428], 0x22
mov esi, dword [0x4fd700]
jmp 0x45a1f3
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b1b10
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x45a178
nop dword [eax]
test esi, esi
jne 0x45a178
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b1b10
mov edx, eax
add esp, 0x10
test edx, edx
je 0x45a150
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [esp + ecx + 0x18]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x21e], ax
test ax, ax
jne 0x45a180
test edx, edx
je 0x45a298
push edi
lea eax, [esp + 0x224]
push eax
push str.__s_s
lea eax, [esp + 0x434]
push 0x800
push eax
call fcn.004b0610
mov esi, eax
add esp, 0x14
cmp esi, 0x800
jge 0x45a298
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45a298
mov dword [esp + esi*2 + 0x428], 0x22
lea esi, [esp + 0x220]
cmp byte [esp + 0x17], 0
je 0x45a269
push str.AutoHotkey.exe
push esi
push str.__s_s
lea eax, [esp + 0x1434]
push 0x800
push eax
call fcn.004b0610
mov ebx, eax
add esp, 0x14
cmp ebx, 0x800
jge 0x45a252
lea eax, [esp + 0x142a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45a252
mov dword [esp + ebx*2 + 0x1428], 0x22
lea ebp, [esp + 0x1428]
lea eax, [esp + 0x428]
jmp 0x45a26e
cmp esi, dword [0x4fd700]
jne 0x45a269
mov ebp, dword [0x4fd6fc]
lea eax, [esp + 0x428]
jmp 0x45a26e
mov eax, 0x4cec30
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ebp
mov ecx, 0x4fcc10
call fcn.0044ecf0
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x241c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x241c
ret
Function at 0x45e220
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
push edi
mov edi, dword [0x4fc2a8]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 8]
xor edx, edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.0041efb0
mov bl, al
add esp, 0xc
test bl, bl
jne 0x45e2be
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0047a220
add esp, 4
test eax, eax
jne 0x45e284
push 1
push eax
push 0xffffffffffffffff
push 0x4cec30
mov ecx, edi
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x20], 0
call fcn.0047a480
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004b4480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
movzx esi, word [eax]
test esi, 0xffffff80
je 0x45e2d0
xor eax, eax
jmp 0x45e2dc
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
cmp ecx, 0x50
je 0x45e2fa
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x45e2ff
mov edx, 1
mov cl, bl
call fcn.0047a3e0
push 1
test al, al
mov edx, 0x4ed954
push 0
mov ecx, 0x4ed950
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45e330
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4fc2a8]
push 0
call fcn.004b4bf0
mov eax, dword [ebp + 8]
test eax, eax
je 0x45e428
cmp word [eax], 0
je 0x45e428
push 0x103
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x20]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x226], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45e390
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x1e], 0x5c
je 0x45e3b9
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x45e428
mov dword [esp + ecx*2 + 0x20], 0x5c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x45e428
cmp byte [ebp + 0xc], 0
je 0x45e3e7
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
jmp 0x45e3ef
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
call fcn.004b4bf0
mov ecx, dword [0x4fc2a8]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.00401470
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne 0x45e454
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x4cec30
push 0
push 0x4e513c
mov ecx, esi
call fcn.0044d640
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x460280
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x4602b4
cmp word [esi + 2], 0x3a
jne 0x4602b4
cmp word [esi + 4], 0
jne 0x4602b4
mov word [esp + 8], ax
lea esi, [esp + 8]
xor eax, eax
mov dword [esp + 0xa], 0x5c003a
mov word [esp + 0xe], ax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x46030c
cmp byte [0x4fd708], al
je 0x460332
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne 0x4602f0
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop esi
add esp, 0x10
ret
mov ecx, dword [0x4fd25c]
push 0x4cec30
push 0
push 0x4e513c
call fcn.0044d640
pop esi
add esp, 0x10
ret
cmp byte [0x4fd708], 0
je 0x460332
mov ecx, esi
call fcn.00460340
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
call fcn.004b4bf0
pop esi
add esp, 0x10
ret

Function at 0x460340
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004cc6a0
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
lea ecx, [esp + 4]
cmove ecx, esi
pop esi
test ecx, ecx
je 0x460377
push ecx
push ecx
mov ecx, 0x4f9bd4
call fcn.0047ace0
add esp, 0x10000
ret

Function at 0x460380
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004cc6a0
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4603b1
lea eax, [esp]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 4
add esp, 0x10000
ret
xor eax, eax
add esp, 0x10000
ret
Function at 0x460ca0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x460d76
cmp word [ebx], 0
je 0x460d76
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x460ce9
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
shr eax, 4
and al, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
cmp esi, ebx
jbe 0x460d5e
cmp word [esi - 2], 0x3a
je 0x460d5e
test edi, edi
je 0x460d21
xor eax, eax
mov edx, ebx
mov ecx, ebx
mov word [esi], ax
call fcn.00460ca0
mov ecx, 0x5c
mov word [esi], cx
jmp 0x460d53
mov edi, esi
sub edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
call fcn.004cc6d0
mov esi, esp
push edi
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov edx, esi
mov word [esi + edi*2], ax
mov ecx, esi
call fcn.00460ca0
mov esi, dword [ebp - 4]
cmp word [esi + 2], 0
je 0x460d80
test al, al
je 0x460d80
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461ff0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
push edi
test esi, esi
je 0x46203f
push 0
push 1
mov ecx, esi
call fcn.00401690
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x46201a
mov edi, dword [esi + 0xc]
jmp 0x46201c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x462036
test byte [edi + 0x15], 8
je 0x46202f
mov ecx, edi
call fcn.004014f0
add edi, 0xc
mov edi, dword [edi]
jmp 0x462075
mov edi, 0x4feb88
mov edi, dword [edi]
jmp 0x462075
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
lea edx, [esp + 0x20]
call fcn.004b4620
add esp, 4
test eax, eax
jne 0x46206d
mov eax, dword [0x4f8174]
pop edi
pop esi
pop ebx
mov dword [eax + 0x30], 0
xor eax, eax
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
push ebp
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4620da
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x4620b3
push ecx
lea eax, [esp + 0x24]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, edi
sete al
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f8174]
push ebp
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x4620eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f8174]
xor edi, edi
mov dword [ecx + 0x30], eax
pop ebp
test esi, esi
jne 0x4620fa
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
je 0x46211d
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
call fcn.004b4bf0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne 0x46214a
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
push 0x4cec30
push 0
push 0x4e513c
call fcn.0044d640
pop edi
pop esi
pop ebx
add esp, 8
ret 8