joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c80
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
movzx edi, bl
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
movsx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp ebp, 1
je 0x412cac
cmp ebp, 2
jne 0x412d82
cmp esi, ebp
je 0x412d82
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
mov ecx, 0x8000
test cx, ax
je 0x412cdd
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.00410f50
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 2
call fcn.00410f50
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4af260]
sete al
mov byte [esp + 0x14], al
test al, al
je 0x412d33
push 1
push 0xffffffffffffffff
mov dword [0x4aa8fc], 0
call fcn.00401420
add esp, 8
mov dword [0x4aa8fc], 1
cmp bl, 0x14
jne 0x412d82
cmp ebp, 2
jne 0x412d82
push 0x14
call edi
test al, 1
je 0x412d82
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push ebp
call fcn.00410f50
add esp, 0x18
cmp byte [esp + 0x14], 0
je 0x412d82
push 1
push 0xffffffffffffffff
mov dword [0x4aa8fc], 0
call fcn.00401420
add esp, 8
mov dword [0x4aa8fc], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x413440
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4ae408], 0
je 0x413458
cmp byte [esp + 8], 0
jne 0x413458
mov al, byte [0x4ae2d5]
pop ecx
ret
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x41347a
mov byte [esp + 7], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x413490
or byte [esp + 7], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4134a6
or byte [esp + 7], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4134bc
or byte [esp + 7], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4134d2
or byte [esp + 7], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x4134e8
or byte [esp + 7], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x4134fb
or byte [esp + 7], 0x40
push 0x5c
call esi
mov edx, 0x8000
pop esi
test dx, ax
je 0x41350f
or byte [esp + 3], 0x80
cmp dword [0x4ae408], 0
je 0x41358f
push ebx
mov bl, byte [esp + 7]
not bl
and bl, byte [0x4ae2d5]
cmp byte [0x4ae2fa], 0
je 0x413548
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4ad1c0]
cmp eax, 0x14
jae 0x413548
mov al, byte [0x4ae2fa]
not al
and bl, al
test bl, bl
je 0x41358e
mov cl, byte [0x4ae2d7]
mov al, bl
not al
and byte [0x4ae2d5], al
and byte [0x4ae2d6], al
and cl, al
mov al, cl
mov byte [0x4ae2d7], cl
mov ecx, 0x4ae300
call fcn.004135a0
mov eax, dword [0x4ad1e0]
test eax, eax
je 0x41358e
test byte [eax + 8], bl
je 0x41358e
mov dword [0x4ad1e0], 0
pop ebx
mov al, byte [esp + 3]
pop ecx
ret
Function at 0x4145e0
Capabilities:
Log keystrokes

Disassembly:
movzx ecx, bx
mov eax, ecx
cmp eax, 0x11c
jg 0x41463d
je 0x41463a
sub eax, 0x1d
cmp eax, 0x36
ja case.0x41464e.286
movzx eax, byte [eax + 0x4146e8]
jmp dword [eax*4 + 0x41469c]
mov al, 0xa0
ret
mov al, 0xa2
ret
mov al, 0xa4
ret
mov al, 0x6a
ret
mov al, 0x6d
ret
mov al, 0x6b
ret
mov al, 0x2e
ret
mov al, 0xc
ret
mov al, 0x2d
ret
mov al, 0x26
ret
mov al, 0x28
ret
mov al, 0x25
ret
mov al, 0x27
ret
mov al, 0x24
ret
mov al, 0x23
ret
mov al, 0x21
ret
mov al, 0x22
ret
mov al, 0x13
ret
mov al, 0xd
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x41464e.286
movzx edx, byte [eax + 0x414748]
jmp dword [edx*4 + 0x414720]
mov al, 0xa1
ret
mov al, 0xa3
ret
mov al, 0xa5
ret
mov al, 0x5b
ret
mov al, 0x5c
ret
mov al, 0x90
ret
mov al, 0x6f
ret
mov al, 0x5d
ret
mov al, 0x2c
ret
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
test ebx, 0x100
je 0x414690
movzx eax, cl
push 1
or eax, 0xe000
push eax
call esi
test eax, eax
jne 0x414698
movzx ecx, bl
push 1
push ecx
call esi
pop esi
ret

Function at 0x414790
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4ad218], eax
mov edx, 1
mov eax, 0x4ad218
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4adbd4
jl 0x4147a0
mov dword [0x4aa8e8], 1
mov dword [0x4aebb0], 1
pop edi
ret

Function at 0x4147e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4aebb0], 0
push esi
mov esi, 0x4ad218
jne 0x4147fa
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
call fcn.00414790
mov dword [0x4aa8e8], 0x270
mov dword [0x4ad214], esi
mov ecx, 0xe3
nop
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi + 0x634]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x414810
mov ecx, 0x18c
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi - 0x38c]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x414845
mov ecx, dword [esi]
mov eax, dword [0x4ad218]
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, dword [esi]
and al, 1
movzx edx, al
shr ecx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
ret

Function at 0x4148b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4aa8e8]
jne 0x4148bd
call fcn.004147e0
mov eax, dword [0x4ad214]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4ad214], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x4178a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4aa908]
add eax, 4
imul eax, eax, 0xe8
push ebx
push ebp
push esi
push edi
push eax
call fcn.00488777
add esp, 4
mov dword [0x4acea0], eax
test eax, eax
jne 0x4178c9
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4aa988]
push 0x403c40
mov edi, eax
push 0x4ef6d80
mov ecx, 0x3a
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4ae2d8]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0xe
push ecx
mov dword [0x4aa988], eax
call edi
cmp dword [0x4af278], 0
jne 0x41790b
mov ebx, 1
jmp 0x4179bb
mov edx, dword [0x4aa988]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov byte [edx + 0xcc], 0
call esi
cmp byte [0x4ae436], 0
mov ecx, dword [0x4aa988]
mov dword [ecx + 0xbc], eax
mov dword [ecx + 0xc0], 0x64
jne 0x41795b
mov eax, dword [0x4ae2d8]
push 0x403aa0
push 0x64
push 0xb
push eax
call edi
test eax, eax
setne cl
mov byte [0x4ae436], cl
mov byte [0x4af895], 1
call esi
mov ecx, dword [0x4af278]
push 0
mov esi, 1
add dword [0x4ae44c], esi
push 0
push esi
mov dword [0x4af8b4], eax
mov dword [0x4af8b0], eax
call fcn.00426660
sub dword [0x4ae44c], esi
cmp byte [0x4ae436], 0
mov ebx, eax
je 0x4179b4
mov edx, dword [0x4ae2d8]
push 0xb
push edx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x4179b4
mov byte [0x4ae436], 0
mov byte [0x4af895], 0
mov ebp, dword [0x4aa988]
cmp dword [ebp + 0xe4], 0
je 0x417a15
mov eax, dword [ebp + 0xe4]
cmp dword [eax + 8], 6
jne 0x4179e0
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0xe4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4179f6
push eax
call fcn.004883b8
add esp, 4
mov ecx, dword [ebp + 0xe4]
push ecx
call fcn.00488118
mov dword [ebp + 0xe4], 0
mov ebp, dword [0x4aa988]
add esp, 4
mov eax, ebp
call fcn.00401000
mov edx, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
mov byte [ebp + 0xcc], 1
push 0x49b8e8
mov ecx, 0x3a
mov esi, ebp
mov edi, 0x4acf90
rep movsd dword es:[edi], dword [esi]
push edx
mov byte [ebp + 0xcc], 1
mov dword [ebp + 0xc0], 0
mov word [ebp + 0xcd], 1
mov dword [ebp + 0x2c], CreateStatusWindowA
call fcn.004780a0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x417aa0
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 [0x4afab7], bl
jne 0x417c3c
cmp byte [eax + 0x61c], bl
je 0x417c3c
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4aeae0]
push ebx
push 1
mov dword [0x4b0508], eax
call fcn.00401270
push 0x7f
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0048adb0
mov eax, dword [0x4aa988]
inc dword [0x4ae44c]
add eax, 0xe8
mov edi, eax
mov byte [esp + 0xbb], bl
mov ecx, 0x3a
mov esi, 0x4acf90
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4aa988], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4af278
call fcn.004177a0
mov dword [0x4af8a0], ebx
mov dword [0x4af8a4], ebx
cmp dword [0x4ae480], ebx
je 0x417b62
mov eax, dword [0x4ababc]
cmp eax, ebx
je 0x417b56
mov eax, dword [eax]
cmp eax, ebx
jne 0x417b5b
mov eax, 0x49b8cd
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x5c8]
mov edi, dword [0x4aa8fc]
mov dword [0x4aa8fc], ebx
mov byte [0x4afab7], 1
mov byte [esp + 0xf], 1
mov byte [0x4abe78], bl
cmp ecx, ebx
je 0x417ba2
call fcn.004012e0
test eax, eax
je 0x417ba2
cmp byte [0x4abe78], bl
jne 0x417ba2
mov byte [esp + 0xf], bl
mov byte [0x4abe78], 1
cmp byte [esp + 0xf], bl
je 0x417bfb
mov dword [esp + 0x18], ebx
call fcn.00444000
mov dword [esp + 0x10], eax
mov eax, dword [0x4b0508]
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.00470350
xor ebx, ebx
cmp eax, 3
jne 0x417bfb
mov byte [esp + 0xf], bl
mov byte [0x4afab7], bl
cmp byte [esp + 0xf], bl
jne 0x417c2e
cmp dword [ebp + 0xc], 0xffffffff
jle 0x417c2e
lea ecx, [esp + 0x30]
push ecx
call fcn.00403910
add esp, 4
mov dword [0x4aa8fc], 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.00417c80
cmp byte [0x4abe78], bl
jne 0x417c71
cmp ecx, 6
jne 0x417c71
mov ecx, dword [0x4ae270]
cmp byte [ecx], bl
je 0x417c5c
mov edx, dword [ebp + 0x10]
mov dword [0x4b0508], edx
pop edi
pop esi
mov byte [0x4abe78], 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.00417c80
int3
Function at 0x418190
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_FindResourceA]
mov esi, eax
test esi, esi
je 0x41823a
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41823a
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x41823a
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x41823a
push 0x44
call fcn.004897e5
add esp, 4
test eax, eax
je 0x418204
mov esi, eax
call fcn.00416970
mov ecx, eax
jmp 0x418206
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.00472990
mov ecx, dword [0x4af878]
inc dword [0x4af1f8]
mov dword [0x4ae268], 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, 0x4af278
call fcn.0042fd40
pop esi
add esp, 0x10
ret 8
Function at 0x430290
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2004
call fcn.004946e0
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
jne 0x4302b6
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x374]
test ebx, ebx
je 0x4302c0
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x4302cd
mov ecx, dword [eax + 0x170]
movzx eax, word [eax + 0x174]
cmp dword [ebp + 0xc], 0
je 0x43038b
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx*4 + 0x4ae268]
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.00474f40
mov esi, dword [ebp + 0x14]
add esp, 0x10
cmp byte [esi], 0
lea edi, [esp + eax + 0x10]
je 0x430323
push esi
lea esi, [esp + 0x2014]
push str._____Specifically:__s_n
sub esi, edi
call fcn.00474f40
mov esi, dword [ebp + 0x14]
add esp, 8
mov edi, dword [ebp + 0xc]
cmp edi, 3
jne 0x430349
mov eax, dword [ebp + 8]
push 0x49e264
push 0
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0042f910
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 0x43038b
test ebx, ebx
jne 0x43036a
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x374]
test ebx, ebx
je 0x430381
mov edx, dword [ebp + 0x10]
push esi
push 1
push edx
mov ecx, ebx
call fcn.0042faa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
push esi
push eax
call fcn.0042fd40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4374c0
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.00431b50
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4374f5
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042faa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x4374ff
jmp dword [eax*4 + 0x4376ec]
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x437515
call fcn.00454260
jmp 0x43751b
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4aeae0]
call fcn.00401130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.00454260
mov ebx, eax
test ebx, ebx
je 0x43758f
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x43758f
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 [0x4aeae0]
push 0x18
push 0
push esi
call fcn.00401130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8e8
push eax
call fcn.004780a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [ebx]
push ecx
call fcn.0048a69b
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4375c9.67
movzx edx, byte [eax + 0x43771c]
jmp dword [edx*4 + 0x437700]
mov esi, 0x40
jmp 0x4375f8
mov esi, 0x4000
jmp 0x4375f8
mov esi, 0x20
jmp 0x4375f8
mov esi, 0x8000
jmp 0x4375f8
mov esi, 0x80
jmp 0x4375f8
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x437607
call fcn.00454260
jmp 0x43760d
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x43758f
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x43758f
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
jmp 0x437563
mov ecx, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8e8
push ecx
call fcn.004780a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx], 0
je 0x437686
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.00414da0
fmul qword [0x4a3f68]
call fcn.004969b0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x437690
mov byte [esp + 0xf], 1
xor edi, edi
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
call fcn.00454260
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x4376ab
test esi, esi
jne 0x437572
jmp 0x4376b3
test esi, esi
je 0x43758f
cmp byte [esp + 0xf], 0
jne 0x4376d1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x437572
push 1
push 0x64
call fcn.00401420
add esp, 8
jmp 0x437690
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437f20
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4ae218]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00442f90
mov edi, eax
test edi, edi
je 0x437f46
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x437f4b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.004780a0
cmp eax, 1
je 0x437f69
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x437fee
push ebp
push 0
push 1
call fcn.00401270
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x437f8e
mov edi, dword [esi + 0xc]
jmp 0x437f90
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x437fa8
test byte [edi + 0x15], 8
je 0x437fa3
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x437fad
mov eax, 0x4afab0
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x437fba
mov edi, dword [esi + 0xc]
jmp 0x437fbc
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x437fd4
test byte [edi + 0x15], 8
je 0x437fcf
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x437fd9
mov eax, 0x4afab0
cmp dword [eax], 0
jne 0x43802a
push 0
push 1
mov ecx, esi
call fcn.00401270
mov byte [eax], 0
jmp 0x43802a
push 0
push 1
call fcn.00401270
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x438005
mov edi, dword [esi + 0xc]
jmp 0x438007
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43801f
test byte [edi + 0x15], 8
je 0x43801a
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x438024
mov eax, 0x4afab0
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x438033
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x438055
cmp dword [0x4af904], 0
je 0x438055
push 1
mov ecx, 0x4af8f8
call fcn.004048f0
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 0x438de0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004946e0
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4ae218]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x438e94
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.004780a0
test eax, eax
jne 0x438e32
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401270
push eax
push ebx
call ebp
test eax, eax
jne 0x438e53
push eax
push 1
mov ecx, esi
call fcn.00401270
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x438e5c
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x438e81
cmp dword [0x4af904], 0
je 0x438e81
push 1
mov ecx, 0x4af8f8
call fcn.004048f0
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 0x438ea1
mov eax, 0x49b8cd
push 1
push 0
push edi
push eax
push esi
call fcn.004780a0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x43b180
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, dword [0x4af888]
sub esp, 0x108
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
push edi
push eax
call ebp
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
jne 0x43b1d1
lea ecx, [esp + 0xc]
push ecx
call fcn.0043b6b0
add esp, 4
test eax, eax
je 0x43b1c5
lea edx, [esp + 0xc]
push edx
call ebp
push esi
call edi
cmp eax, 0xffffffff
jne 0x43b1d1
xor al, al
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x49b8cd
push 0x4af278
mov edx, esi
call fcn.004309c0
test eax, eax
mov eax, dword [0x4ababc]
setne bl
test eax, eax
je 0x43b204
mov eax, dword [eax]
test eax, eax
jne 0x43b209
mov eax, 0x49b8cd
push eax
call ebp
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x108
ret

Function at 0x43b6b0
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 0x43b6e8
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43b763
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 0x43b6e0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43b6e0
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x43b747
cmp eax, ebx
je 0x43b763
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x43b741
dec eax
jne 0x43b738
mov dword [esp + 0x10], eax
jmp 0x43b75f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43b75b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43b763
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x43b771
cmp edi, ebx
jne 0x43b771
mov edi, 0x100
jmp 0x43b6c4
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43b78e
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 0x43b784
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret