joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433160
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 [0x505bf0]
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 0x433225
movzx eax, word [ebp]
test ax, ax
je 0x43323b
mov esi, eax
nop word [eax + eax]
lea eax, [esp + 0x14]
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x433235
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x433200
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x4331f0
mov esi, dword [esp + 0x10]
xor ebx, ebx
test ebx, ebx
je 0x43323b
cmp ebx, ebp
lea edi, [ebx - 2]
cmovbe edi, ebx
jmp 0x433255
mov esi, dword [esp + 0x10]
jmp 0x433227
mov ecx, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433240
sub ecx, edx
lea edi, [ebp - 2]
sar ecx, 1
lea edi, [edi + ecx*2]
cmp edi, ebp
jbe 0x433274
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x43326d
cmp eax, 9
jne 0x433274
sub edi, 2
cmp edi, ebp
ja 0x433260
mov ebx, edi
sub ebx, ebp
sar ebx, 1
inc ebx
cmp ebx, 0xfd
jbe 0x4332a3
cmp byte [esp + 0x4c], 0
je 0x433297
push ebp
push str.This_line_does_not_contain_a_recognized_action.
mov ecx, esi
call fcn.00447960
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 fcn.004c41d6
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 0x438180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10004
call fcn.004d2340
push esi
push edi
push dword [esp + 0x10018]
lea eax, [esp + 0xc]
push dword [esp + 0x10018]
push 0x4f5bc4
push 0x8001
push eax
call fcn.0049bbc0
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 0x438208
test al, 0x10
je 0x438208
lea eax, [edi*4 + 0x408]
push eax
call fcn.004bb7a0
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x438208
lea ecx, [edi*2 + 2]
push ecx
lea ecx, [esp + 0xc]
push ecx
push eax
call fcn.004b9800
add esp, 0xc
mov dword [esi + 4], edi
pop edi
pop esi
add esp, 0x10004
ret 0xc
pop edi
mov dword [esi], 0x4da3cc
pop esi
add esp, 0x10004
ret 0xc
Function at 0x447150
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 0x4471f0
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x504e48]
movzx ecx, word [edx + 2]
mov dword [esp + 0x40], eax
mov eax, dword [0x50862c]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0x4f7364
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 0x4472b9
cmp word [eax], 0
je 0x4472b9
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.0048bd90
pop esi
add esp, 0xcc
ret 0xc
Function at 0x447960
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x400c
call fcn.004d2340
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x64c]
test ecx, ecx
je 0x447995
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00447570
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ebx, 0x4f7710
test eax, eax
mov esi, 0x4da3cc
cmovne ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
cmovne esi, eax
cmp byte [0x50a723], 0
je 0x447a1c
cmp byte [0x50a720], 0
jne 0x447a1c
mov ecx, dword [edi + 0x24c]
mov eax, dword [0x50862c]
push ebx
push dword [edi + 0x250]
push dword [eax + ecx*4]
push str._s___d__:____s_n
push 2
call fcn.004be85c
add esp, 4
push eax
call fcn.00449070
add esp, 0x14
cmp word [esi], 0
je 0x447b96
push esi
push str._____Specifically:__s_n
push 2
call fcn.004be85c
add esp, 4
push eax
call fcn.00449070
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [edi + 0x250]
lea eax, [esp + 0x1c]
push str.Error_at_line__u
push 0x2000
push eax
call fcn.0049bbc0
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 + 0x24c], 0
je 0x447a94
mov edx, dword [edi + 0x24c]
mov eax, dword [0x50862c]
push dword [eax + edx*4]
mov edx, dword [esp + 0x14]
push str._in_include_file___s_
push ecx
push edx
call fcn.0049bbc0
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 0x4f773c
push ecx
push edx
call fcn.0049bbc0
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 0x447b1d
mov ecx, esi
lea eax, [ecx + 2]
mov dword [esp + 0x14], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x447ad0
sub ecx, dword [esp + 0x14]
mov eax, 0x4f1660
sar ecx, 1
cmp ecx, 0x64
mov ecx, 0x4da3cc
cmovbe eax, ecx
push eax
push esi
push str.Line_Text:___1.100s_s_nError:
push edx
push dword [esp + 0x20]
call fcn.0049bbc0
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 + 0xafa], 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.0049bbc0
add esp, 0x14
cmp dword [0x5063d4], 0
je 0x447b7e
push str.stderr
lea eax, [esp + 0x1c]
mov ecx, 0x506398
push eax
call fcn.0040af50
cmp dword [0x5063d4], 2
je 0x447b96
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.004a1950
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44c820
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi + 0x24], 0
cmp word [ebx], 0
je 0x44c9a1
cmp dword [esi + 0x20], 0
jne 0x44c87a
push 0x1000
call fcn.004bb7a0
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
jne 0x44c873
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 8], 0x4da3cc
mov dword [esp + 4], 0x4ee268
mov ecx, 0x509c28
jmp fcn.00447960
mov dword [esi + 0x28], 0x400
mov ecx, dword [esp + 0x18]
inc ecx
cmp ecx, dword [esi + 0x30]
jbe 0x44c8d7
mov eax, 0x1000
cmp ecx, eax
cmova eax, ecx
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
test ecx, ecx
je 0x44c8a4
push ecx
call fcn.004bb7ab
mov eax, dword [esi + 0x30]
add esp, 4
add eax, eax
push eax
call fcn.004bb7a0
add esp, 4
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x44c8d7
pop edi
mov dword [esi + 0x30], eax
pop esi
pop ebp
pop ebx
mov dword [esp + 8], 0x4da3cc
mov dword [esp + 4], 0x4ee268
mov ecx, 0x509c28
jmp fcn.00447960
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edi, dword [eax + ecx*4]
movzx eax, word [ebx]
test ax, ax
je 0x44c987
mov ecx, eax
mov eax, 0x2c
cmp cx, ax
je 0x44c90c
mov word [edi], cx
add edi, 2
jmp 0x44c975
cmp word [ebx + 2], 0x2c
jne 0x44c91e
mov word [edi], ax
add edi, 2
add ebx, 2
jmp 0x44c975
xor eax, eax
mov word [edi], ax
mov edx, dword [esi + 0x24]
mov ebp, dword [esi + 0x20]
mov eax, dword [ebp + edx*4]
cmp word [eax], 0
je 0x44c945
lea eax, [edx + 1]
add edi, 2
mov dword [esi + 0x24], eax
mov dword [ebp + eax*4], edi
xor eax, eax
mov word [edi], ax
cmp word [ebx + 2], 0
je 0x44c975
mov eax, dword [esi + 0x28]
cmp dword [esi + 0x24], eax
jb 0x44c975
lea eax, [eax*4 + 0x1000]
push eax
push dword [esi + 0x20]
call fcn.004bb7b0
add esp, 8
test eax, eax
je 0x44c9ad
add dword [esi + 0x28], 0x400
mov dword [esi + 0x20], eax
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x44c8fa
xor eax, eax
mov word [edi], ax
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov eax, dword [eax + ecx*4]
cmp word [eax], 0
je 0x44c9a1
lea eax, [ecx + 1]
mov dword [esi + 0x24], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 8], 0x4da3cc
mov ecx, 0x509c28
mov dword [esp + 4], 0x4ee268
jmp fcn.00447960
Function at 0x44e2b0
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.0045b860
mov edi, eax
test edi, edi
je 0x44e3af
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004a1750
mov ebx, eax
test ebx, ebx
je 0x44e3af
push 0
push edi
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x44e32c
cmp esi, dword [0x50939c]
je 0x44e32c
mov ecx, edi
call fcn.004a1c20
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
test al, al
jne 0x44e332
push 1
push esi
push dword [0x50939c]
call edi
test eax, eax
setne byte [esp + 0xf]
jmp 0x44e332
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x44e38f
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4da494
call fcn.0049fde0
mov eax, dword [0x50499c]
cmp dword [eax + 0x58], 0xffffffff
jle 0x44e38f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x50939c], eax
je 0x44e37c
mov eax, dword [0x50499c]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44e38f
mov ecx, dword [0x50499c]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004019f0
cmp byte [esp + 0xf], 0
je 0x44e3a1
push 0
push esi
push dword [0x50939c]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x50499c]
test byte [eax + 0x100], 1
jne 0x44e3dc
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4f07d4
call fcn.0049fde0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4da3cc
push 0
push 0x4f07d4
mov ecx, esi
call fcn.004472d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44fc00
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x5092c8]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0045b860
mov ebx, eax
test ebx, ebx
je 0x44fc30
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x44fc35
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.0049fde0
cmp eax, 1
je 0x44fc53
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
push 0
push 1
mov ecx, esi
call fcn.00401640
test ebx, ebx
je 0x44fcdd
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x44fc78
mov edi, dword [esi + 0xc]
jmp 0x44fc7a
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44fc92
test byte [edi + 0x15], 8
je 0x44fc8d
mov ecx, edi
call fcn.00401560
add edi, 0xc
jmp 0x44fc97
mov edi, 0x50bba0
lea eax, [ebx + ebx]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
jne 0x44fca7
mov edi, dword [esi + 0xc]
jmp 0x44fca9
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44fcc1
test byte [edi + 0x15], 8
je 0x44fcbc
mov ecx, edi
call fcn.00401560
add edi, 0xc
jmp 0x44fcc6
mov edi, 0x50bba0
cmp dword [edi], 2
jae 0x44fd11
push 0
push 1
mov ecx, esi
call fcn.00401640
xor ecx, ecx
mov word [eax], cx
jmp 0x44fd11
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x44fcec
mov edi, dword [esi + 0xc]
jmp 0x44fcee
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44fd06
test byte [edi + 0x15], 8
je 0x44fd01
mov ecx, edi
call fcn.00401560
add edi, 0xc
jmp 0x44fd0b
mov edi, 0x50bba0
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x44fd1a
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x44fd3a
cmp dword [0x50a78c], 0
je 0x44fd3a
push ecx
mov ecx, 0x50a780
call fcn.004060f0
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 0x450b10
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004d2340
push esi
mov esi, dword [0x5092c8]
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 0x450bd6
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.0049fde0
test eax, eax
jne 0x450b67
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401640
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x450b94
push eax
push 1
mov ecx, esi
call fcn.00401640
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x450b9d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x450bc2
cmp dword [0x50a78c], 0
je 0x450bc2
push ecx
mov ecx, 0x50a780
call fcn.004060f0
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, 0x4da3cc
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.0049fde0
pop edi
pop esi
add esp, 0x10000
ret 4
Function at 0x453810
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.0049bbc0
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x453857
lea ecx, [esi + 2]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x453857
mov dword [esi + edi*2], 0x22
mov al, 1
pop edi
pop esi
ret
pop edi
xor al, al
pop esi
ret

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

Disassembly:
mov eax, 0x241c
call fcn.004d2340
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x50a718]
lea ebx, [esp + 0x430]
mov ebp, 0x4da3cc
push str.__s_s
mov eax, ebx
push 0x800
push eax
call fcn.0049bbc0
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x4538d2
lea eax, [esp + 0x42a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4538d2
mov dword [esp + esi*2 + 0x428], 0x22
mov esi, dword [0x50a718]
jmp 0x453964
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.0049d0a0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x45391b
test esi, esi
jne 0x45391b
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.0049d0a0
mov edx, eax
add esp, 0x10
test edx, edx
je 0x4538f3
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 0x453920
test edx, edx
je 0x4539fe
lea eax, [esp + 0x220]
push eax
push edi
lea ecx, [esp + 0x430]
call fcn.00453810
add esp, 8
test al, al
je 0x4539fe
lea esi, [esp + 0x220]
cmp byte [esp + 0x17], 0
je 0x4539d4
push str.AutoHotkey.exe
push esi
push str.__s_s
lea eax, [esp + 0x1434]
push 0x800
push eax
call fcn.0049bbc0
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x4539bf
lea eax, [esp + 0x142a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4539bf
mov dword [esp + edi*2 + 0x1428], 0x22
lea ebx, [esp + 0x1428]
jmp 0x4539cd
cmp esi, dword [0x50a718]
jne 0x4539d4
mov ebx, dword [0x50a714]
lea ebp, [esp + 0x428]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push ebx
mov ecx, 0x509c28
call fcn.00448860
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 0x457400
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 [0x5092c8]
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.0041ca20
mov bl, al
add esp, 0xc
test bl, bl
jne 0x45749e
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0046d6b0
add esp, 4
test eax, eax
jne 0x457464
push 1
push eax
push 0xffffffffffffffff
push 0x4da3cc
mov ecx, edi
call fcn.0049fde0
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.0046d970
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0049f6d0
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 0x4574b0
xor eax, eax
jmp 0x4574bb
push 2
push esi
call fcn.004be8e0
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
cmp ecx, 0x50
je 0x4574d9
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x4574de
mov edx, 1
mov cl, bl
call fcn.0046d8d0
push 1
test al, al
mov edx, 0x4f8f34
push 0
mov ecx, 0x4f8f30
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.0049fde0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x457510
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 [0x5092c8]
push 0
call fcn.0049fde0
mov eax, dword [ebp + 8]
test eax, eax
je 0x457608
cmp word [eax], 0
je 0x457608
push 0x103
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004c41d6
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 0x457570
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x1e], 0x5c
je 0x457599
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x457608
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 0x457608
cmp byte [ebp + 0xc], 0
je 0x4575c7
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
jmp 0x4575cf
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4da494
call fcn.0049fde0
mov ecx, dword [0x5092c8]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.004014e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x50499c]
test byte [eax + 0x100], 1
jne 0x457634
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4f07d4
call fcn.0049fde0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x4da3cc
push 0
push 0x4f07d4
mov ecx, esi
call fcn.004472d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x459460
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x459494
cmp word [esi + 2], 0x3a
jne 0x459494
cmp word [esi + 4], 0
jne 0x459494
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 0x4594ec
cmp byte [0x50a720], al
je 0x459512
mov eax, dword [0x50499c]
test byte [eax + 0x100], 1
jne 0x4594d0
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4f07d4
call fcn.0049fde0
pop esi
add esp, 0x10
ret
mov ecx, dword [0x50a274]
push 0x4da3cc
push 0
push 0x4f07d4
call fcn.004472d0
pop esi
add esp, 0x10
ret
cmp byte [0x50a720], 0
je 0x459512
mov ecx, esi
call fcn.00459520
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4da494
call fcn.0049fde0
pop esi
add esp, 0x10
ret

Function at 0x459520
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004d2340
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x459559
push ecx
lea esi, [esp + 8]
mov ecx, 0x50638c
push esi
call fcn.0046e1d0
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x459569
push ecx
push esi
mov ecx, 0x50638c
call fcn.0046e1d0
pop esi
add esp, 0x10000
ret

Function at 0x459580
Capabilities:
Get common file path

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 8], esi
test edi, edi
je 0x459d08
cmp word [edi], 0
je 0x459d08
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x459c7d
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
shr ebx, 4
and bl, 1
mov al, bl
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push edi
call fcn.004b7194
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x459cf0
cmp word [ebx - 2], 0x3a
je 0x459cf0
test esi, esi
je 0x459ca2
xor ecx, ecx
mov eax, edi
mov word [ebx], cx
jmp 0x459cd0
mov esi, ebx
sub esi, edi
sar esi, 1
lea eax, [esi*2 + 2]
call fcn.004d2260
mov eax, esp
push esi
push edi
push eax
mov dword [ebp - 4], eax
call fcn.004c41d6
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
mov esi, dword [ebp - 8]
mov edx, eax
mov ecx, eax
call fcn.00459c30
test esi, esi
je 0x459ce5
mov ecx, 0x5c
mov word [ebx], cx
cmp word [ebx + 2], 0
je 0x459d12
test al, al
je 0x459d12
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x14]
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 - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret