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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub esp, 0x124
push ebx
xor ebx, ebx
push esi
push edi
mov dword [eax + 0xa9c], ecx
cmp byte [0x4cc1a3], bl
jne 0x4182ff
cmp byte [eax + 0xae4], bl
je 0x4182ff
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4cacf4]
push ebx
push 1
mov dword [0x4ccd38], eax
call fcn.00401280
push 0x7f
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00493014
mov eax, dword [0x4c6a44]
inc dword [0x4ca660]
add eax, 0x108
xor edx, edx
mov edi, eax
mov word [esp + 0x13a], dx
mov ecx, 0x42
mov esi, 0x4c9130
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4c6a44], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4cb490
call fcn.00417e10
mov dword [0x4cbf80], ebx
mov dword [0x4cbf84], ebx
cmp dword [0x4ca694], ebx
je 0x418225
mov eax, dword [0x4c7b78]
cmp eax, ebx
je 0x418219
mov eax, dword [eax]
cmp eax, ebx
jne 0x41821e
mov eax, 0x4a3910
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xa90]
mov edi, dword [0x4c694c]
mov dword [0x4c694c], ebx
mov byte [0x4cc1a3], 1
mov byte [esp + 0xf], 1
mov byte [0x4c7f08], bl
cmp ecx, ebx
je 0x418265
call fcn.004012f0
test eax, eax
je 0x418265
cmp byte [0x4c7f08], bl
jne 0x418265
mov byte [esp + 0xf], bl
mov byte [0x4c7f08], 1
cmp byte [esp + 0xf], bl
je 0x4182be
mov dword [esp + 0x18], ebx
call fcn.00445d60
mov dword [esp + 0x10], eax
mov eax, dword [0x4ccd38]
cdq
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esi + 0xa90], ebx
lea ecx, [esp + 0x10]
sete al
lea ebx, [esi + 0xa5c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], edx
push eax
push 2
push ecx
call fcn.00471ce0
xor ebx, ebx
cmp eax, 3
jne 0x4182be
mov byte [esp + 0xf], bl
mov byte [0x4cc1a3], bl
cmp byte [esp + 0xf], bl
jne 0x4182f1
cmp dword [ebp + 0xc], 0xffffffff
jle 0x4182f1
lea edx, [esp + 0x30]
push edx
call fcn.00403950
add esp, 4
mov dword [0x4c694c], edi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call fcn.00418340
cmp byte [0x4c7f08], bl
jne 0x418334
cmp ecx, 6
jne 0x418334
mov edx, dword [0x4ca480]
cmp word [edx], bx
je 0x41831f
mov eax, dword [ebp + 0x10]
mov dword [0x4ccd38], eax
pop edi
pop esi
mov byte [0x4c7f08], 1
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
push edx
push ecx
push eax
call fcn.00418340
int3
Function at 0x418870
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_FindResourceW]
mov esi, eax
test esi, esi
je 0x41891a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41891a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41891a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x41891a
push 0x44
call fcn.004918b8
add esp, 4
test eax, eax
je 0x4188e4
mov esi, eax
call fcn.004170c0
mov ecx, eax
jmp 0x4188e6
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.00474580
mov ecx, dword [edi + 0xac8]
inc dword [0x4cb40c]
mov dword [0x4c942c], 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.00430b90
pop esi
add esp, 0x10
ret 8
Function at 0x41ec20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4c6968]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
push esi
mov word [esp + 0xc], ax
push edi
lea ebx, [esp + 0x10]
mov eax, ebp
mov word [esp + 0x12], cx
mov dword [esp + 0x14], 0x90028
mov dword [esp + 0x18], 0x3e003c
mov dword [esp + 0x1c], 0x3d003a
mov dword [esp + 0x20], 0x2d002b
mov dword [esp + 0x24], 0x2f002a
mov dword [esp + 0x28], 0x7e0021
mov dword [esp + 0x2c], 0x7c0026
mov dword [esp + 0x30], 0x5b005e
mov dword [esp + 0x34], 0x3f002e
mov dword [esp + 0x38], 0x7b
call fcn.00409e00
test eax, eax
je 0x41eca9
cmp eax, ebp
jbe 0x41ecc3
sub eax, 2
jmp 0x41ecc3
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ecb0
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41ece4
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41ecdd
cmp eax, 9
jne 0x41ece4
sub edi, 2
cmp edi, ebp
ja 0x41ecd0
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41ed15
cmp byte [esp + 0x4c], 0
je 0x41ed09
mov ecx, dword [esp + 0x40]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.00430b90
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
mov ebx, dword [esp + 0x44]
push esi
push ebp
push ebx
call fcn.00493014
add esp, 0xc
xor ecx, ecx
mov eax, edi
pop edi
mov word [ebx + esi*2], cx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x431120
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.0049b740
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x431224
test ebx, ebx
jne 0x431150
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x634]
test ebx, ebx
je 0x43115a
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x431167
mov ecx, dword [eax + 0x270]
movzx eax, word [eax + 0x274]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx*4 + 0x4c942c]
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.00476ad0
mov esi, dword [ebp + 0x14]
add esp, 0x10
cmp word [esi], 0
lea edi, [esp + eax*2 + 0x10]
je 0x4311bc
lea eax, [esp + 0x10]
mov edx, edi
push esi
sub edx, eax
sar edx, 1
mov esi, 0x2000
push str._____Specifically:__s_n
sub esi, edx
call fcn.00476ad0
mov esi, dword [ebp + 0x14]
add esp, 8
mov edi, dword [ebp + 0xc]
cmp edi, 3
jne 0x4311e2
mov edx, dword [ebp + 8]
push 0x4a864c
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00430750
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 2
jne 0x431224
test ebx, ebx
jne 0x431203
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x634]
test ebx, ebx
je 0x43121a
mov ecx, dword [ebp + 0x10]
push esi
push 1
push ecx
mov ecx, ebx
call fcn.004308e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
push esi
push edx
call fcn.00430b90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x431660
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3d8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x431687
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x431691
xor edx, edx
mov word [esp + 0x120], dx
mov esi, dword [0x4cbf30]
xor eax, eax
mov word [esp + 0x20], ax
test esi, esi
je 0x431748
cmp byte [esi + 0x12], 0
je 0x4316e9
mov ecx, dword [esi]
push ecx
call fcn.00471be0
add esp, 4
sub eax, 0
je 0x4316cd
dec eax
je 0x4316c6
mov eax, str.Object
jmp 0x4316d2
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x4316d2
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4abbb8
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00476b10
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4316a6
cmp word [esp + 0x20], si
je 0x431748
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431700
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x431736
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a7f6c
push edi
call fcn.00493014
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x431748
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x431748
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4c9020]
cmp byte [eax + 0xf8], 0
je 0x431767
cmp byte [0x4cbf75], 0
mov dword [esp + 0x14], 1
je 0x43176f
mov dword [esp + 0x14], 0
mov eax, dword [0x4ca660]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x43188d
mov dword [esp + 0x18], 0x4a3910
xor ebp, ebp
cmp dword [0x4ca620], 0
mov edi, 0x4a5b58
je 0x4317a2
mov edi, 0x4a5b50
cmp dword [0x4ca61c], 0
mov esi, 0x4a5b58
je 0x4317b5
mov esi, 0x4a5b50
push 1
call fcn.00413990
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00413d80
mov ecx, dword [0x4ca65c]
mov edx, dword [0x4ca660]
push eax
mov eax, dword [0x4ca664]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4cbf38]
push ecx
mov ecx, dword [0x4cbf3c]
push ebp
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push edi
mov edi, dword [esp + 0x414]
push esi
lea edx, [esp + 0x14c]
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.00476ad0
lea esi, [edi + eax*2]
mov eax, esi
mov ebx, edi
sub eax, ebx
sar eax, 1
mov ecx, 0xfffe
add esp, 0x34
sub ecx, eax
push ecx
push esi
call fcn.00409af0
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431842
sub eax, edx
sar eax, 1
cmp dword [0x4cad04], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x431867
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
mov edx, edi
sub edx, ebx
sar edx, 1
mov esi, 0xfffe
push eax
sub esi, edx
call fcn.00476ad0
add esp, 4
lea eax, [edi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3d8
ret 4
lea ebp, [eax - 1]
jmp 0x43178f
Function at 0x437cc0
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.00444bc0
mov edi, eax
test edi, edi
je 0x437cee
mov esi, dword [esp + 0x1c]
push edi
call fcn.0047b600
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x437d39
mov ecx, dword [0x4c6a44]
test byte [ecx + 0x100], 1
jne 0x437d1c
mov edx, dword [0x4cacf4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a6324
push edx
call fcn.00479c20
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x4a3910
push 0
push 0x4a6324
call fcn.004304e0
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 0x437d71
cmp ebp, dword [0x4cb478]
je 0x437d71
mov esi, edi
call fcn.0047bb40
test al, al
jne 0x437d71
mov eax, dword [0x4cb478]
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 0x437daf
mov edx, dword [0x4cacf4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a3920
push edx
call fcn.00479c20
mov eax, dword [0x4c6a44]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x437daf
push 1
push eax
call fcn.00401430
add esp, 8
test bl, bl
je 0x437dc3
mov ecx, dword [0x4cb478]
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 0x438b00
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.00432a60
mov dword [esp + 0x10], eax
test eax, eax
jne 0x438b35
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.004308e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x438b3f
jmp dword [eax*4 + 0x438d30]
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x438b56
call fcn.004567d0
jmp 0x438b5c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4cacf4]
call fcn.00401140
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.004567d0
mov ebx, eax
test ebx, ebx
je 0x438bd0
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x438bd0
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 [0x4cacf4]
push 0x18
push 0
push esi
call fcn.00401140
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4cacf4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a3920
push eax
call fcn.00479c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx ecx, word [ebx]
push ecx
call fcn.004924dd
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x438c0d.67
movzx edx, byte [eax + 0x438d60]
jmp dword [edx*4 + 0x438d44]
mov esi, 0x40
jmp 0x438c3c
mov esi, 0x4000
jmp 0x438c3c
mov esi, 0x20
jmp 0x438c3c
mov esi, 0x8000
jmp 0x438c3c
mov esi, 0x80
jmp 0x438c3c
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x438c4c
call fcn.004567d0
jmp 0x438c52
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x438bd0
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x438bd0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x438ba4
mov ecx, dword [0x4cacf4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a3920
push ecx
call fcn.00479c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [ebx], 0
je 0x438ccc
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.00415450
fmul qword [0x4c0e60]
call fcn.0049eb50
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x438cd3
mov byte [esp + 0xf], 1
xor edi, edi
mov ebx, dword [ebp + 0xc]
call fcn.004567d0
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x438cee
test esi, esi
jne 0x438bb3
jmp 0x438cf6
test esi, esi
je 0x438bd0
cmp byte [esp + 0xf], 0
jne 0x438d14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x438bb3
push 1
push 0x64
call fcn.00401430
add esp, 8
jmp 0x438cd3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4395a0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4ca430]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00444bc0
mov edi, eax
test edi, edi
je 0x4395c6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [eax + 1]
jmp 0x4395cb
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00479c20
cmp eax, 1
je 0x4395e9
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x43967b
push ebp
push 0
push 1
call fcn.00401280
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x439612
mov edi, dword [esi + 0xc]
jmp 0x439614
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43962c
test byte [edi + 0x15], 8
je 0x439627
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x439631
mov eax, 0x4cc19c
lea edx, [ebp + ebp]
mov dword [eax], edx
cmp byte [esi + 0x17], 0
jne 0x439642
mov edi, dword [esi + 0xc]
jmp 0x439644
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43965c
test byte [edi + 0x15], 8
je 0x439657
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x439661
mov eax, 0x4cc19c
test dword [eax], 0xfffffffe
jne 0x4396b8
push 0
push 1
mov ecx, esi
call fcn.00401280
xor ecx, ecx
mov word [eax], cx
jmp 0x4396b8
push 0
push 1
call fcn.00401280
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], dl
jne 0x439693
mov edi, dword [esi + 0xc]
jmp 0x439695
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4396ad
test byte [edi + 0x15], 8
je 0x4396a8
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x4396b2
mov eax, 0x4cc19c
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x4396c1
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4396e1
cmp dword [0x4cbfe4], 0
je 0x4396e1
mov ecx, 0x4cbfd8
call fcn.004047e0
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 0x43a490
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.0049b740
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
mov esi, dword [0x4ca430]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x43a544
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00479c20
test eax, eax
jne 0x43a4e2
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401280
push eax
push ebx
call ebp
test eax, eax
jne 0x43a505
push eax
push 1
mov ecx, esi
call fcn.00401280
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], 0
jne 0x43a50e
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x43a531
cmp dword [0x4cbfe4], 0
je 0x43a531
mov ecx, 0x4cbfd8
call fcn.004047e0
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x43a551
mov eax, 0x4a3910
push 1
push 0
push edi
push eax
push esi
call fcn.00479c20
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x43c870
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, dword [0x4cbf68]
sub esp, 0x210
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
push eax
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
jne 0x43c8c1
lea ecx, [esp + 0x10]
push ecx
call fcn.0043cdb0
add esp, 4
test eax, eax
je 0x43c8b5
lea edx, [esp + 0x10]
push edx
call ebp
push esi
call edi
cmp eax, 0xffffffff
jne 0x43c8c1
xor al, al
pop edi
pop ebp
pop ebx
add esp, 0x210
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x4a3910
push 0x4cb490
mov edx, esi
call fcn.004318a0
test eax, eax
mov eax, dword [0x4c7b78]
setne bl
test eax, eax
je 0x43c8f4
mov eax, dword [eax]
test eax, eax
jne 0x43c8f9
mov eax, 0x4a3910
push eax
call ebp
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x210
ret

Function at 0x43cdb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push 0
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x43cdf0
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43ce55
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push str.InstallDir
push edx
mov dword [esp + 0x28], 0x208
call ebp
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43ce83
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43ce83
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43ce63
test eax, eax
je 0x43ce55
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43ce4d
sub ecx, 2
dec eax
jne 0x43ce41
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43ce8c
test edi, edi
jne 0x43ce8c
mov edi, 0x100
jmp 0x43cdc8
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43ce7a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43ce55
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43ce51
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43ce55
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43ceaf
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
nop
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x43cea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x440670
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [0x4ca430]
push esi
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
xor ecx, ecx
mov eax, esi
call fcn.00414420
mov bl, al
add esp, 8
test bl, bl
jne 0x44070f
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.00451c70
mov edi, eax
add esp, 4
test edi, edi
jne 0x4406d2
push 1
push eax
push 0xffffffffffffffff
push 0x4a3910
push ebp
call fcn.00479c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
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.00451f20
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00479540
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov edx, dword [esp + 0x22c]
movzx esi, word [edx]
test esi, 0xffffff80
jne 0x440733
push 2
push esi
call fcn.004916fe
add esp, 8
test eax, eax
je 0x440733
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x50
je 0x44074b
xor ecx, ecx
cmp eax, 0x54
setne cl
lea eax, [ecx - 1]
and eax, 2
jmp 0x440750
mov eax, 1
push eax
call fcn.00451e70
add esp, 4
test al, al
mov eax, 0x4ad860
jne 0x440767
mov eax, 0x4ad864
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00479c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4

Function at 0x440790
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push esi
mov esi, ecx
mov ecx, dword [0x4ca430]
push edi
call fcn.00415490
test esi, esi
je 0x440887
cmp word [esi], 0
je 0x440887
push 0x103
lea eax, [esp + 0x24]
push esi
push eax
call fcn.00493014
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x20]
mov word [esp + 0x226], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4407e1
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x1e], 0x5c
je 0x440818
lea edx, [eax + 1]
cmp edx, 0x104
jae 0x440887
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0x20], cx
mov word [esp + eax*2 + 0x22], dx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x440887
cmp byte [ebp + 0xc], 0
je 0x440846
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x44084e
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov ecx, dword [0x4cacf4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a3920
push ecx
call fcn.00479c20
mov eax, dword [0x4ca430]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.00401140
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x4c6a44]
test byte [edx + 0x100], 1
jne 0x4408b4
mov eax, dword [0x4cacf4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a6324
push eax
call fcn.00479c20
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x4a3910
push 0
push 0x4a6324
call fcn.004304e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x442730
Capabilities:
Set current directory

Disassembly:
sub esp, 8
push esi
mov esi, eax
movzx eax, word [esi]
test ax, ax
je 0x442764
cmp word [esi + 2], 0x3a
jne 0x442764
cmp word [esi + 4], 0
jne 0x442764
xor edx, edx
mov word [esp + 4], ax
mov dword [esp + 6], 0x5c003a
mov word [esp + 0xa], dx
lea esi, [esp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x442781
cmp byte [0x4cbf74], al
je 0x4427a7
call fcn.0040a030
pop esi
add esp, 8
ret
cmp byte [0x4cbf74], 0
je 0x4427a7
mov ecx, esi
call fcn.004427b0
mov eax, dword [0x4cacf4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a3920
push eax
call fcn.00479c20
pop esi
add esp, 8
ret

Function at 0x4427b0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.0049b740
push esi
lea eax, [esp + 4]
push eax
push 0x8000
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4427d7
lea esi, [esp + 4]
jmp 0x4427db
test esi, esi
je 0x4427e8
push edi
push esi
mov edi, 0x4c7b74
call fcn.00452670
pop edi
pop esi
add esp, 0x10000
ret