joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416240
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 + 0x5d0], ecx
cmp byte [0x4acba7], bl
jne 0x4163c8
cmp byte [eax + 0x614], bl
je 0x4163c8
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4abaa0]
push ebx
push 1
mov dword [0x4ad63c], eax
call fcn.00401210
push 0x7f
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00488790
mov eax, dword [0x4a7978]
inc dword [0x4ab410]
add eax, 0xe8
mov edi, eax
mov byte [esp + 0xbb], bl
mov ecx, 0x3a
mov esi, 0x4a9f50
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4a7978], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4ac390
call fcn.00415ec0
mov dword [0x4ac9a8], ebx
mov dword [0x4ac9ac], ebx
cmp dword [0x4ab43c], ebx
je 0x4162f2
push 0x4abaa8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x5c4]
mov edi, dword [0x4a78ec]
mov dword [0x4a78ec], ebx
mov byte [0x4acba7], 1
mov byte [esp + 0xf], 1
mov byte [0x4a8e23], bl
cmp ecx, ebx
je 0x416332
call fcn.00401280
test eax, eax
je 0x416332
cmp byte [0x4a8e23], bl
jne 0x416332
mov byte [esp + 0xf], bl
mov byte [0x4a8e23], 1
cmp byte [esp + 0xf], bl
je 0x41638b
mov dword [esp + 0x18], ebx
call fcn.00442300
mov dword [esp + 0x10], eax
mov eax, dword [0x4ad63c]
cdq
mov dword [esp + 0x24], edx
xor edx, edx
cmp dword [esi + 0x5c4], ebx
mov dword [esp + 0x20], eax
sete dl
lea eax, [esp + 0x10]
lea ebx, [esi + 0x590]
mov dword [esp + 0x28], 1
push edx
push 2
push eax
call fcn.0046ddd0
xor ebx, ebx
cmp eax, 3
jne 0x41638b
mov byte [esp + 0xf], bl
mov byte [0x4acba7], bl
cmp byte [esp + 0xf], bl
jne 0x4163be
cmp dword [ebp + 0xc], 3
je 0x4163be
lea ecx, [esp + 0x30]
push ecx
call fcn.00403590
add esp, 4
mov dword [0x4a78ec], edi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
push edx
push esi
call fcn.00416410
cmp byte [0x4a8e23], bl
jne 0x4163fc
cmp ecx, 9
jne 0x4163fc
mov eax, dword [0x4ab240]
cmp byte [eax], bl
je 0x4163e7
mov ecx, dword [ebp + 0x10]
mov dword [0x4ad63c], ecx
pop edi
pop esi
mov byte [0x4a8e23], 1
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
push edx
push eax
call fcn.00416410
int3
Function at 0x41c620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
mov al, byte [0x4a73b3]
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 0x41c68a
mov dl, byte [ebp]
test dl, dl
je 0x41c68a
lea ecx, [ecx]
lea ecx, [esp + 0xc]
mov al, 0x20
cmp dl, al
je 0x41c6de
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41c676
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x41c670
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c690
sub eax, edx
lea edi, [eax + ebp - 1]
cmp edi, ebp
jbe 0x41c6b0
mov al, byte [edi]
cmp al, 0x20
je 0x41c6ab
cmp al, 9
jne 0x41c6b0
dec edi
cmp edi, ebp
ja 0x41c6a1
mov esi, edi
sub esi, ebp
inc esi
cmp esi, 0xfd
jbe 0x41c6e5
cmp byte [esp + 0x30], 0
je 0x41c6d3
mov ecx, dword [esp + 0x28]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0042ddb0
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc
cmp edi, ebp
jbe 0x41c6b0
dec edi
jmp 0x41c69d
push esi
push ebp
push ebx
call fcn.00488790
add esp, 0xc
mov eax, edi
pop edi
mov byte [esi + ebx], 0
pop esi
pop ebp
add esp, 0x18
ret 0xc
Function at 0x42ac90
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x4ab410]
sub esp, 0x9c
push ebx
push esi
push edi
cmp eax, dword [0x4a78f8]
jl 0x42acba
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [0x4abaa0]
cmp byte [esi + 0x17], 0
jne 0x42acc9
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x42acd6
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42acef
test byte [esi + 0x15], 4
je 0x42acea
mov eax, esi
call fcn.0042e410
mov eax, dword [esi + 8]
jmp 0x42acff
cmp al, 2
jne 0x42acfa
call fcn.00401000
jmp 0x42acff
mov eax, 0x4abc1b
push 0x7f
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00488790
mov eax, dword [0x4a7978]
inc dword [0x4ab410]
add eax, 0xe8
mov edi, eax
mov byte [esp + 0xb3], 0
mov ecx, 0x3a
mov esi, 0x4a9f50
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov esi, eax
xor edi, edi
mov dword [0x4a7978], eax
push edi
mov eax, 0x4ac390
mov dword [esi + 0x2c], edi
call fcn.00415ec0
mov dword [0x4ac9a8], edi
mov dword [0x4ac9ac], edi
cmp dword [0x4ab43c], edi
je 0x42ad6b
push 0x4abaa8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or eax, 0xffffffff
cmp byte [esi + 0xce], 0
jne 0x42ad86
mov byte [esi + 0xce], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
cmp dword [0x4ac9b4], edi
je 0x42ad96
cmp dword [0x4ac9b0], edi
jne 0x42ad9f
cmp byte [esi + 0xce], 0
je 0x42add7
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x42add7
cmp dword [0x4ac9b4], edi
jge 0x42adbf
mov dword [esi + 0xc0], eax
jmp 0x42add7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xbc], eax
mov edx, dword [0x4ac9b4]
mov dword [esi + 0xc0], edx
mov eax, dword [0x4ac918]
mov ecx, dword [0x4ac980]
mov edx, dword [0x4ac984]
mov ebx, dword [0x4ac91c]
mov esi, dword [ebp + 0xc]
mov edi, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [0x4ac91c], eax
mov dword [0x4ac984], ecx
mov dword [0x4ac918], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ac9bc], eax
mov dword [0x4ac9b8], eax
mov dword [0x4ac980], eax
mov eax, dword [ebp + 8]
cmp byte [eax], 5
jne 0x42ae35
mov esi, dword [eax + 0xc]
call fcn.0042ac20
mov esi, eax
jmp 0x42ae72
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push edx
xor eax, eax
push str.call
push ecx
lea edx, [eax + 1]
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], esi
call fcn.0046ade0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42ae72
mov esi, dword [esp + 0x14]
neg esi
sbb esi, esi
add esi, 4
mov eax, dword [0x4a7978]
mov ecx, dword [eax + 0xa4]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [0x4ab424], ecx
lea ecx, [esp + 0x28]
push ecx
mov dword [0x4ac918], edi
mov dword [0x4ac980], edx
mov dword [0x4ac91c], ebx
mov dword [0x4ac984], eax
call fcn.00403590
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42e2e0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2000
call fcn.00491fc0
cmp dword [esp + 0x2008], 0
push ebx
push ebp
mov ebp, dword [esp + 0x2018]
mov ebx, ecx
je 0x42e3ff
test ebx, ebx
jne 0x42e318
mov eax, dword [esp + 0x200c]
mov ebx, dword [eax + 0x370]
test ebx, ebx
je 0x42e322
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x42e32f
mov ecx, dword [eax + 0x16c]
movzx eax, word [eax + 0x170]
mov edx, dword [esp + 0x2014]
mov ecx, dword [ecx*4 + 0x4ab238]
push esi
push edi
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.004728f0
add esp, 0x10
cmp byte [ebp], 0
lea edi, [esp + eax + 0x10]
je 0x42e37c
push ebp
lea esi, [esp + 0x2014]
push str._____Specifically:__s_n
sub esi, edi
call fcn.004728f0
add esp, 8
mov esi, dword [esp + 0x2018]
cmp esi, 3
jne 0x42e3ab
call fcn.00485eb7
add eax, 0x20
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00487eb1
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2000
ret 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, 2
jne 0x42e3fd
test ebx, ebx
jne 0x42e3d0
mov ecx, dword [esp + 0x2014]
mov ebx, dword [ecx + 0x370]
test ebx, ebx
je 0x42e3ef
mov ecx, dword [esp + 0x201c]
push ebp
push 1
push ecx
mov ecx, ebx
call fcn.0042daf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2000
ret 0x10
mov edx, dword [esp + 0x201c]
push ebp
push edx
call fcn.0042ddb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2000
ret 0x10
Function at 0x42e830
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 0x42e85f
push 0x64
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42e866
mov byte [esp + 0xa0], bl
mov esi, dword [0x4ac964]
mov byte [esp + 0x20], bl
cmp esi, ebx
je 0x42e90b
cmp byte [esi + 0x11], bl
je 0x42e8b9
mov edx, dword [esi]
push edx
call fcn.0046dcd0
add esp, 4
sub eax, ebx
je 0x42e89d
dec eax
je 0x42e896
mov eax, str.Object
jmp 0x42e8a2
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x42e8a2
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x49db00
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00472930
add esp, 8
mov esi, dword [esi + 0x14]
cmp esi, ebx
jne 0x42e878
cmp byte [esp + 0x20], bl
je 0x42e90b
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42e8d0
sub eax, edx
cmp eax, 0x7b
jbe 0x42e8fd
mov esi, 0x7f
sub esi, eax
push esi
lea ebp, [esp + eax + 0x24]
push 0x49bbf8
push ebp
call fcn.00488790
add esp, 0xc
mov byte [esi + ebp], bl
jmp 0x42e90b
cmp byte [esp + eax + 0x1f], 0x20
lea eax, [esp + eax + 0x20]
jne 0x42e90b
mov byte [eax - 1], bl
mov edx, dword [0x4a9e60]
cmp byte [edx + 0xd8], bl
je 0x42e929
mov dword [esp + 0x14], 1
cmp byte [0x4ac9a5], bl
je 0x42e92d
mov dword [esp + 0x14], ebx
mov eax, dword [0x4ab410]
mov dword [esp + 0x10], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x42ea3c
mov dword [esp + 0x10], 0x499861
mov dword [esp + 0x18], ebx
mov ebp, 0x49aa70
cmp dword [0x4ab3d4], ebx
je 0x42e961
mov ebp, 0x49aa6c
mov esi, 0x49aa70
cmp dword [0x4ab3d0], ebx
je 0x42e973
mov esi, 0x49aa6c
push 1
call fcn.00411b70
mov bl, al
add esp, 4
lea eax, [esp + 0x108]
call fcn.00411f30
mov ecx, dword [0x4ab410]
mov edx, dword [0x4ab414]
sub edx, dword [esp + 0x14]
push eax
mov eax, dword [0x4ab40c]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [0x4ac96c]
push ecx
mov ecx, dword [0x4ac970]
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.004728f0
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.00408fb0
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42ea00
sub eax, ecx
add edi, eax
cmp dword [0x4abbb0], 0
mov eax, str._r_nPress__F5__to_refresh.
jne 0x42ea1e
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
sub esi, edi
push eax
add esi, 0xfffe
call fcn.004728f0
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 0x42e94f
Function at 0x434790
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.00441330
mov edi, eax
test edi, edi
je 0x4347be
mov esi, dword [esp + 0x1c]
push edi
call fcn.004770a0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x434809
mov ecx, dword [0x4a7978]
test byte [ecx + 0xe0], 1
jne 0x4347ec
mov edx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49ae68
push edx
call fcn.004756a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x499861
push 0
push 0x49ae68
call fcn.0042d880
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 0x434841
cmp ebp, dword [0x4ac31c]
je 0x434841
mov esi, edi
call fcn.00477580
test al, al
jne 0x434841
mov eax, dword [0x4ac31c]
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 0x43487f
mov edx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49987c
push edx
call fcn.004756a0
mov eax, dword [0x4a7978]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x43487f
push 1
push eax
call fcn.004013c0
add esp, 8
test bl, bl
je 0x434893
mov ecx, dword [0x4ac31c]
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 0x4355b0
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 edi, ecx
call fcn.0042fb80
mov ebx, eax
test ebx, ebx
jne 0x4355e3
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042daf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x4355ef
jmp dword [eax*4 + 0x4357e8]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x435609
push eax
call fcn.00452470
add esp, 4
jmp 0x43560f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4abaa0]
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00452470
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x435687
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x435687
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 [0x4abaa0]
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 ecx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49987c
push ecx
call fcn.004756a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx edx, byte [edi]
push edx
call fcn.00488087
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4356c2.67
movzx eax, byte [eax + 0x435818]
jmp dword [eax*4 + 0x4357fc]
mov esi, 0x40
jmp 0x4356f1
mov esi, 0x4000
jmp 0x4356f1
mov esi, 0x20
jmp 0x4356f1
mov esi, 0x8000
jmp 0x4356f1
mov esi, 0x80
jmp 0x4356f1
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x435704
push eax
call fcn.00452470
add esp, 4
jmp 0x43570a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x435687
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x435687
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x43565b
mov edx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49987c
push edx
call fcn.004756a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [edi], 0
je 0x435783
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.00413470
fmul qword [0x4a1cd0]
call fcn.004941b0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x435790
mov byte [esp + 0x13], 1
xor edi, edi
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
push eax
call fcn.00452470
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x4357ad
test esi, esi
jne 0x43566a
jmp 0x4357b1
test esi, esi
je case.0x4356c2.67
cmp byte [esp + 0x13], 0
jne 0x4357cf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x43566a
push 1
push 0x64
call fcn.004013c0
add esp, 8
jmp 0x435790
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x436020
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4ab1e8]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00441330
mov edi, eax
test edi, edi
je 0x436046
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x43604b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.004756a0
cmp eax, 1
je 0x436069
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x4360ee
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 0x43608e
mov edi, dword [esi + 0xc]
jmp 0x436090
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4360a8
test byte [edi + 0x15], 8
je 0x4360a3
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x4360ad
mov eax, 0x4acba0
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x4360ba
mov edi, dword [esi + 0xc]
jmp 0x4360bc
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4360d4
test byte [edi + 0x15], 8
je 0x4360cf
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x4360d9
mov eax, 0x4acba0
cmp dword [eax], 0
jne 0x43612a
push 0
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
jmp 0x43612a
push 0
push 1
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x436105
mov edi, dword [esi + 0xc]
jmp 0x436107
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43611f
test byte [edi + 0x15], 8
je 0x43611a
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x436124
mov eax, 0x4acba0
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x436133
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x436155
cmp dword [0x4ac340], 0
je 0x436155
push 1
mov ecx, 0x4ac334
call fcn.00404370
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 0x436ee0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00491fc0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4ab1e8]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x436f94
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.004756a0
test eax, eax
jne 0x436f32
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 0x436f53
push eax
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x436f5c
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x436f81
cmp dword [0x4ac340], 0
je 0x436f81
push 1
mov ecx, 0x4ac334
call fcn.00404370
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 0x436fa1
mov eax, 0x499861
push 1
push 0
push edi
push eax
push esi
call fcn.004756a0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x439260
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 [0x4ac99c]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.004728f0
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x4392b5
lea edx, [edi + 1]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4392b5
mov ecx, dword [esp + 0x14]
mov word [esi + edi], 0x22
mov eax, dword [0x4ac99c]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebp
ret
push ebp
call fcn.00439920
add esp, 4
test eax, eax
je 0x439303
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.004728f0
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x439303
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439303
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 0x439310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1114
call fcn.00491fc0
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], 0x499861
call fcn.00439260
add esp, 8
test al, al
jne 0x43934e
pop edi
pop esi
pop ebp
add esp, 0x1114
ret
cmp byte [esp + 0x1124], 0
je 0x4393b7
mov edx, dword [esp + 0x14]
push 0x49ea74
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x12c]
call fcn.004728f0
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x4393b7
lea ecx, [esp + 0x121]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4393b7
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 0x4ac390
mov edx, ebp
call fcn.0042ea50
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x1114
ret
Function at 0x439920
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 0x439958
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x4399d3
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 0x439950
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x439950
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x4399b7
cmp eax, ebx
je 0x4399d3
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x4399b1
dec eax
jne 0x4399a8
mov dword [esp + 0x10], eax
jmp 0x4399cf
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x4399cb
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x4399d3
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x4399e1
cmp edi, ebx
jne 0x4399e1
mov edi, 0x100
jmp 0x439934
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x4399fe
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 0x4399f4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43ce60
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ab1e8]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00412440
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43cefc
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044d870
mov edi, eax
add esp, 4
test edi, edi
jne 0x43cec0
push 1
push eax
push 0xffffffffffffffff
push 0x499861
push ebp
call fcn.004756a0
pop edi
pop ebp
pop ebx
add esp, 0x11c
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.0044db10
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00474ff0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43cf20
push 2
push ebx
call fcn.00486d2e
add esp, 8
test eax, eax
je 0x43cf20
and bl, 0xdf
cmp bl, 0x50
je 0x43cf33
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43cf38
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044da60
add esp, 4
test al, al
mov eax, 0x49ecf0
jne 0x43cf53
mov eax, 0x49ecf4
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.004756a0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4