joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4180f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push 0xa
push str._AUTOHOTKEY_SCRIPT_
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41819a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41819a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41819a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x41819a
push 0x44
call fcn.00489305
add esp, 4
test eax, eax
je 0x418164
mov esi, eax
call fcn.00416900
mov ecx, eax
jmp 0x418166
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.00472470
mov ecx, dword [edi + 0x600]
inc dword [0x4af174]
mov dword [0x4ad194], ecx
mov eax, 3
pop esi
add esp, 0x10
ret 8
mov edx, dword [esp + 0x1c]
push edx
push str.Could_not_extract_script_from_EXE.
mov ecx, edi
call fcn.0042fe10
pop esi
add esp, 0x10
ret 8
Function at 0x41e070
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
mov al, byte [0x4aa3b3]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], al
mov dword [esp + 0xe], 0x3e3c0928
mov dword [esp + 0x12], 0x2d2b3d3a
mov dword [esp + 0x16], 0x7e212f2a
mov dword [esp + 0x1a], 0x5b5e7c26
mov dword [esp + 0x1e], 0x7b3f2e
mov edi, ebp
test ebp, ebp
je 0x41e0da
mov dl, byte [ebp]
test dl, dl
je 0x41e0da
lea ecx, [ecx]
lea ecx, [esp + 0xc]
mov al, 0x20
cmp dl, al
je 0x41e12e
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41e0c6
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x41e0c0
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e0e0
sub eax, edx
lea edi, [eax + ebp - 1]
cmp edi, ebp
jbe 0x41e100
mov al, byte [edi]
cmp al, 0x20
je 0x41e0fb
cmp al, 9
jne 0x41e100
dec edi
cmp edi, ebp
ja 0x41e0f1
mov esi, edi
sub esi, ebp
inc esi
cmp esi, 0xfd
jbe 0x41e135
cmp byte [esp + 0x30], 0
je 0x41e123
mov ecx, dword [esp + 0x28]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0042fe10
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc
cmp edi, ebp
jbe 0x41e100
dec edi
jmp 0x41e0ed
push esi
push ebp
push ebx
call fcn.0048a8d0
add esp, 0xc
mov eax, edi
pop edi
mov byte [esi + ebx], 0
pop esi
pop ebp
add esp, 0x18
ret 0xc
Function at 0x430380
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2004
call fcn.00494110
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x43047b
test ebx, ebx
jne 0x4303b0
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x374]
test ebx, ebx
je 0x4303ba
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x4303c7
mov ecx, dword [eax + 0x170]
movzx eax, word [eax + 0x174]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx*4 + 0x4ad194]
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.004749f0
mov esi, dword [ebp + 0x14]
add esp, 0x10
cmp byte [esi], 0
lea edi, [esp + eax + 0x10]
je 0x430413
push esi
lea esi, [esp + 0x2014]
push str._____Specifically:__s_n
sub esi, edi
call fcn.004749f0
mov esi, dword [ebp + 0x14]
add esp, 8
mov edi, dword [ebp + 0xc]
cmp edi, 3
jne 0x430439
mov eax, dword [ebp + 8]
push 0x49e244
push 0
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0042f9e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, 2
jne 0x43047b
test ebx, ebx
jne 0x43045a
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x374]
test ebx, ebx
je 0x430471
mov edx, dword [ebp + 0x10]
push esi
push 1
push edx
mov ecx, ebx
call fcn.0042fb70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
push esi
push eax
call fcn.0042fe10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4308b0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1fc
push ebx
push ebp
push esi
push edi
mov edi, eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
cmp eax, ebx
je 0x4308df
push 0x64
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4308e6
mov byte [esp + 0xa0], bl
mov esi, dword [0x4af7e8]
mov byte [esp + 0x20], bl
cmp esi, ebx
je 0x43098b
cmp byte [esi + 0x12], bl
je 0x430939
mov edx, dword [esi]
push edx
call fcn.0046fd50
add esp, 4
sub eax, ebx
je 0x43091d
dec eax
je 0x430916
mov eax, str.Object
jmp 0x430922
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x430922
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x49fe2c
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00474a30
add esp, 8
mov esi, dword [esi + 0x14]
cmp esi, ebx
jne 0x4308f8
cmp byte [esp + 0x20], bl
je 0x43098b
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x430950
sub eax, edx
cmp eax, 0x7b
jbe 0x43097d
mov esi, 0x7f
sub esi, eax
push esi
lea ebp, [esp + eax + 0x24]
push 0x49de30
push ebp
call fcn.0048a8d0
add esp, 0xc
mov byte [esi + ebp], bl
jmp 0x43098b
cmp byte [esp + eax + 0x1f], 0x20
lea eax, [esp + eax + 0x20]
jne 0x43098b
mov byte [eax - 1], bl
mov edx, dword [0x4ace20]
cmp byte [edx + 0xd8], bl
je 0x4309a9
mov dword [esp + 0x14], 1
cmp byte [0x4af82d], bl
je 0x4309ad
mov dword [esp + 0x14], ebx
mov eax, dword [0x4ae3c8]
mov dword [esp + 0x10], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x430abc
mov dword [esp + 0x10], 0x49b8bd
mov dword [esp + 0x18], ebx
mov ebp, 0x49cb38
cmp dword [0x4ae388], ebx
je 0x4309e1
mov ebp, 0x49cb34
mov esi, 0x49cb38
cmp dword [0x4ae384], ebx
je 0x4309f3
mov esi, 0x49cb34
push 1
call fcn.00413430
mov bl, al
add esp, 4
lea eax, [esp + 0x108]
call fcn.00413820
mov ecx, dword [0x4ae3c8]
mov edx, dword [0x4ae3cc]
sub edx, dword [esp + 0x14]
push eax
mov eax, dword [0x4ae3c4]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [0x4af7f0]
push ecx
mov ecx, dword [0x4af7f4]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push ebp
push esi
lea edx, [esp + 0xcc]
push edx
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
mov esi, 0xfffe
call fcn.004749f0
mov esi, dword [esp + 0x50]
add edi, eax
mov eax, esi
sub eax, edi
add esp, 0x34
add eax, 0xfffe
push eax
push edi
call fcn.00409910
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x430a80
sub eax, ecx
add edi, eax
cmp dword [0x4aea6c], 0
mov eax, str._r_nPress__F5__to_refresh.
jne 0x430a9e
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
sub esi, edi
push eax
add esi, 0xfffe
call fcn.004749f0
add esp, 4
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret
dec eax
mov dword [esp + 0x18], eax
jmp 0x4309cf
Function at 0x4367b0
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.00443110
mov edi, eax
test edi, edi
je 0x4367de
mov esi, dword [esp + 0x1c]
push edi
call fcn.004793d0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x436829
mov ecx, dword [0x4aa978]
test byte [ecx + 0xe0], 1
jne 0x43680c
mov edx, dword [0x4aea5c]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push edx
call fcn.00477990
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x49b8bd
push 0
push 0x49cf30
call fcn.0042f770
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 0x436861
cmp ebp, dword [0x4af1dc]
je 0x436861
mov esi, edi
call fcn.004798b0
test al, al
jne 0x436861
mov eax, dword [0x4af1dc]
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 0x43689f
mov edx, dword [0x4aea5c]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push edx
call fcn.00477990
mov eax, dword [0x4aa978]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x43689f
push 1
push eax
call fcn.00401420
add esp, 8
test bl, bl
je 0x4368b3
mov ecx, dword [0x4af1dc]
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 0x4375d0
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 ebx, ecx
call fcn.00431c60
mov dword [esp + 0x10], eax
test eax, eax
jne 0x437605
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042fb70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x43760f
jmp dword [eax*4 + 0x4377fc]
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x437625
call fcn.00454330
jmp 0x43762b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4aea5c]
call fcn.00401130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.00454330
mov ebx, eax
test ebx, ebx
je 0x43769f
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x43769f
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 [0x4aea5c]
push 0x18
push 0
push esi
call fcn.00401130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4aea5c]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
call fcn.00477990
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [ebx]
push ecx
call fcn.0048a1bb
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4376d9.67
movzx edx, byte [eax + 0x43782c]
jmp dword [edx*4 + 0x437810]
mov esi, 0x40
jmp 0x437708
mov esi, 0x4000
jmp 0x437708
mov esi, 0x20
jmp 0x437708
mov esi, 0x8000
jmp 0x437708
mov esi, 0x80
jmp 0x437708
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x437717
call fcn.00454330
jmp 0x43771d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x43769f
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x43769f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x437673
mov ecx, dword [0x4aea5c]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push ecx
call fcn.00477990
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx], 0
je 0x437796
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.00414d60
fmul qword [0x4a3f08]
call fcn.00496300
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x4377a0
mov byte [esp + 0xf], 1
xor edi, edi
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
call fcn.00454330
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x4377bb
test esi, esi
jne 0x437682
jmp 0x4377c3
test esi, esi
je 0x43769f
cmp byte [esp + 0xf], 0
jne 0x4377e1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x437682
push 1
push 0x64
call fcn.00401420
add esp, 8
jmp 0x4377a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x438030
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4ae198]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00443110
mov edi, eax
test edi, edi
je 0x438056
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x43805b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00477990
cmp eax, 1
je 0x438079
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x4380fe
push ebp
push 0
push 1
call fcn.00401270
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x43809e
mov edi, dword [esi + 0xc]
jmp 0x4380a0
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4380b8
test byte [edi + 0x15], 8
je 0x4380b3
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x4380bd
mov eax, 0x4afa2c
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x4380ca
mov edi, dword [esi + 0xc]
jmp 0x4380cc
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4380e4
test byte [edi + 0x15], 8
je 0x4380df
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x4380e9
mov eax, 0x4afa2c
cmp dword [eax], 0
jne 0x43813a
push 0
push 1
mov ecx, esi
call fcn.00401270
mov byte [eax], 0
jmp 0x43813a
push 0
push 1
call fcn.00401270
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x438115
mov edi, dword [esi + 0xc]
jmp 0x438117
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43812f
test byte [edi + 0x15], 8
je 0x43812a
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x438134
mov eax, 0x4afa2c
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x438143
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x438165
cmp dword [0x4af200], 0
je 0x438165
push 1
mov ecx, 0x4af1f4
call fcn.004048f0
pop edi
pop esi
pop ebp
pop ecx
ret 4
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4

Function at 0x438f00
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00494110
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4ae198]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x438fb4
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00477990
test eax, eax
jne 0x438f52
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401270
push eax
push ebx
call ebp
test eax, eax
jne 0x438f73
push eax
push 1
mov ecx, esi
call fcn.00401270
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x438f7c
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x438fa1
cmp dword [0x4af200], 0
je 0x438fa1
push 1
mov ecx, 0x4af1f4
call fcn.004048f0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x8000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x438fc1
mov eax, 0x49b8bd
push 1
push 0
push edi
push eax
push esi
call fcn.00477990
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x43b2a0
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, dword [0x4af820]
sub esp, 0x108
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
push eax
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
jne 0x43b2f1
lea ecx, [esp + 0xc]
push ecx
call fcn.0043b7d0
add esp, 4
test eax, eax
je 0x43b2e5
lea edx, [esp + 0xc]
push edx
call ebp
push esi
call edi
cmp eax, 0xffffffff
jne 0x43b2f1
xor al, al
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x49b8bd
push 0x4af210
mov edx, esi
call fcn.00430ad0
test eax, eax
mov eax, dword [0x4abaac]
setne bl
test eax, eax
je 0x43b324
mov eax, dword [eax]
test eax, eax
jne 0x43b329
mov eax, 0x49b8bd
push eax
call ebp
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x108
ret

Function at 0x43b7d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push ebx
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x43b808
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43b883
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.InstallDir
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x43b800
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43b800
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x43b867
cmp eax, ebx
je 0x43b883
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x43b861
dec eax
jne 0x43b858
mov dword [esp + 0x10], eax
jmp 0x43b87f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43b87b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43b883
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x43b891
cmp edi, ebx
jne 0x43b891
mov edi, 0x100
jmp 0x43b7e4
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43b8ae
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x43b8a4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43ee00
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ae198]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00413d30
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43ee9c
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044fae0
mov edi, eax
add esp, 4
test edi, edi
jne 0x43ee60
push 1
push eax
push 0xffffffffffffffff
push 0x49b8bd
push ebp
call fcn.00477990
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
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.0044fd80
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.004772e0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43eec0
push 2
push ebx
call fcn.0048914e
add esp, 8
test eax, eax
je 0x43eec0
and bl, 0xdf
cmp bl, 0x50
je 0x43eed3
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43eed8
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044fcd0
add esp, 4
test al, al
mov eax, 0x4a0fec
jne 0x43eef3
mov eax, 0x4a0ff0
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00477990
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4

Function at 0x43ef10
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
mov esi, ecx
mov ecx, dword [0x4ae198]
push edi
call fcn.00414da0
test esi, esi
je 0x43eff3
cmp byte [esi], 0
je 0x43eff3
push 0x103
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0048a8d0
lea eax, [esp + 0x2c]
add esp, 0xc
mov byte [esp + 0x123], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ef60
sub eax, edx
cmp byte [esp + eax + 0x1f], 0x5c
je 0x43ef85
lea ecx, [eax + 1]
cmp ecx, 0x104
jae 0x43eff3
mov byte [esp + eax + 0x20], 0x5c
mov byte [esp + eax + 0x21], 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x43eff3
cmp byte [ebp + 0xc], 0
je 0x43efb3
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x43efbb
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov eax, dword [0x4aea5c]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
call fcn.00477990
mov eax, dword [0x4ae198]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.00401130
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4aa978]
test byte [ecx + 0xe0], 1
jne 0x43f021
mov edx, dword [0x4aea5c]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push edx
call fcn.00477990
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49b8bd
push 0
push 0x49cf30
call fcn.0042f770
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x440d90
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
push esi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x440dbf
mov cl, 0x3a
cmp byte [esi + 1], cl
jne 0x440dbf
cmp byte [esi + 2], 0
jne 0x440dbf
mov byte [esp + 4], al
mov byte [esp + 5], cl
mov word [esp + 6], 0x5c
lea esi, [esp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x440ddf
cmp byte [0x4af82c], al
je 0x440e24
call fcn.00409d90
pop esi
add esp, 0x108
ret
cmp byte [0x4af82c], 0
je 0x440e24
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x440e02
lea esi, [esp + 8]
jmp 0x440e06
test esi, esi
je 0x440e0d
mov eax, esi
call fcn.00450460
mov ecx, dword [0x4aea5c]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push ecx
call fcn.00477990
pop esi
add esp, 0x108
ret
Function at 0x441420
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4414db
cmp byte [ebx], 0
je 0x4414db
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x441463
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
shr eax, 4
and eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x5c
push ebx
call fcn.00489f93
mov edi, eax
add esp, 8
mov dword [ebp + 8], edi
cmp edi, ebx
jbe 0x4414c5
cmp byte [edi - 1], 0x3a
je 0x4414c5
cmp dword [ebp + 0xc], 0
je 0x44148a
mov esi, ebx
mov byte [edi], 0
jmp 0x4414a8
sub edi, ebx
lea eax, [edi + 1]
call fcn.00491370
mov esi, esp
push edi
push ebx
push esi
call fcn.0048a8d0
mov byte [edi + esi], 0
mov edi, dword [ebp + 8]
add esp, 0xc
push esi
push esi
call fcn.00441420
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x4414bb
mov byte [edi], 0x5c
cmp byte [edi + 1], 0
je 0x4414e5
test al, al
je 0x4414e5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret