joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423cb0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0xa4
cmp byte [0x4ee2c9], 0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x5ec], eax
jne 0x423e3a
cmp byte [ebx + 0x630], 0
je 0x423e3a
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4ca738]
push 0
push 1
mov dword [0x4ee358], eax
call fcn.00401550
push 0x7f
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [0x4c8024]
add esp, 0xc
inc dword [0x4ca73c]
add eax, 0xe8
mov byte [esp + 0xaf], 0
mov edi, eax
mov ecx, 0x3a
mov dword [0x4c8024], eax
mov esi, 0x4ca640
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4cc848
mov dword [eax + 0x2c], 0
call fcn.00423990
cmp dword [0x4ca750], 0
xorps xmm0, xmm0
movlpd qword [0x4cce80], xmm0
je 0x423d7a
mov eax, dword [0x4c9994]
mov ecx, 0x4b6ba9
test eax, eax
je 0x423d73
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebx + 0x5e0]
mov esi, dword [0x4c801c]
mov dword [0x4c801c], 0
mov byte [0x4ee2c9], 1
mov byte [0x4c9d32], 0
test ecx, ecx
je 0x423dbd
call fcn.00401610
test eax, eax
je 0x423dbd
cmp byte [0x4c9d32], 0
jne 0x423dbd
mov byte [0x4c9d32], 1
jmp 0x423e0e
mov byte [0x4c9d32], 1
mov dword [esp + 0x18], 0
call fcn.004570f0
mov dword [esp + 0x10], eax
lea ecx, [ebx + 0x5ac]
mov eax, dword [0x4ee358]
cdq
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [ebx + 0x5e0], eax
mov dword [esp + 0x28], 1
sete al
mov dword [esp + 0x24], edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call fcn.00490550
cmp eax, 3
jne 0x423e85
xor al, al
mov byte [0x4ee2c9], al
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jle 0x423e8f
lea ecx, [esp + 0x30]
call fcn.004041a0
mov dword [0x4c801c], esi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [0x4c9d32], 0
jne 0x423e75
cmp eax, 6
jne 0x423e75
mov eax, dword [0x4cbf20]
mov ecx, dword [0x4ee358]
pop edi
pop esi
cmp byte [eax], 0
mov eax, 8
mov byte [0x4c9d32], 1
cmovne ecx, dword [ebp + 0xc]
mov dword [0x4ee358], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov byte [0x4c9d32], 0
push eax
call fcn.00423ea0
mov eax, dword [ebp + 8]
mov byte [0x4ee2c9], 0
push dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.00423ea0
int3
Function at 0x424560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4a9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x4cd048]
mov dword [ebp - 0x68], vtable.TextStream.0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
cmp eax, 0xffffffff
je 0x4245d3
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
neg eax
sbb al, al
and byte [ebp - 0x4e], al
mov dword [ebp - 0x68], vtable.TextMem.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0xa
mov dword [ebp - 4], 0
push str.E4847ED08866458F8DD35F94B37001C0
push 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x424746
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x424746
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x424746
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x424746
cmp dword [eax], 0x4034b50
jne 0x424713
call fcn.00404470
test al, al
je 0x42475d
xor edx, edx
nop word [eax + eax]
mov eax, dword [edx*4 + 0x4c9164]
lea ecx, [edx + 1]
inc edx
mov byte [eax], cl
cmp edx, 0xa
jl 0x424680
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp + 8]
push 0x4c9164
push dword [ebp - 0x18]
call fcn.004a1f90
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x424713
lea edi, [ebx + 2]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x14], 1
push ebx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x1c]
add esp, 0xc
xor ecx, ecx
push ebx
push ecx
push esi
mov word [eax + ebx], cx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 0x18], edi
call fcn.00404470
test al, al
je 0x42475d
mov ecx, dword [0x4ca7cc]
call fcn.0041f9f0
mov ecx, dword [0x4ca7c8]
call fcn.0041f9f0
mov edi, dword [ebp - 0x10]
push 0xfde9
push 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x68]
call fcn.0049bde0
mov eax, dword [edi + 0x618]
mov ecx, edi
inc dword [0x4cbf18]
mov dword [0x4cbf1c], eax
lea eax, [ebp - 0x68]
push eax
call fcn.00424780
mov esi, eax
jmp 0x42475f
push 0
push dword [ebp + 8]
xorps xmm3, xmm3
xor edx, edx
mov ecx, str.Could_not_extract_script_from_EXE.
call fcn.004a4cd0
add esp, 8
xor esi, esi
lea ecx, [ebp - 0x68]
call fcn.004226b0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43f410
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2004
call fcn.004b4520
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x43f506
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x43f450
mov esi, dword [edi + 0x38c]
test esi, esi
jne 0x43f450
mov ecx, dword [edi + 0x14c]
movzx eax, word [edi + 0x150]
jmp 0x43f458
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
push dword [ecx*4 + 0x4cbf1c]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.0049e760
lea ecx, [esp + 0x28]
add esp, 0x18
add ecx, eax
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x43f4a4
push eax
lea eax, [esp + 0x2014]
push str._____Specifically:__s_n
sub eax, ecx
push eax
push ecx
call fcn.0049e760
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x43f4c5
push 0x4bc8e8
push 0
push eax
mov ecx, edi
call fcn.0043e8a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebx, 2
jne 0x43f506
test esi, esi
jne 0x43f4f6
mov esi, dword [edi + 0x38c]
test esi, esi
jne 0x43f4f6
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0043ee10
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.0043eaa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43f890
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1f4
push ebx
mov ebx, dword [esp + 0x1fc]
push ebp
push esi
push edi
mov ebp, ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x43f8c0
push 0x64
lea ecx, [esp + 0x9c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43f8c8
mov byte [esp + 0x98], 0
mov esi, dword [0x4cce38]
mov byte [esp + 0x18], 0
test esi, esi
je 0x43f994
nop dword [eax + eax]
cmp byte [esi + 0x11], 0
je 0x43f942
mov eax, dword [0x4ee514]
mov edx, dword [esi]
test al, 1
jne 0x43f907
push 0
or eax, 1
mov ecx, 0x4ee518
push 0
mov dword [0x4ee514], eax
call fcn.00422440
mov eax, dword [0x4ccbd8]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x43f919
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x43f92d
cmp ecx, dword [0x4ee518]
jne 0x43f928
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x43f92d
mov eax, str.Object
push eax
push 0x4be7ac
lea eax, [esp + 0x20]
push 0x7d
push eax
call fcn.0049e7b0
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x43f8e0
cmp byte [esp + 0x18], 0
je 0x43f994
lea ecx, [esp + 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f957
sub ecx, edx
cmp ecx, 0x7b
jbe 0x43f988
mov esi, 0x7f
lea edi, [esp + 0x18]
sub esi, ecx
add edi, ecx
push esi
push 0x4bbd20
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x43f994
cmp byte [esp + ecx + 0x17], 0x20
jne 0x43f994
mov byte [esp + ecx + 0x17], 0
mov cl, 1
call fcn.004154e0
lea edx, [esp + 0x100]
mov cl, al
call fcn.00415880
mov ecx, dword [0x4ca638]
mov edi, eax
mov esi, dword [0x4ca73c]
cmp byte [ecx + 0xd8], 0
je 0x43f9d0
cmp byte [0x4cce79], 0
jne 0x43f9d0
mov ecx, 1
jmp 0x43f9d2
xor ecx, ecx
mov eax, dword [0x4ca728]
mov edx, 0x4bb180
sub eax, ecx
mov dword [esp + 0x14], 0x4bb17c
cmp dword [0x4ca770], 0
mov ecx, edx
push edi
push dword [0x4ca758]
cmovne ecx, dword [esp + 0x1c]
mov edi, 0x4b6ba9
cmp dword [0x4ca774], 0
push esi
cmovne edx, dword [esp + 0x20]
cmp esi, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmovle eax, edi
xor edi, edi
push eax
cmp esi, 1
lea eax, [esi - 1]
cmovle eax, edi
push eax
lea eax, [esp + 0x30]
push eax
push dword [0x4cce40]
lea eax, [esp + 0xb8]
push dword [0x4cce44]
push ecx
push edx
push eax
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
push 0xfffe
push ebx
call fcn.0049e760
add ebx, eax
mov edx, ebp
add esp, 0x3c
sub edx, ebx
add edx, 0xfffe
mov ecx, ebx
call fcn.0040b6d0
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43fa70
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
add ebx, ecx
cmp dword [0x4ca76c], edi
mov ecx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
cmove eax, ecx
sub ebp, ebx
push eax
add ebp, 0xfffe
push ebp
push ebx
call fcn.0049e760
add esp, 0xc
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f4
ret 8
Function at 0x4468b0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push dword [esp + 0x20]
mov esi, ecx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00455d60
mov edi, eax
test edi, edi
je 0x4469a4
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.004a4a80
mov ebx, eax
test ebx, ebx
je 0x4469a4
push 0
push edi
mov byte [esp + 0x28], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x446926
cmp esi, dword [0x4cc810]
je 0x446926
mov ecx, edi
call fcn.004a4f30
test al, al
jne 0x446926
push 1
push esi
push dword [0x4cc810]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x20]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x446983
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
call fcn.004a2db0
mov eax, dword [0x4c8024]
cmp dword [eax + 0x58], 0xffffffff
jle 0x446983
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4cc810], eax
je 0x446970
mov eax, dword [0x4c8024]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x446983
mov ecx, dword [0x4c8024]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401730
cmp byte [esp + 0x20], 0
je 0x446999
push 0
push esi
push dword [0x4cc810]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x14
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
jne 0x4469ce
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop edi
pop esi
pop ebx
ret 0x14
push 0x4b6ba9
push 0
push 0x4bb578
mov ecx, esi
call fcn.0043e6c0
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x4488e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4cbec8]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00455d60
mov ebx, eax
test ebx, ebx
je 0x448910
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
jmp 0x448915
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004a2db0
cmp eax, 1
je 0x448933
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x4489b8
push edi
push 0
push 1
call fcn.00401550
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x448958
mov edi, dword [esi + 0xc]
jmp 0x44895a
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x448972
test byte [edi + 0x15], 8
je 0x44896d
mov ecx, edi
call fcn.004013b0
add edi, 0xc
jmp 0x448977
mov edi, 0x4ce2c0
mov dword [edi], ebx
cmp byte [esi + 0x17], 0
jne 0x448984
mov edi, dword [esi + 0xc]
jmp 0x448986
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44899e
test byte [edi + 0x15], 8
je 0x448999
mov ecx, edi
call fcn.004013b0
add edi, 0xc
jmp 0x4489a3
mov edi, 0x4ce2c0
cmp dword [edi], 0
jne 0x4489f4
push 0
push 1
mov ecx, esi
call fcn.00401550
mov byte [eax], 0
jmp 0x4489f4
push 0
push 1
call fcn.00401550
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x4489cf
mov edi, dword [esi + 0xc]
jmp 0x4489d1
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4489e9
test byte [edi + 0x15], 8
je 0x4489e4
mov ecx, edi
call fcn.004013b0
add edi, 0xc
jmp 0x4489ee
mov edi, 0x4ce2c0
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x4489fd
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x448a1e
cmp dword [0x4cc838], 0
je 0x448a1e
push 1
mov ecx, 0x4cc82c
call fcn.004056e0
pop edi
pop esi
pop ebx
ret 0x10
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x448ab0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8e68
call fcn.004b4520
push esi
mov esi, ecx
lea ecx, [esp + 4]
push edi
call fcn.00440b60
push dword [ebp + 0x14]
xor eax, eax
mov byte [esp + 0xc39], 1
push dword [ebp + 0x10]
cmp edx, 6
push dword [ebp + 0xc]
cmove eax, esi
push dword [ebp + 8]
mov dword [esp + 0xc68], eax
push dword [0x4c8024]
call fcn.004a5100
test eax, eax
je 0x448b0f
lea eax, [esp + 8]
push eax
push 0x4a4430
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esi + 0x17], 0
mov edi, dword [esp + 0xc38]
jne 0x448b1f
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x448b38
and cl, 0x3d
mov byte [esi + 0x15], cl
mov ecx, dword [esi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov cl, byte [esi + 0x15]
mov eax, edi
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x448b61
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x4ca760], 0
je 0x448b71
mov ecx, esi
call fcn.004013b0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x449ba0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004b4520
push esi
mov esi, dword [0x4cbec8]
lea eax, [esp + 4]
push edi
push 0x7fff
push eax
push dword [esp + 0x8014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
push 1
cmp edi, 0x7fff
jb 0x449c65
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004a2db0
test eax, eax
jne 0x449bf7
pop edi
pop esi
add esp, 0x8000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401550
push eax
push dword [esp + 0x8014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x449c22
push eax
push 1
mov ecx, esi
call fcn.00401550
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x449c2b
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x449c51
cmp dword [0x4cc838], 0
je 0x449c51
push 1
mov ecx, 0x4cc82c
call fcn.004056e0
pop edi
pop esi
add esp, 0x8000
ret 4
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
add esp, 0x8000
ret 4
push 0
test edi, edi
lea eax, [esp + 0x10]
mov ecx, 0x4b6ba9
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004a2db0
pop edi
pop esi
add esp, 0x8000
ret 4
Function at 0x44ce60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x121c
call fcn.004b4520
push ebx
push ebp
push esi
push edi
mov eax, ecx
mov byte [esp + 0x13], dl
push eax
push dword [0x4cce70]
mov dword [esp + 0x1c], eax
lea ebx, [esp + 0x230]
push str.__s_s
mov eax, ebx
mov ebp, 0x4b6ba9
push 0x800
push eax
call fcn.0049e760
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x44cecc
lea eax, [esp + 0x229]
push eax
call edi
cmp eax, 0xffffffff
je 0x44cecc
mov eax, dword [0x4cce70]
jmp 0x44cf7b
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push ecx
call fcn.0049fac0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x44cf03
test esi, esi
jne 0x44cf03
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push ecx
call fcn.0049fac0
mov edx, eax
add esp, 0x10
test edx, edx
je 0x44cee4
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0x18]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x11f], al
test al, al
jne 0x44cf10
test edx, edx
je 0x44d00a
push dword [esp + 0x14]
lea eax, [esp + 0x124]
push eax
push str.__s_s
lea eax, [esp + 0x234]
push 0x800
push eax
call fcn.0049e760
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x44d00a
lea eax, [esp + 0x229]
push eax
call edi
cmp eax, 0xffffffff
je 0x44d00a
lea eax, [esp + 0x120]
cmp byte [esp + 0x13], 0
mov word [esp + esi + 0x228], 0x22
je 0x44cfe0
push 0x4bf3fc
push eax
push str.__s_s
lea eax, [esp + 0xa34]
push 0x800
push eax
call fcn.0049e760
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x44cfe0
lea eax, [esp + 0xa29]
push eax
call edi
cmp eax, 0xffffffff
je 0x44cfe0
mov word [esp + esi + 0xa28], 0x22
lea ebx, [esp + 0xa28]
lea ebp, [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push ebx
mov ecx, 0x4cc848
call fcn.0043fab0
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x121c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x121c
ret
Function at 0x451080
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
push ebx
push edi
mov edi, dword [0x4cbec8]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
mov ecx, dword [ebp + 8]
xor edx, edx
push 0
call fcn.00415d30
mov bh, al
add esp, 0xc
test bh, bh
jne 0x45111a
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xc]
push 0
call fcn.00468e20
add esp, 4
test eax, eax
jne 0x4510e1
push 1
push eax
push 0xffffffffffffffff
push 0x4b6ba9
mov ecx, edi
call fcn.004a2db0
pop edi
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.00469140
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004a25e0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov bl, byte [eax]
movzx eax, bl
test eax, 0xffffff80
jne 0x45113c
push 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x45113c
and bl, 0xdf
mov al, bl
cmp al, 0x50
je 0x451150
xor ecx, ecx
mov edx, 2
cmp al, 0x54
cmovne edx, ecx
jmp 0x451155
mov edx, 1
mov cl, bh
call fcn.004690a0
push 1
test al, al
mov edx, 0x4bf694
push 0
mov ecx, 0x4bbd14
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004a2db0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x451190
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4cbec8]
push 0
call fcn.004a2db0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4512d7
cmp byte [eax], 0
je 0x4512d7
push 0x103
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea ecx, [esp + 0x34]
mov byte [esp + 0x137], 0
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4511f0
sub ecx, edx
cmp byte [esp + ecx + 0x27], 0x5c
je 0x451215
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x4512d7
mov word [esp + ecx + 0x28], 0x5c
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4512d7
cmp byte [ebp + 0xc], 0
je 0x451247
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x45124f
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
shrd ebx, edi, 0x14
push 0x4b6c08
shr edi, 0x14
call fcn.004a2db0
mov esi, dword [0x4cbec8]
cmp byte [esi + 0x17], 0
jne 0x45127b
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x451292
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x15]
and al, 0x9b
mov dword [esi], ebx
or al, 0x18
mov dword [esi + 4], edi
mov byte [esi + 0x15], al
jge 0x4512b9
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4ca760], 0
je 0x4512c9
mov ecx, esi
call fcn.004013b0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
jne 0x451304
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4b6ba9
push 0
push 0x4bb578
mov ecx, esi
call fcn.0043e6c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x453400
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
push esi
mov esi, ecx
mov al, byte [esi]
test al, al
je 0x45342f
cmp byte [esi + 1], 0x3a
jne 0x45342f
cmp byte [esi + 2], 0
jne 0x45342f
mov byte [esp + 4], al
lea esi, [esp + 4]
mov word [esp + 5], 0x5c3a
mov byte [esp + 7], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x453491
cmp byte [0x4cce78], al
je 0x4534d5
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
jne 0x453472
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop esi
add esp, 0x108
ret
mov ecx, dword [0x4ccbd4]
push 0x4b6ba9
push 0
push 0x4bb578
call fcn.0043e6c0
pop esi
add esp, 0x108
ret
cmp byte [0x4cce78], 0
je 0x4534d5
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
lea ecx, [esp + 8]
cmove ecx, esi
push ecx
push ecx
mov ecx, 0x4c9990
call fcn.004699d0
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
call fcn.004a2db0
pop esi
add esp, 0x108
ret
Function at 0x453b10
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 0x453bd4
cmp byte [ebx], 0
je 0x453bd4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x453b58
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.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
cmp esi, ebx
jbe 0x453bbc
cmp byte [esi - 1], 0x3a
je 0x453bbc
test edi, edi
je 0x453b88
mov edx, ebx
mov byte [esi], 0
mov ecx, ebx
call fcn.00453b10
mov byte [esi], 0x5c
jmp 0x453bb2
mov edi, esi
sub edi, ebx
lea eax, [edi + 1]
call fcn.004b4550
mov esi, esp
push edi
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [edi + esi], 0
mov edx, esi
mov ecx, esi
call fcn.00453b10
mov esi, dword [ebp - 4]
cmp byte [esi + 1], 0
je 0x453bde
test al, al
je 0x453bde
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
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