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

Disassembly:
mov eax, dword [0x4a98f8]
add eax, 4
imul eax, eax, 0xe8
push ebx
push ebp
push esi
push edi
push eax
call fcn.00487b67
xor ebx, ebx
add esp, 4
mov dword [0x4abec0], eax
cmp eax, ebx
jne 0x4172dd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4a9978]
push 0x403b80
mov edi, eax
push 0x4ef6d80
mov ecx, 0x3a
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4ad2ec]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0xe
push ecx
mov dword [0x4a9978], eax
call edi
cmp dword [0x4ae2a8], ebx
jne 0x41731e
mov ebp, 1
jmp 0x4173c7
mov edx, dword [0x4a9978]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov byte [edx + 0xcc], bl
call esi
mov ecx, dword [0x4a9978]
mov dword [ecx + 0xbc], eax
mov dword [ecx + 0xc0], 0x64
cmp byte [0x4ad44a], bl
jne 0x41736c
mov eax, dword [0x4ad2ec]
push 0x4039f0
push 0x64
push 0xb
push eax
call edi
test eax, eax
setne cl
mov byte [0x4ad44a], cl
mov byte [0x4ae8c1], 1
call esi
mov ecx, dword [0x4ae2a8]
push ebx
mov esi, 1
add dword [0x4ad460], esi
push ebx
push esi
mov dword [0x4ae8dc], eax
mov dword [0x4ae8d8], eax
call fcn.00426330
sub dword [0x4ad460], esi
mov ebp, eax
cmp byte [0x4ad44a], bl
je 0x4173c1
mov edx, dword [0x4ad2ec]
push 0xb
push edx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x4173c1
mov byte [0x4ad44a], bl
mov byte [0x4ae8c1], bl
mov eax, dword [0x4a9978]
cmp dword [eax + 0xe4], ebx
lea esi, [eax + 0xe4]
je 0x417410
mov eax, dword [esi]
cmp dword [eax + 8], 6
jne 0x4173ec
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x4173fe
push eax
call fcn.004877a8
add esp, 4
mov ecx, dword [esi]
push ecx
call fcn.00487508
mov eax, dword [0x4a9978]
add esp, 4
mov dword [esi], ebx
mov edx, dword [0x4adaf4]
push 1
push ebx
push 0xffffffffffffffff
mov byte [eax + 0xcc], 1
mov esi, eax
push 0x49b8d8
mov dword [eax + 0x94], ebx
mov dword [eax + 0x98], ebx
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa4], ebx
mov dword [eax + 0xa8], ebx
mov byte [eax + 0xd8], bl
mov dword [eax + 0x28], ebx
mov dword [eax + 0x4c], ebx
mov byte [eax + 0xc8], bl
mov dword [eax + 0x48], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xe4], ebx
mov dword [eax + 0xe0], ebx
mov ecx, 0x3a
mov edi, 0x4abfb0
rep movsd dword es:[edi], dword [esi]
push edx
mov byte [eax + 0xcc], 1
mov dword [eax + 0xc0], ebx
mov word [eax + 0xcd], 1
mov dword [eax + 0x2c], CreateStatusWindowA
call fcn.00477500
mov eax, dword [0x4aaab4]
cmp word [eax], bx
jne 0x4174e7
cmp dword [0x4adb64], ebx
jne 0x4174e7
cmp dword [0x4ad41c], ebx
jne 0x4174e7
cmp dword [0x4ad420], ebx
jne 0x4174e7
cmp byte [0x4ad42a], bl
jne 0x4174e7
neg ebp
sbb ebp, ebp
and ebp, 5
push ebx
inc ebp
push ebp
push 0x4ae2a8
call fcn.00417530
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x417530
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, 0xa4
push ebx
xor ebx, ebx
push esi
push edi
mov dword [eax + 0x5d4], ecx
cmp byte [0x4aeac3], bl
jne 0x4176cc
cmp byte [eax + 0x618], bl
je 0x4176cc
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4adaf4]
push ebx
push 1
mov dword [0x4af514], eax
call fcn.00401210
push 0x7f
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0048a520
mov eax, dword [0x4a9978]
inc dword [0x4ad460]
add eax, 0xe8
mov edi, eax
mov byte [esp + 0xbb], bl
mov ecx, 0x3a
mov esi, 0x4abfb0
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4a9978], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4ae2a8
call fcn.004171b0
mov dword [0x4ae8c8], ebx
mov dword [0x4ae8cc], ebx
cmp dword [0x4ad494], ebx
je 0x4175f2
mov eax, dword [0x4aaaac]
cmp eax, ebx
je 0x4175e6
mov eax, dword [eax]
cmp eax, ebx
jne 0x4175eb
mov eax, 0x49b871
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x5c8]
mov edi, dword [0x4a98ec]
mov dword [0x4a98ec], ebx
mov byte [0x4aeac3], 1
mov byte [esp + 0xf], 1
mov byte [0x4aae68], bl
cmp ecx, ebx
je 0x417632
call fcn.00401280
test eax, eax
je 0x417632
cmp byte [0x4aae68], bl
jne 0x417632
mov byte [esp + 0xf], bl
mov byte [0x4aae68], 1
cmp byte [esp + 0xf], bl
je 0x41768b
mov dword [esp + 0x18], ebx
call fcn.00443e80
mov dword [esp + 0x10], eax
mov eax, dword [0x4af514]
cdq
mov dword [esp + 0x24], edx
xor edx, edx
cmp dword [esi + 0x5c8], ebx
mov dword [esp + 0x20], eax
sete dl
lea eax, [esp + 0x10]
lea ebx, [esi + 0x594]
mov dword [esp + 0x28], 1
push edx
push 2
push eax
call fcn.0046fa40
xor ebx, ebx
cmp eax, 3
jne 0x41768b
mov byte [esp + 0xf], bl
mov byte [0x4aeac3], bl
cmp byte [esp + 0xf], bl
jne 0x4176be
cmp dword [ebp + 0xc], 0xffffffff
jle 0x4176be
lea ecx, [esp + 0x30]
push ecx
call fcn.00403860
add esp, 4
mov dword [0x4a98ec], edi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call fcn.00417710
cmp byte [0x4aae68], bl
jne 0x417701
cmp ecx, 6
jne 0x417701
mov ecx, dword [0x4ad288]
cmp byte [ecx], bl
je 0x4176ec
mov edx, dword [ebp + 0x10]
mov dword [0x4af514], edx
pop edi
pop esi
mov byte [0x4aae68], 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.00417710
int3
Function at 0x417be0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindResourceA]
push 0xa
push 0x49e288
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x20], 0
call edi
mov esi, eax
test esi, esi
jne 0x417c21
push 0xa
push str._AHK_WITH_ICON_
push eax
call edi
mov esi, eax
test esi, esi
je 0x417c85
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x417c85
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x417c85
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x417c85
mov ecx, dword [esp + 0x20]
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0x10]
call fcn.00472080
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x600]
inc dword [0x4ae20c]
mov dword [0x4ac234], ecx
mov eax, 3
pop edi
pop esi
add esp, 0x10
ret 0xc
fldz
mov edx, dword [esp + 0x24]
sub esp, 8
fstp qword [esp]
push 0
push edx
push 0
push str.Could_not_extract_script_from_EXE.
call fcn.00479130
add esp, 0x18
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
Function at 0x41dca0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
mov al, byte [0x4a93b3]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], al
mov dword [esp + 0xe], 0x3e3c0928
mov dword [esp + 0x12], 0x2d2b3d3a
mov dword [esp + 0x16], 0x7e212f2a
mov dword [esp + 0x1a], 0x5b5e7c26
mov dword [esp + 0x1e], 0x7b3f2e
mov edi, ebp
test ebp, ebp
je 0x41dd0a
mov dl, byte [ebp]
test dl, dl
je 0x41dd0a
lea ecx, [ecx]
lea ecx, [esp + 0xc]
mov al, 0x20
cmp dl, al
je 0x41dd5e
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41dcf6
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x41dcf0
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41dd10
sub eax, edx
lea edi, [eax + ebp - 1]
cmp edi, ebp
jbe 0x41dd30
mov al, byte [edi]
cmp al, 0x20
je 0x41dd2b
cmp al, 9
jne 0x41dd30
dec edi
cmp edi, ebp
ja 0x41dd21
mov esi, edi
sub esi, ebp
inc esi
cmp esi, 0xfd
jbe 0x41dd65
cmp byte [esp + 0x30], 0
je 0x41dd53
mov ecx, dword [esp + 0x28]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0042fa80
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc
cmp edi, ebp
jbe 0x41dd30
dec edi
jmp 0x41dd1d
push esi
push ebp
push ebx
call fcn.0048a520
add esp, 0xc
mov eax, edi
pop edi
mov byte [esi + ebx], 0
pop esi
pop ebp
add esp, 0x18
ret 0xc
Function at 0x42fff0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2004
call fcn.00493cb0
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x4300eb
test ebx, ebx
jne 0x430020
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x374]
test ebx, ebx
je 0x43002a
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x430037
mov ecx, dword [eax + 0x170]
movzx eax, word [eax + 0x174]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx*4 + 0x4ac234]
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.00474600
mov esi, dword [ebp + 0x14]
add esp, 0x10
cmp byte [esi], 0
lea edi, [esp + eax + 0x10]
je 0x430083
push esi
lea esi, [esp + 0x2014]
push str._____Specifically:__s_n
sub esi, edi
call fcn.00474600
mov esi, dword [ebp + 0x14]
add esp, 8
mov edi, dword [ebp + 0xc]
cmp edi, 3
jne 0x4300a9
mov eax, dword [ebp + 8]
push 0x49e244
push 0
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0042f650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
cmp edi, 2
jne 0x4300eb
test ebx, ebx
jne 0x4300ca
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x374]
test ebx, ebx
je 0x4300e1
mov edx, dword [ebp + 0x10]
push esi
push 1
push edx
mov ecx, ebx
call fcn.0042f7e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
push esi
push eax
call fcn.0042fa80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x430520
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1fc
push ebx
push ebp
push esi
push edi
mov edi, eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
cmp eax, ebx
je 0x43054f
push 0x64
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x430556
mov byte [esp + 0xa0], bl
mov esi, dword [0x4ae880]
mov byte [esp + 0x20], bl
cmp esi, ebx
je 0x4305fb
cmp byte [esi + 0x11], bl
je 0x4305a9
mov edx, dword [esi]
push edx
call fcn.0046f940
add esp, 4
sub eax, ebx
je 0x43058d
dec eax
je 0x430586
mov eax, str.Object
jmp 0x430592
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x430592
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x49fe0c
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00474640
add esp, 8
mov esi, dword [esi + 0x14]
cmp esi, ebx
jne 0x430568
cmp byte [esp + 0x20], bl
je 0x4305fb
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4305c0
sub eax, edx
cmp eax, 0x7b
jbe 0x4305ed
mov esi, 0x7f
sub esi, eax
push esi
lea ebp, [esp + eax + 0x24]
push 0x49de28
push ebp
call fcn.0048a520
add esp, 0xc
mov byte [esi + ebp], bl
jmp 0x4305fb
cmp byte [esp + eax + 0x1f], 0x20
lea eax, [esp + eax + 0x20]
jne 0x4305fb
mov byte [eax - 1], bl
mov edx, dword [0x4abec0]
cmp byte [edx + 0xd8], bl
je 0x430619
mov dword [esp + 0x14], 1
cmp byte [0x4ae8c1], bl
je 0x43061d
mov dword [esp + 0x14], ebx
mov eax, dword [0x4ad460]
mov dword [esp + 0x10], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x43072c
mov dword [esp + 0x10], 0x49b871
mov dword [esp + 0x18], ebx
mov ebp, 0x49cb30
cmp dword [0x4ad420], ebx
je 0x430651
mov ebp, 0x49cb2c
mov esi, 0x49cb30
cmp dword [0x4ad41c], ebx
je 0x430663
mov esi, 0x49cb2c
push 1
call fcn.00412e80
mov bl, al
add esp, 4
lea eax, [esp + 0x108]
call fcn.00413270
mov ecx, dword [0x4ad460]
mov edx, dword [0x4ad464]
sub edx, dword [esp + 0x14]
push eax
mov eax, dword [0x4ad45c]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [0x4ae888]
push ecx
mov ecx, dword [0x4ae88c]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push ebp
push esi
lea edx, [esp + 0xcc]
push edx
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
mov esi, 0xfffe
call fcn.00474600
mov esi, dword [esp + 0x50]
add edi, eax
mov eax, esi
sub eax, edi
add esp, 0x34
add eax, 0xfffe
push eax
push edi
call fcn.00409410
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4306f0
sub eax, ecx
add edi, eax
cmp dword [0x4adb04], 0
mov eax, str._r_nPress__F5__to_refresh.
jne 0x43070e
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
sub esi, edi
push eax
add esi, 0xfffe
call fcn.00474600
add esp, 4
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret
dec eax
mov dword [esp + 0x18], eax
jmp 0x43063f
Function at 0x4362f0
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.00442e00
mov edi, eax
test edi, edi
je 0x43631e
mov esi, dword [esp + 0x1c]
push edi
call fcn.00478f50
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x436369
mov ecx, dword [0x4a9978]
test byte [ecx + 0xe0], 1
jne 0x43634c
mov edx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf28
push edx
call fcn.00477500
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x49b871
push 0
push 0x49cf28
call fcn.0042f3e0
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 0x4363a1
cmp ebp, dword [0x4ae274]
je 0x4363a1
mov esi, edi
call fcn.00479430
test al, al
jne 0x4363a1
mov eax, dword [0x4ae274]
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 0x4363df
mov edx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push edx
call fcn.00477500
mov eax, dword [0x4a9978]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x4363df
push 1
push eax
call fcn.004013c0
add esp, 8
test bl, bl
je 0x4363f3
mov ecx, dword [0x4ae274]
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 0x437110
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.004318d0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x437145
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042f7e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x43714f
jmp dword [eax*4 + 0x43733c]
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x437165
call fcn.00453ec0
jmp 0x43716b
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4adaf4]
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.00453ec0
mov ebx, eax
test ebx, ebx
je 0x4371df
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x4371df
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 [0x4adaf4]
push 0x18
push 0
push esi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
call fcn.00477500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [ebx]
push ecx
call fcn.00489e15
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x437219.67
movzx edx, byte [eax + 0x43736c]
jmp dword [edx*4 + 0x437350]
mov esi, 0x40
jmp 0x437248
mov esi, 0x4000
jmp 0x437248
mov esi, 0x20
jmp 0x437248
mov esi, 0x8000
jmp 0x437248
mov esi, 0x80
jmp 0x437248
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x437257
call fcn.00453ec0
jmp 0x43725d
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x4371df
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x4371df
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
jmp 0x4371b3
mov ecx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push ecx
call fcn.00477500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx], 0
je 0x4372d6
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.004147b0
fmul qword [0x4a3ea8]
call fcn.00495ea0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x4372e0
mov byte [esp + 0xf], 1
xor edi, edi
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
call fcn.00453ec0
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x4372fb
test esi, esi
jne 0x4371c2
jmp 0x437303
test esi, esi
je 0x4371df
cmp byte [esp + 0xf], 0
jne 0x437321
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4371c2
push 1
push 0x64
call fcn.004013c0
add esp, 8
jmp 0x4372e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437b70
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4ad238]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00442e00
mov edi, eax
test edi, edi
je 0x437b96
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x437b9b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00477500
cmp eax, 1
je 0x437bb9
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x437c3e
push ebp
push 0
push 1
call fcn.00401210
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x437bde
mov edi, dword [esi + 0xc]
jmp 0x437be0
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x437bf8
test byte [edi + 0x15], 8
je 0x437bf3
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x437bfd
mov eax, 0x4aeabc
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x437c0a
mov edi, dword [esi + 0xc]
jmp 0x437c0c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x437c24
test byte [edi + 0x15], 8
je 0x437c1f
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x437c29
mov eax, 0x4aeabc
cmp dword [eax], 0
jne 0x437c7a
push 0
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
jmp 0x437c7a
push 0
push 1
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x437c55
mov edi, dword [esi + 0xc]
jmp 0x437c57
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x437c6f
test byte [edi + 0x15], 8
je 0x437c6a
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x437c74
mov eax, 0x4aeabc
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x437c83
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x437ca5
cmp dword [0x4ae298], 0
je 0x437ca5
push 1
mov ecx, 0x4ae28c
call fcn.004047f0
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 0x438a40
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00493cb0
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4ad238]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x438af4
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00477500
test eax, eax
jne 0x438a92
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401210
push eax
push ebx
call ebp
test eax, eax
jne 0x438ab3
push eax
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x438abc
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x438ae1
cmp dword [0x4ae298], 0
je 0x438ae1
push 1
mov ecx, 0x4ae28c
call fcn.004047f0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x8000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x438b01
mov eax, 0x49b871
push 1
push 0
push edi
push eax
push esi
call fcn.00477500
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x43ade0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov eax, dword [0x4ae8b8]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.00474600
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x43ae35
lea edx, [edi + 1]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43ae35
mov ecx, dword [esp + 0x14]
mov word [esi + edi], 0x22
mov eax, dword [0x4ae8b8]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebp
ret
push ebp
call fcn.0043b4a0
add esp, 4
test eax, eax
je 0x43ae83
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.00474600
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43ae83
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43ae83
mov edx, dword [esp + 0x14]
mov word [esi + edi], 0x22
pop edi
pop esi
mov dword [edx], ebp
mov al, 1
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebp
ret

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

Disassembly:
mov eax, 0x1114
call fcn.00493cb0
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
lea ebp, [esp + 0x924]
push ecx
mov eax, ebp
mov dword [esp + 0x18], 0x49b871
call fcn.0043ade0
add esp, 8
test al, al
jne 0x43aece
pop edi
pop esi
pop ebp
add esp, 0x1114
ret
cmp byte [esp + 0x1124], 0
je 0x43af37
mov edx, dword [esp + 0x14]
push 0x4a0d50
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x12c]
call fcn.00474600
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43af37
lea ecx, [esp + 0x121]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43af37
lea edx, [esp + 0x920]
mov byte [esp + esi + 0x120], 0x22
mov byte [esp + esi + 0x121], 0
mov ebp, edi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0x4ae2a8
mov edx, ebp
call fcn.00430740
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x1114
ret
Function at 0x43b4a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push ebx
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x43b4d8
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43b553
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.InstallDir
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x43b4d0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43b4d0
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x43b537
cmp eax, ebx
je 0x43b553
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x43b531
dec eax
jne 0x43b528
mov dword [esp + 0x10], eax
jmp 0x43b54f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43b54b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43b553
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x43b561
cmp edi, ebx
jne 0x43b561
mov edi, 0x100
jmp 0x43b4b4
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43b57e
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x43b574
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret