joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433470
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 [0x4e3350]
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
mov esi, ecx
mov dword [esp + 0xc], esi
push edi
test ebp, ebp
je 0x433535
movzx eax, word [ebp]
test ax, ax
je 0x43354b
mov esi, eax
nop word [eax + eax]
lea eax, [esp + 0x14]
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x433545
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x433510
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x433500
mov esi, dword [esp + 0x10]
xor ebx, ebx
test ebx, ebx
je 0x43354b
cmp ebx, ebp
lea edi, [ebx - 2]
cmovbe edi, ebx
jmp 0x433565
mov esi, dword [esp + 0x10]
jmp 0x433537
mov ecx, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433550
sub ecx, edx
lea edi, [ebp - 2]
sar ecx, 1
lea edi, [edi + ecx*2]
cmp edi, ebp
jbe 0x433584
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x43357d
cmp eax, 9
jne 0x433584
sub edi, 2
cmp edi, ebp
ja 0x433570
mov ebx, edi
sub ebx, ebp
sar ebx, 1
inc ebx
cmp ebx, 0xfd
jbe 0x4335b3
cmp byte [esp + 0x4c], 0
je 0x4335a7
push ebp
push str.This_line_does_not_contain_a_recognized_action.
mov ecx, esi
call fcn.00447a20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
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 0x447220
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 0x4472c0
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4e25c0]
movzx ecx, word [edx + 2]
mov dword [esp + 0x40], eax
mov eax, dword [0x4e6438]
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 0x447389
cmp word [eax], 0
je 0x447389
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.0048c2d0
pop esi
add esp, 0xcc
ret 0xc
Function at 0x447a20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x400c
call fcn.004b7170
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x648]
test ecx, ecx
je 0x447a55
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00447650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ebx, 0x4d5ba0
test eax, eax
mov esi, 0x4b8c14
cmovne ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
cmovne esi, eax
cmp byte [0x4e784f], 0
je 0x447adc
cmp byte [0x4e784c], 0
jne 0x447adc
mov ecx, dword [edi + 0x248]
mov eax, dword [0x4e6438]
push ebx
push dword [edi + 0x24c]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push dword [eax + ecx*4]
push str._s___d__:____s_n
push 2
call edi
add esp, 4
push eax
call fcn.004490f0
add esp, 0x14
cmp word [esi], 0
je 0x447c56
push esi
push str._____Specifically:__s_n
push 2
call edi
add esp, 4
push eax
call fcn.004490f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [edi + 0x24c]
lea eax, [esp + 0x1c]
push str.Error_at_line__u
push 0x2000
push eax
call fcn.0049c210
add eax, eax
lea edx, [esp + 0x28]
add edx, eax
mov ecx, 0x2000
sar eax, 1
add esp, 0x10
sub ecx, eax
mov dword [esp + 0x10], edx
cmp dword [edi + 0x248], 0
je 0x447b54
mov edx, dword [edi + 0x248]
mov eax, dword [0x4e6438]
push dword [eax + edx*4]
mov edx, dword [esp + 0x14]
push str._in_include_file___s_
push ecx
push edx
call fcn.0049c210
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
add esp, 0x10
lea edx, [edx + eax*2]
mov eax, edx
mov dword [esp + 0x10], edx
sub eax, ecx
mov ecx, 0x2000
sar eax, 1
sub ecx, eax
push 0x4d5bcc
push ecx
push edx
call fcn.0049c210
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
add esp, 0xc
lea ecx, [ecx + eax*2]
mov eax, ecx
mov dword [esp + 0x10], ecx
sub eax, edx
mov edx, 0x2000
sar eax, 1
sub edx, eax
cmp word [esi], 0
je 0x447bdd
mov ecx, esi
lea eax, [ecx + 2]
mov dword [esp + 0x14], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x447b90
sub ecx, dword [esp + 0x14]
mov eax, 0x4cfc2c
sar ecx, 1
cmp ecx, 0x64
mov ecx, 0x4b8c14
cmovbe eax, ecx
push eax
push esi
push str.Line_Text:___1.100s_s_nError:
push edx
push dword [esp + 0x20]
call fcn.0049c210
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
add esp, 0x14
lea ecx, [ecx + eax*2]
mov eax, ecx
sub eax, edx
mov edx, 0x2000
sar eax, 1
sub edx, eax
cmp byte [edi + 0xaf6], 0
mov eax, str.The_script_was_not_reloaded__the_old_version_will_remain_in_effect.
mov esi, str.The_program_will_exit.
cmove eax, esi
push eax
push ebx
push str._s_n_n_s
push edx
push ecx
call fcn.0049c210
add esp, 0x14
cmp dword [0x4e3b24], 0
je 0x447c3e
push str.stderr
lea eax, [esp + 0x1c]
mov ecx, 0x4e3ae8
push eax
call fcn.0040af50
cmp dword [0x4e3b24], 2
je 0x447c56
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
xorps xmm3, xmm3
lea ecx, [esp + 0x20]
mov edx, 0x10000
call fcn.004a1c80
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4486a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3cc
push ebx
mov ebx, dword [esp + 0x3d4]
push ebp
push esi
push edi
mov ebp, ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x4486d0
push 0x64
lea ecx, [esp + 0x114]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4486da
xor eax, eax
mov word [esp + 0x110], ax
mov esi, dword [0x4e780c]
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x448789
nop
cmp byte [esi + 0x11], 0
je 0x448728
mov ecx, dword [esi]
call fcn.0048f430
sub eax, 0
je 0x44870e
sub eax, 1
je 0x44870e
mov eax, 0x4d5124
jmp 0x448713
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4d5fc0
lea eax, [esp + 0x18]
push 0x7d
push eax
call fcn.0049c260
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4486f0
cmp word [esp + 0x10], si
je 0x448789
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x448740
sub ecx, edx
sar ecx, 1
cmp ecx, 0x7b
jbe 0x44877a
mov esi, 0x7f
lea edi, [esp + 0x10]
sub esi, ecx
lea edi, [edi + ecx*2]
push esi
push 0x4cfc2c
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x448789
cmp word [esp + ecx*2 + 0xe], 0x20
jne 0x448789
xor eax, eax
mov word [esp + ecx*2 + 0xe], ax
mov eax, dword [0x4e4858]
cmp byte [eax + 0xf8], 0
je 0x4487a7
cmp byte [0x4e784d], 0
jne 0x4487a7
mov esi, 1
jmp 0x4487a9
xor esi, esi
mov eax, dword [0x4e4b84]
cmp eax, 1
jle 0x4487b8
lea edi, [eax - 1]
jmp 0x4487ba
xor edi, edi
mov cl, 1
call fcn.0041af60
lea edx, [esp + 0x1d8]
mov cl, al
call fcn.0041b370
mov ecx, dword [0x4e4b84]
mov edx, 0x4b8c14
push eax
push dword [0x4e4b9c]
mov eax, dword [0x4e4968]
push ecx
sub eax, esi
cmp ecx, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov ecx, 0x4ce7f8
cmovle eax, edx
cmp dword [0x4e4bb0], 0
push eax
push edi
lea eax, [esp + 0x28]
mov edx, 0x4ce7f0
push eax
push dword [0x4e7814]
mov eax, ecx
push dword [0x4e7818]
cmovne eax, edx
cmp dword [0x4e4bb4], 0
push eax
cmovne ecx, edx
lea eax, [esp + 0x138]
push ecx
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.0049c210
add eax, eax
mov edi, 0xfffe
add ebx, eax
add esp, 0x3c
sar eax, 1
mov edx, edi
sub edx, eax
mov ecx, ebx
call fcn.00412db0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x448860
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
sar ecx, 1
cmp dword [0x4e4bac], 0
lea esi, [ebx + ecx*2]
mov ecx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
cmove eax, ecx
push eax
mov eax, esi
sub eax, ebp
sar eax, 1
sub edi, eax
push edi
push esi
call fcn.0049c210
add esp, 0xc
lea eax, [esi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3cc
ret 8
Function at 0x44e370
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov esi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0045b960
mov edi, eax
test edi, edi
je 0x44e46f
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004a1a80
mov ebx, eax
test ebx, ebx
je 0x44e46f
push 0
push edi
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x44e3ec
cmp esi, dword [0x4e6ce0]
je 0x44e3ec
mov ecx, edi
call fcn.004a1f60
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
test al, al
jne 0x44e3f2
push 1
push esi
push dword [0x4e6ce0]
call edi
test eax, eax
setne byte [esp + 0xf]
jmp 0x44e3f2
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x44e44f
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4b8cc8
call fcn.004a0110
mov eax, dword [0x4e211c]
cmp dword [eax + 0x58], 0xffffffff
jle 0x44e44f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4e6ce0], eax
jne 0x44e441
mov ecx, dword [0x4e211c]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401a30
jmp 0x44e44f
mov eax, dword [0x4e211c]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esp + 0xf], 0
je 0x44e461
push 0
push esi
push dword [0x4e6ce0]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x4e211c]
test byte [eax + 0x100], 1
jne 0x44e49c
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4cefc4
call fcn.004a0110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4b8c14
push 0
push 0x4cefc4
mov ecx, esi
call fcn.004473a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44fce0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4e6390]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0045b960
mov ebx, eax
test ebx, ebx
je 0x44fd10
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x44fd15
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004a0110
cmp eax, 1
je 0x44fd33
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
push 0
push 1
mov ecx, esi
call fcn.004016c0
test ebx, ebx
je 0x44fdbd
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x44fd58
mov edi, dword [esi + 0xc]
jmp 0x44fd5a
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44fd72
test byte [edi + 0x15], 8
je 0x44fd6d
mov ecx, edi
call fcn.004015e0
add edi, 0xc
jmp 0x44fd77
mov edi, 0x4e8ce8
lea eax, [ebx + ebx]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
jne 0x44fd87
mov edi, dword [esi + 0xc]
jmp 0x44fd89
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44fda1
test byte [edi + 0x15], 8
je 0x44fd9c
mov ecx, edi
call fcn.004015e0
add edi, 0xc
jmp 0x44fda6
mov edi, 0x4e8ce8
cmp dword [edi], 2
jae 0x44fdf1
push 0
push 1
mov ecx, esi
call fcn.004016c0
xor ecx, ecx
mov word [eax], cx
jmp 0x44fdf1
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x44fdcc
mov edi, dword [esi + 0xc]
jmp 0x44fdce
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44fde6
test byte [edi + 0x15], 8
je 0x44fde1
mov ecx, edi
call fcn.004015e0
add edi, 0xc
jmp 0x44fdeb
mov edi, 0x4e8ce8
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x44fdfa
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x44fe1a
cmp dword [0x4e6d08], 0
je 0x44fe1a
push ecx
mov ecx, 0x4e6cfc
call fcn.00405e80
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 0x450c20
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004b7170
push esi
mov esi, dword [0x4e6390]
lea eax, [esp + 4]
push edi
push 0x7fff
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
push 1
cmp edi, 0x7fff
jb 0x450ce6
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004a0110
test eax, eax
jne 0x450c77
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.004016c0
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x450ca4
push eax
push 1
mov ecx, esi
call fcn.004016c0
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x450cad
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x450cd2
cmp dword [0x4e6d08], 0
je 0x450cd2
push ecx
mov ecx, 0x4e6cfc
call fcn.00405e80
pop edi
pop esi
add esp, 0x10000
ret 4
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
add esp, 0x10000
ret 4
push 0
test edi, edi
lea eax, [esp + 0x10]
mov ecx, 0x4b8c14
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004a0110
pop edi
pop esi
add esp, 0x10000
ret 4
Function at 0x453920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
push dword [esp + 0x14]
push str.__s_s
push 0x800
push esi
call fcn.0049c210
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x453967
lea ecx, [esi + 2]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x453967
mov dword [esi + edi*2], 0x22
mov al, 1
pop edi
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x453970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x241c
call fcn.004b7170
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x4e7844]
lea ebx, [esp + 0x430]
mov ebp, 0x4b8c14
push str.__s_s
mov eax, ebx
push 0x800
push eax
call fcn.0049c210
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x4539e2
lea eax, [esp + 0x42a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4539e2
mov dword [esp + esi*2 + 0x428], 0x22
mov esi, dword [0x4e7844]
jmp 0x453a74
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.0049d620
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x453a2b
test esi, esi
jne 0x453a2b
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.0049d620
mov edx, eax
add esp, 0x10
test edx, edx
je 0x453a03
xor ecx, ecx
nop dword [eax]
movzx eax, word [esp + ecx + 0x18]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x21e], ax
test ax, ax
jne 0x453a30
test edx, edx
je 0x453b0e
lea eax, [esp + 0x220]
push eax
push edi
lea ecx, [esp + 0x430]
call fcn.00453920
add esp, 8
test al, al
je 0x453b0e
lea esi, [esp + 0x220]
cmp byte [esp + 0x17], 0
je 0x453ae4
push str.AutoHotkey.exe
push esi
push str.__s_s
lea eax, [esp + 0x1434]
push 0x800
push eax
call fcn.0049c210
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x453acf
lea eax, [esp + 0x142a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x453acf
mov dword [esp + edi*2 + 0x1428], 0x22
lea ebx, [esp + 0x1428]
jmp 0x453add
cmp esi, dword [0x4e7844]
jne 0x453ae4
mov ebx, dword [0x4e7840]
lea ebp, [esp + 0x428]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push ebx
mov ecx, 0x4e6d58
call fcn.004488b0
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 0x457490
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 [0x4e6390]
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.0041ba00
mov bl, al
add esp, 0xc
test bl, bl
jne 0x45752e
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0046d710
add esp, 4
test eax, eax
jne 0x4574f4
push 1
push eax
push 0xffffffffffffffff
push 0x4b8c14
mov ecx, edi
call fcn.004a0110
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.0046d9c0
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0049fa00
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 0x457540
xor eax, eax
jmp 0x45754c
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 0x45756a
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x45756f
mov edx, 1
mov cl, bl
call fcn.0046d920
push 1
test al, al
mov edx, 0x4d73bc
push 0
mov ecx, 0x4d73b8
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004a0110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4575a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4e6390]
push 0
call fcn.004a0110
mov eax, dword [ebp + 8]
test eax, eax
je 0x457741
cmp word [eax], 0
je 0x457741
push 0x104
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x30]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x238], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457600
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x2e], 0x5c
je 0x45762d
lea eax, [ecx + 1]
cmp eax, 0x105
jae 0x457741
mov dword [esp + ecx*2 + 0x30], 0x5c
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e91f4]
cmp eax, dword [ecx + 4]
jle 0x457681
push 0x4e91f4
call fcn.004b621d
add esp, 4
cmp dword [0x4e91f4], 0xffffffff
jne 0x457681
push str.GetDiskFreeSpaceExW
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e91f4
mov dword [0x4e91f8], eax
call fcn.004b61d3
add esp, 4
mov eax, dword [0x4e91f8]
test eax, eax
je 0x4576d0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x3c]
push ecx
call eax
test eax, eax
je 0x457741
cmp byte [ebp + 0xc], 0
je 0x4576bf
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
shrd esi, edi, 0x14
shr edi, 0x14
jmp 0x45770f
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
shrd esi, edi, 0x14
shr edi, 0x14
jmp 0x45770f
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x457741
cmp byte [ebp + 0xc], 0
mov esi, dword [esp + 8]
cmovne esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
imul esi, dword [esp + 0x14]
shr esi, 0x14
xor edi, edi
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4b8cc8
call fcn.004a0110
mov ecx, dword [0x4e6390]
push 0x18
push edi
push esi
call fcn.00401560
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e211c]
test byte [eax + 0x100], 1
jne 0x45776d
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4cefc4
call fcn.004a0110
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x4b8c14
push 0
push 0x4cefc4
mov ecx, esi
call fcn.004473a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x459560
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x21c
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4595ce
cmp byte [0x4e784c], al
je 0x45967e
mov eax, dword [0x4e211c]
test byte [eax + 0x100], 1
jne 0x4595ae
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4cefc4
call fcn.004a0110
pop edi
pop esi
add esp, 0x21c
ret
mov ecx, dword [0x4e73a0]
push 0x4b8c14
push 0
push 0x4cefc4
call fcn.004473a0
pop edi
pop esi
add esp, 0x21c
ret
cmp byte [0x4e784c], 0
lea eax, [esp + 0x18]
mov edi, 0x4e4970
cmove edi, eax
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x459646
cmp word [esi], 0
je 0x45965f
cmp word [esi + 2], 0x3a
jne 0x45965f
cmp word [esi + 4], 0
jne 0x45965f
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x45965f
push esi
lea eax, [esp + 0xc]
push 0x4d7850
push eax
call fcn.00405b50
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x45965f
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x45965f
push 0x103
push esi
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [edi + 0x206], ax
cmp byte [0x4e784c], 0
je 0x45967e
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4b8cc8
call fcn.004a0110
pop edi
pop esi
add esp, 0x21c
ret