joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416960
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 + 0xa98], ecx
cmp byte [0x4ca41f], bl
jne 0x416aeb
cmp byte [eax + 0xadc], bl
je 0x416aeb
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4c8d38]
push ebx
push 1
mov dword [0x4cafe8], eax
call fcn.00401220
push 0x7f
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00490be4
mov eax, dword [0x4c4a14]
inc dword [0x4c86a8]
add eax, 0x108
xor edx, edx
mov edi, eax
mov word [esp + 0x13a], dx
mov ecx, 0x42
mov esi, 0x4c7170
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4c4a14], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4c9718
call fcn.004165e0
mov dword [0x4ca1f8], ebx
mov dword [0x4ca1fc], ebx
cmp dword [0x4c86d4], ebx
je 0x416a15
push 0x4c8d40
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xa8c]
mov edi, dword [0x4c491c]
mov dword [0x4c491c], ebx
mov byte [0x4ca41f], 1
mov byte [esp + 0xf], 1
mov byte [0x4c5ec3], bl
cmp ecx, ebx
je 0x416a55
call fcn.00401290
test eax, eax
je 0x416a55
cmp byte [0x4c5ec3], bl
jne 0x416a55
mov byte [esp + 0xf], bl
mov byte [0x4c5ec3], 1
cmp byte [esp + 0xf], bl
je 0x416aae
mov dword [esp + 0x18], ebx
call fcn.00443e90
mov dword [esp + 0x10], eax
mov eax, dword [0x4cafe8]
cdq
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esi + 0xa8c], ebx
lea ecx, [esp + 0x10]
sete al
lea ebx, [esi + 0xa58]
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], edx
push eax
push 2
push ecx
call fcn.0046fb90
xor ebx, ebx
cmp eax, 3
jne 0x416aae
mov byte [esp + 0xf], bl
mov byte [0x4ca41f], bl
cmp byte [esp + 0xf], bl
jne 0x416ae1
cmp dword [ebp + 0xc], 3
je 0x416ae1
lea edx, [esp + 0x30]
push edx
call fcn.00403600
add esp, 4
mov dword [0x4c491c], edi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
push eax
push esi
call fcn.00416b30
cmp byte [0x4c5ec3], bl
jne 0x416b21
cmp ecx, 9
jne 0x416b21
mov ecx, dword [0x4c84d8]
cmp word [ecx], bx
je 0x416b0c
mov edx, dword [ebp + 0x10]
mov dword [0x4cafe8], edx
pop edi
pop esi
mov byte [0x4c5ec3], 1
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call fcn.00416b30
int3
Function at 0x41cfb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4c4938]
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.00409520
test eax, eax
je 0x41d039
cmp eax, ebp
jbe 0x41d053
sub eax, 2
jmp 0x41d053
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d040
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41d074
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41d06d
cmp eax, 9
jne 0x41d074
sub edi, 2
cmp edi, ebp
ja 0x41d060
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41d0a5
cmp byte [esp + 0x4c], 0
je 0x41d099
mov ecx, dword [esp + 0x40]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0042e990
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.00490be4
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 0x42b8a0
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x4c86a8]
sub esp, 0x124
push ebx
push esi
push edi
cmp eax, dword [0x4c4928]
jl 0x42b8ca
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov cl, byte [0x4c8695]
mov esi, dword [0x4c8d38]
cmp byte [esi + 0x17], 0
mov byte [esp + 0x13], cl
mov byte [0x4c8695], 1
jne 0x42b8ea
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x42b8f7
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42b910
test byte [esi + 0x15], 4
je 0x42b90b
mov eax, esi
call fcn.0042f010
mov eax, dword [esi + 8]
jmp 0x42b920
cmp al, 2
jne 0x42b91b
call fcn.00401000
jmp 0x42b920
mov eax, 0x4c96ac
push 0x7f
push eax
lea edx, [esp + 0x38]
push edx
call fcn.00490be4
inc dword [0x4c86a8]
xor eax, eax
mov word [esp + 0x13a], ax
mov eax, dword [0x4c4a14]
add eax, 0x108
mov edi, eax
mov ecx, 0x42
mov esi, 0x4c7170
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov esi, eax
xor edi, edi
mov dword [0x4c4a14], eax
push edi
mov eax, 0x4c9718
mov dword [esi + 0x2c], edi
call fcn.004165e0
mov dword [0x4ca1f8], edi
mov dword [0x4ca1fc], edi
cmp dword [0x4c86d4], edi
je 0x42b98e
push 0x4c8d40
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or eax, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x42b9a9
mov byte [esi + 0xee], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
cmp dword [0x4ca204], edi
je 0x42b9b9
cmp dword [0x4ca200], edi
jne 0x42b9c2
cmp byte [esi + 0xee], 0
je 0x42b9fa
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x42b9fa
cmp dword [0x4ca204], edi
jge 0x42b9e2
mov dword [esi + 0xe0], eax
jmp 0x42b9fa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdc], eax
mov ecx, dword [0x4ca204]
mov dword [esi + 0xe0], ecx
mov eax, dword [0x4ca168]
mov ecx, dword [0x4ca1d0]
mov edx, dword [0x4ca1d4]
mov ebx, dword [0x4ca16c]
mov esi, dword [ebp + 0xc]
mov edi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [0x4ca16c], eax
mov dword [0x4ca1d4], ecx
mov dword [0x4ca168], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ca20c], eax
mov dword [0x4ca208], eax
mov dword [0x4ca1d0], eax
mov eax, dword [ebp + 8]
cmp byte [eax], 5
jne 0x42ba58
mov esi, dword [eax + 0xc]
call fcn.0042b830
mov esi, eax
jmp 0x42ba95
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
push edx
xor eax, eax
push 0x4a18cc
push ecx
lea edx, [eax + 1]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], esi
call fcn.0046cb20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42ba95
mov esi, dword [esp + 0x1c]
neg esi
sbb esi, esi
add esi, 4
mov eax, dword [0x4c4a14]
mov ecx, dword [eax + 0xc4]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [0x4c86bc], ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [0x4ca168], edi
mov dword [0x4ca1d0], edx
mov dword [0x4ca16c], ebx
mov dword [0x4ca1d4], eax
call fcn.00403600
mov dl, byte [esp + 0x17]
add esp, 4
pop edi
mov eax, esi
pop esi
mov byte [0x4c8695], dl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42eee0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.004996e0
cmp dword [esp + 0x4008], 0
push ebx
push ebp
mov ebp, dword [esp + 0x4018]
mov ebx, ecx
je 0x42f003
test ebx, ebx
jne 0x42ef18
mov eax, dword [esp + 0x400c]
mov ebx, dword [eax + 0x630]
test ebx, ebx
je 0x42ef22
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x42ef2f
mov ecx, dword [eax + 0x26c]
movzx eax, word [eax + 0x270]
mov edx, dword [esp + 0x4014]
mov ecx, dword [ecx*4 + 0x4c84d0]
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.00474960
add esp, 0x10
cmp word [ebp], 0
lea edi, [esp + eax*2 + 0x10]
je 0x42ef80
lea eax, [esp + 0x10]
mov edx, edi
sub edx, eax
sar edx, 1
push ebp
push str._____Specifically:__s_n
sub esi, edx
call fcn.00474960
add esp, 8
mov esi, dword [esp + 0x4018]
cmp esi, 3
jne 0x42efaf
call fcn.0048e49d
add eax, 0x20
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0048ff14
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x42f001
test ebx, ebx
jne 0x42efd4
mov ecx, dword [esp + 0x4014]
mov ebx, dword [ecx + 0x630]
test ebx, ebx
je 0x42eff3
mov eax, dword [esp + 0x401c]
push ebp
push 1
push eax
mov ecx, ebx
call fcn.0042e6c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
mov edx, dword [esp + 0x401c]
push ebp
push edx
call fcn.0042e990
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
Function at 0x42f440
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 0x42f467
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42f471
xor edx, edx
mov word [esp + 0x120], dx
mov esi, dword [0x4ca1b4]
xor eax, eax
mov word [esp + 0x20], ax
test esi, esi
je 0x42f528
cmp byte [esi + 0x11], 0
je 0x42f4c9
mov ecx, dword [esi]
push ecx
call fcn.0046fa90
add esp, 4
sub eax, 0
je 0x42f4ad
dec eax
je 0x42f4a6
mov eax, str.Object
jmp 0x42f4b2
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x42f4b2
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4a9690
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.004749a0
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42f486
cmp word [esp + 0x20], si
je 0x42f528
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f4e0
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x42f516
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a5bdc
push edi
call fcn.00490be4
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x42f528
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x42f528
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4c7060]
cmp byte [eax + 0xf8], 0
je 0x42f547
cmp byte [0x4ca1f5], 0
mov dword [esp + 0x14], 1
je 0x42f54f
mov dword [esp + 0x14], 0
mov eax, dword [0x4c86a8]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x42f66d
mov dword [esp + 0x18], 0x4a1868
xor ebp, ebp
cmp dword [0x4c866c], 0
mov edi, 0x4a3a40
je 0x42f582
mov edi, 0x4a3a38
cmp dword [0x4c8668], 0
mov esi, 0x4a3a40
je 0x42f595
mov esi, 0x4a3a38
push 1
call fcn.00412110
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.004124d0
mov ecx, dword [0x4c86a4]
mov edx, dword [0x4c86a8]
push eax
mov eax, dword [0x4c86ac]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4ca1bc]
push ecx
mov ecx, dword [0x4ca1c0]
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.00474960
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.00409210
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f622
sub eax, edx
sar eax, 1
cmp dword [0x4c8f4c], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x42f647
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.00474960
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 0x42f56f
Function at 0x435cc0
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.00442d10
mov edi, eax
test edi, edi
je 0x435cee
mov esi, dword [esp + 0x1c]
push edi
call fcn.00479180
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x435d39
mov ecx, dword [0x4c4a14]
test byte [ecx + 0x100], 1
jne 0x435d1c
mov edx, dword [0x4c8d38]
push 1
push 0
push 0xffffffffffffffff
push 0x4a420c
push edx
call fcn.00477800
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x4a1868
push 0
push 0x4a420c
call fcn.0042e450
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 0x435d71
cmp ebp, dword [0x4c96c0]
je 0x435d71
mov esi, edi
call fcn.004796c0
test al, al
jne 0x435d71
mov eax, dword [0x4c96c0]
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 0x435daf
mov edx, dword [0x4c8d38]
push 1
push 0
push 0xffffffffffffffff
push 0x4a18e4
push edx
call fcn.00477800
mov eax, dword [0x4c4a14]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x435daf
push 1
push eax
call fcn.004013d0
add esp, 8
test bl, bl
je 0x435dc3
mov ecx, dword [0x4c96c0]
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 0x436b00
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.004308f0
mov ebx, eax
test ebx, ebx
jne 0x436b33
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042e6c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x436b3f
jmp dword [eax*4 + 0x436d38]
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x436b5a
push eax
call fcn.00454840
add esp, 4
jmp 0x436b60
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4c8d38]
call fcn.004010e0
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.00454840
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x436bd8
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x436bd8
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 [0x4c8d38]
push 0x18
push 0
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4c8d38]
push 1
push 0
push 0xffffffffffffffff
push 0x4a18e4
push ecx
call fcn.00477800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx edx, word [edi]
push edx
call fcn.00490088
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x436c16.67
movzx eax, byte [eax + 0x436d68]
jmp dword [eax*4 + 0x436d4c]
mov esi, 0x40
jmp 0x436c45
mov esi, 0x4000
jmp 0x436c45
mov esi, 0x20
jmp 0x436c45
mov esi, 0x8000
jmp 0x436c45
mov esi, 0x80
jmp 0x436c45
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x436c59
push eax
call fcn.00454840
add esp, 4
jmp 0x436c5f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x436bd8
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x436bd8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x436bac
mov edx, dword [0x4c8d38]
push 1
push 0
push 0xffffffffffffffff
push 0x4a18e4
push edx
call fcn.00477800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [edi], 0
je 0x436cd9
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.00413b60
fmul qword [0x4bea68]
call fcn.0049c810
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x436ce0
mov byte [esp + 0x13], 1
xor edi, edi
mov eax, dword [ebp + 0xc]
push eax
call fcn.00454840
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x436cfd
test esi, esi
jne 0x436bbb
jmp 0x436d01
test esi, esi
je case.0x436c16.67
cmp byte [esp + 0x13], 0
jne 0x436d1f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x436bbb
push 1
push 0x64
call fcn.004013d0
add esp, 8
jmp 0x436ce0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4375a0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4c8480]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00442d10
mov edi, eax
test edi, edi
je 0x4375c6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [eax + 1]
jmp 0x4375cb
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00477800
cmp eax, 1
je 0x4375e9
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x43767b
push ebp
push 0
push 1
call fcn.00401220
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x437612
mov edi, dword [esi + 0xc]
jmp 0x437614
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43762c
test byte [edi + 0x15], 8
je 0x437627
mov eax, edi
call fcn.00401160
lea eax, [edi + 0xc]
jmp 0x437631
mov eax, 0x4ca418
lea edx, [ebp + ebp]
mov dword [eax], edx
cmp byte [esi + 0x17], 0
jne 0x437642
mov edi, dword [esi + 0xc]
jmp 0x437644
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43765c
test byte [edi + 0x15], 8
je 0x437657
mov eax, edi
call fcn.00401160
lea eax, [edi + 0xc]
jmp 0x437661
mov eax, 0x4ca418
test dword [eax], 0xfffffffe
jne 0x4376b8
push 0
push 1
mov ecx, esi
call fcn.00401220
xor ecx, ecx
mov word [eax], cx
jmp 0x4376b8
push 0
push 1
call fcn.00401220
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], dl
jne 0x437693
mov edi, dword [esi + 0xc]
jmp 0x437695
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4376ad
test byte [edi + 0x15], 8
je 0x4376a8
mov eax, edi
call fcn.00401160
lea eax, [edi + 0xc]
jmp 0x4376b2
mov eax, 0x4ca418
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x4376c1
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4376e1
cmp dword [0x4ca25c], 0
je 0x4376e1
mov ecx, 0x4ca250
call fcn.004042d0
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 0x438480
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004996e0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
mov esi, dword [0x4c8480]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x438534
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00477800
test eax, eax
jne 0x4384d2
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401220
push eax
push ebx
call ebp
test eax, eax
jne 0x4384f5
push eax
push 1
mov ecx, esi
call fcn.00401220
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], 0
jne 0x4384fe
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x438521
cmp dword [0x4ca25c], 0
je 0x438521
mov ecx, 0x4ca250
call fcn.004042d0
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 0x438541
mov eax, 0x4a1868
push 1
push 0
push edi
push eax
push esi
call fcn.00477800
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x43a820
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 [0x4ca1ec]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.00474960
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x43a877
lea edx, [edi + 2]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43a877
mov edx, dword [esp + 0x14]
mov dword [edi + esi*2], 0x22
mov ecx, dword [0x4ca1ec]
pop edi
pop esi
mov dword [edx], ecx
mov al, 1
pop ebp
ret
push ebp
call fcn.0043ae70
add esp, 4
test eax, eax
je 0x43a8c7
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.00474960
mov esi, eax
lea edx, [esi + 1]
add esp, 0xc
cmp edx, 0x800
jg 0x43a8c7
lea eax, [edi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43a8c7
mov eax, dword [esp + 0x14]
mov dword [edi + esi*2], 0x22
pop edi
mov dword [eax], ebp
pop esi
mov al, 1
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebp
ret

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

Disassembly:
mov eax, 0x2214
call fcn.004996e0
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
lea ebp, [esp + 0x1224]
push ecx
mov eax, ebp
mov dword [esp + 0x18], 0x4a1868
call fcn.0043a820
add esp, 8
test al, al
jne 0x43a90e
pop edi
pop esi
pop ebp
add esp, 0x2214
ret
cmp byte [esp + 0x2224], 0
je 0x43a97e
mov edx, dword [esp + 0x14]
push 0x4aaea8
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x22c]
call fcn.00474960
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43a97e
lea ecx, [esp + 0x222]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43a97e
mov edx, 0x22
xor eax, eax
lea ecx, [esp + 0x1220]
mov word [esp + esi*2 + 0x220], dx
mov word [esp + esi*2 + 0x222], ax
mov ebp, edi
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0x4c9718
mov edx, ebp
call fcn.0042f680
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x2214
ret
Function at 0x43ae70
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 0x43aeb0
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43af15
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 0x43af43
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43af43
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43af23
test eax, eax
je 0x43af15
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43af0d
sub ecx, 2
dec eax
jne 0x43af01
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43af4c
test edi, edi
jne 0x43af4c
mov edi, 0x100
jmp 0x43ae88
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43af3a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43af15
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43af11
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43af15
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43af6f
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 0x43af60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret