joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417f50
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4c7968]
add eax, 4
imul eax, eax, 0x108
push ebx
push ebp
push esi
push edi
push eax
call fcn.00490734
add esp, 4
mov dword [0x4ca040], eax
test eax, eax
jne 0x417f79
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4c7a54]
push 0x403c80
mov edi, eax
push 0x4ef6d80
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4cb50c]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0xe
push ecx
mov dword [0x4c7a54], eax
call edi
cmp dword [0x4cc4b0], 0
jne 0x417fbb
mov ebx, 1
jmp 0x41806b
mov edx, dword [0x4c7a54]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [edx + 0xec], 0
call esi
cmp byte [0x4cb669], 0
mov ecx, dword [0x4c7a54]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], 0x64
jne 0x41800b
mov eax, dword [0x4cb50c]
push 0x403ae0
push 0x64
push 0xb
push eax
call edi
test eax, eax
setne cl
mov byte [0x4cb669], cl
mov byte [0x4ccf95], 1
call esi
mov ecx, dword [0x4cc4b0]
push 0
mov esi, 1
add dword [0x4cb680], esi
push 0
push esi
mov dword [0x4ccfb4], eax
mov dword [0x4ccfb0], eax
call fcn.00427540
sub dword [0x4cb680], esi
cmp byte [0x4cb669], 0
mov ebx, eax
je 0x418064
mov edx, dword [0x4cb50c]
push 0xb
push edx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x418064
mov byte [0x4cb669], 0
mov byte [0x4ccf95], 0
mov ebp, dword [0x4c7a54]
cmp dword [ebp + 0x104], 0
je 0x4180c5
mov eax, dword [ebp + 0x104]
cmp dword [eax + 8], 6
jne 0x418090
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x104]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4180a6
push eax
call fcn.00490ff1
add esp, 4
mov ecx, dword [ebp + 0x104]
push ecx
call fcn.00490fe6
mov dword [ebp + 0x104], 0
mov ebp, dword [0x4c7a54]
add esp, 4
mov eax, ebp
call fcn.00401000
mov edx, dword [0x4cbd14]
push 1
push 0
push 0xffffffffffffffff
mov byte [ebp + 0xec], 1
push 0x4a4920
mov ecx, 0x42
mov esi, ebp
mov edi, 0x4ca150
rep movsd dword es:[edi], dword [esi]
push edx
mov byte [ebp + 0xec], 1
mov dword [ebp + 0xe0], 0
mov word [ebp + 0xed], 1
mov dword [ebp + 0x2c], SysStringLen
call fcn.00479e00
mov eax, dword [0x4c8b90]
cmp word [eax], 0
jne 0x41815d
cmp dword [0x4cbd84], 0
jne 0x41815d
cmp dword [0x4cb63c], 0
jne 0x41815d
cmp dword [0x4cb640], 0
jne 0x41815d
cmp byte [0x4cb649], 0
jne 0x41815d
neg ebx
sbb ebx, ebx
and ebx, 5
push 0
inc ebx
push ebx
push 0x4cc4b0
call fcn.004181a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4181a0
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 [0x4cd1c3], bl
jne 0x41833f
cmp byte [eax + 0xae4], bl
je 0x41833f
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4cbd14]
push ebx
push 1
mov dword [0x4cdd58], eax
call fcn.00401280
push 0x7f
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00493264
mov eax, dword [0x4c7a54]
inc dword [0x4cb680]
add eax, 0x108
xor edx, edx
mov edi, eax
mov word [esp + 0x13a], dx
mov ecx, 0x42
mov esi, 0x4ca150
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4c7a54], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4cc4b0
call fcn.00417e50
mov dword [0x4ccfa0], ebx
mov dword [0x4ccfa4], ebx
cmp dword [0x4cb6b4], ebx
je 0x418265
mov eax, dword [0x4c8b88]
cmp eax, ebx
je 0x418259
mov eax, dword [eax]
cmp eax, ebx
jne 0x41825e
mov eax, 0x4a4910
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xa90]
mov edi, dword [0x4c795c]
mov dword [0x4c795c], ebx
mov byte [0x4cd1c3], 1
mov byte [esp + 0xf], 1
mov byte [0x4c8f18], bl
cmp ecx, ebx
je 0x4182a5
call fcn.004012f0
test eax, eax
je 0x4182a5
cmp byte [0x4c8f18], bl
jne 0x4182a5
mov byte [esp + 0xf], bl
mov byte [0x4c8f18], 1
cmp byte [esp + 0xf], bl
je 0x4182fe
mov dword [esp + 0x18], ebx
call fcn.00445e10
mov dword [esp + 0x10], eax
mov eax, dword [0x4cdd58]
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.00471ed0
xor ebx, ebx
cmp eax, 3
jne 0x4182fe
mov byte [esp + 0xf], bl
mov byte [0x4cd1c3], bl
cmp byte [esp + 0xf], bl
jne 0x418331
cmp dword [ebp + 0xc], 0xffffffff
jle 0x418331
lea edx, [esp + 0x30]
push edx
call fcn.00403950
add esp, 4
mov dword [0x4c795c], 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.00418380
cmp byte [0x4c8f18], bl
jne 0x418374
cmp ecx, 6
jne 0x418374
mov edx, dword [0x4cb4a0]
cmp word [edx], bx
je 0x41835f
mov eax, dword [ebp + 0x10]
mov dword [0x4cdd58], eax
pop edi
pop esi
mov byte [0x4c8f18], 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.00418380
int3
Function at 0x4188b0
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 0x41895a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41895a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41895a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x41895a
push 0x44
call fcn.00491b08
add esp, 4
test eax, eax
je 0x418924
mov esi, eax
call fcn.00417100
mov ecx, eax
jmp 0x418926
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.00474750
mov ecx, dword [edi + 0xac8]
inc dword [0x4cc42c]
mov dword [0x4ca44c], 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.00430cf0
pop esi
add esp, 0x10
ret 8
Function at 0x41ecd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4c7978]
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.00409e50
test eax, eax
je 0x41ed59
cmp eax, ebp
jbe 0x41ed73
sub eax, 2
jmp 0x41ed73
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ed60
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41ed94
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41ed8d
cmp eax, 9
jne 0x41ed94
sub edi, 2
cmp edi, ebp
ja 0x41ed80
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41edc5
cmp byte [esp + 0x4c], 0
je 0x41edb9
mov ecx, dword [esp + 0x40]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.00430cf0
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.00493264
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 0x431280
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.0049b990
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x431384
test ebx, ebx
jne 0x4312b0
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x634]
test ebx, ebx
je 0x4312ba
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x4312c7
mov ecx, dword [eax + 0x270]
movzx eax, word [eax + 0x274]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx*4 + 0x4ca44c]
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.00476cb0
mov esi, dword [ebp + 0x14]
add esp, 0x10
cmp word [esi], 0
lea edi, [esp + eax*2 + 0x10]
je 0x43131c
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.00476cb0
mov esi, dword [ebp + 0x14]
add esp, 8
mov edi, dword [ebp + 0xc]
cmp edi, 3
jne 0x431342
mov edx, dword [ebp + 8]
push 0x4a9670
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004308b0
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 0x431384
test ebx, ebx
jne 0x431363
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x634]
test ebx, ebx
je 0x43137a
mov ecx, dword [ebp + 0x10]
push esi
push 1
push ecx
mov ecx, ebx
call fcn.00430a40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
push esi
push edx
call fcn.00430cf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4317c0
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 0x4317e7
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4317f1
xor edx, edx
mov word [esp + 0x120], dx
mov esi, dword [0x4ccf50]
xor eax, eax
mov word [esp + 0x20], ax
test esi, esi
je 0x4318a8
cmp byte [esi + 0x12], 0
je 0x431849
mov ecx, dword [esi]
push ecx
call fcn.00471dd0
add esp, 4
sub eax, 0
je 0x43182d
dec eax
je 0x431826
mov eax, str.Object
jmp 0x431832
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x431832
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4acbe0
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00476cf0
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x431806
cmp word [esp + 0x20], si
je 0x4318a8
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431860
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x431896
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a8f90
push edi
call fcn.00493264
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x4318a8
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x4318a8
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4ca040]
cmp byte [eax + 0xf8], 0
je 0x4318c7
cmp byte [0x4ccf95], 0
mov dword [esp + 0x14], 1
je 0x4318cf
mov dword [esp + 0x14], 0
mov eax, dword [0x4cb680]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x4319ed
mov dword [esp + 0x18], 0x4a4910
xor ebp, ebp
cmp dword [0x4cb640], 0
mov edi, 0x4a6b58
je 0x431902
mov edi, 0x4a6b50
cmp dword [0x4cb63c], 0
mov esi, 0x4a6b58
je 0x431915
mov esi, 0x4a6b50
push 1
call fcn.004139d0
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00413dc0
mov ecx, dword [0x4cb67c]
mov edx, dword [0x4cb680]
push eax
mov eax, dword [0x4cb684]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4ccf58]
push ecx
mov ecx, dword [0x4ccf5c]
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.00476cb0
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.00409b40
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4319a2
sub eax, edx
sar eax, 1
cmp dword [0x4cbd24], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x4319c7
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.00476cb0
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 0x4318ef
Function at 0x437e10
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.00444c70
mov edi, eax
test edi, edi
je 0x437e3e
mov esi, dword [esp + 0x1c]
push edi
call fcn.0047b7b0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x437e89
mov ecx, dword [0x4c7a54]
test byte [ecx + 0x100], 1
jne 0x437e6c
mov edx, dword [0x4cbd14]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7324
push edx
call fcn.00479e00
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x4a4910
push 0
push 0x4a7324
call fcn.00430640
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 0x437ec1
cmp ebp, dword [0x4cc498]
je 0x437ec1
mov esi, edi
call fcn.0047bcf0
test al, al
jne 0x437ec1
mov eax, dword [0x4cc498]
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 0x437eff
mov edx, dword [0x4cbd14]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4920
push edx
call fcn.00479e00
mov eax, dword [0x4c7a54]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x437eff
push 1
push eax
call fcn.00401430
add esp, 8
test bl, bl
je 0x437f13
mov ecx, dword [0x4cc498]
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 0x438c40
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.00432bc0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x438c75
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.00430a40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x438c7f
jmp dword [eax*4 + 0x438e70]
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x438c96
call fcn.004568d0
jmp 0x438c9c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4cbd14]
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.004568d0
mov ebx, eax
test ebx, ebx
je 0x438d10
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x438d10
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 [0x4cbd14]
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 [0x4cbd14]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4920
push eax
call fcn.00479e00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx ecx, word [ebx]
push ecx
call fcn.0049272d
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x438d4d.67
movzx edx, byte [eax + 0x438ea0]
jmp dword [edx*4 + 0x438e84]
mov esi, 0x40
jmp 0x438d7c
mov esi, 0x4000
jmp 0x438d7c
mov esi, 0x20
jmp 0x438d7c
mov esi, 0x8000
jmp 0x438d7c
mov esi, 0x80
jmp 0x438d7c
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x438d8c
call fcn.004568d0
jmp 0x438d92
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x438d10
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x438d10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x438ce4
mov ecx, dword [0x4cbd14]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4920
push ecx
call fcn.00479e00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [ebx], 0
je 0x438e0c
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.00415490
fmul qword [0x4c1e90]
call fcn.0049eda0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x438e13
mov byte [esp + 0xf], 1
xor edi, edi
mov ebx, dword [ebp + 0xc]
call fcn.004568d0
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x438e2e
test esi, esi
jne 0x438cf3
jmp 0x438e36
test esi, esi
je 0x438d10
cmp byte [esp + 0xf], 0
jne 0x438e54
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x438cf3
push 1
push 0x64
call fcn.00401430
add esp, 8
jmp 0x438e13
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4396e0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4cb450]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00444c70
mov edi, eax
test edi, edi
je 0x439706
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [eax + 1]
jmp 0x43970b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00479e00
cmp eax, 1
je 0x439729
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x4397bb
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 0x439752
mov edi, dword [esi + 0xc]
jmp 0x439754
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43976c
test byte [edi + 0x15], 8
je 0x439767
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x439771
mov eax, 0x4cd1bc
lea edx, [ebp + ebp]
mov dword [eax], edx
cmp byte [esi + 0x17], 0
jne 0x439782
mov edi, dword [esi + 0xc]
jmp 0x439784
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43979c
test byte [edi + 0x15], 8
je 0x439797
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x4397a1
mov eax, 0x4cd1bc
test dword [eax], 0xfffffffe
jne 0x4397f8
push 0
push 1
mov ecx, esi
call fcn.00401280
xor ecx, ecx
mov word [eax], cx
jmp 0x4397f8
push 0
push 1
call fcn.00401280
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], dl
jne 0x4397d3
mov edi, dword [esi + 0xc]
jmp 0x4397d5
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4397ed
test byte [edi + 0x15], 8
je 0x4397e8
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x4397f2
mov eax, 0x4cd1bc
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x439801
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x439821
cmp dword [0x4cd004], 0
je 0x439821
mov ecx, 0x4ccff8
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 0x43a5b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.0049b990
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
mov esi, dword [0x4cb450]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x43a664
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00479e00
test eax, eax
jne 0x43a602
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 0x43a625
push eax
push 1
mov ecx, esi
call fcn.00401280
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], 0
jne 0x43a62e
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x43a651
cmp dword [0x4cd004], 0
je 0x43a651
mov ecx, 0x4ccff8
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 0x43a671
mov eax, 0x4a4910
push 1
push 0
push edi
push eax
push esi
call fcn.00479e00
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x43c990
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, dword [0x4ccf88]
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 0x43c9e1
lea ecx, [esp + 0x10]
push ecx
call fcn.0043ced0
add esp, 4
test eax, eax
je 0x43c9d5
lea edx, [esp + 0x10]
push edx
call ebp
push esi
call edi
cmp eax, 0xffffffff
jne 0x43c9e1
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 0x4a4910
push 0x4cc4b0
mov edx, esi
call fcn.00431a00
test eax, eax
mov eax, dword [0x4c8b88]
setne bl
test eax, eax
je 0x43ca14
mov eax, dword [eax]
test eax, eax
jne 0x43ca19
mov eax, 0x4a4910
push eax
call ebp
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x210
ret

Function at 0x43ced0
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 0x43cf10
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43cf75
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 0x43cfa3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43cfa3
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43cf83
test eax, eax
je 0x43cf75
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43cf6d
sub ecx, 2
dec eax
jne 0x43cf61
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43cfac
test edi, edi
jne 0x43cfac
mov edi, 0x100
jmp 0x43cee8
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43cf9a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43cf75
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43cf71
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43cf75
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43cfcf
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 0x43cfc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret