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

Disassembly:
mov eax, dword [0x4c6958]
add eax, 4
imul eax, eax, 0x108
push ebx
push ebp
push esi
push edi
push eax
call fcn.004903c4
xor ebx, ebx
add esp, 4
mov dword [0x4c9020], eax
cmp eax, ebx
jne 0x417e9d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4c6a44]
push 0x403bf0
mov edi, eax
push 0x4ef6d80
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4ca4ec]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0xe
push ecx
mov dword [0x4c6a44], eax
call edi
cmp dword [0x4cb490], ebx
jne 0x417ede
mov ebp, 1
jmp 0x417f87
mov edx, dword [0x4c6a44]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [edx + 0xec], bl
call esi
mov ecx, dword [0x4c6a44]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], 0x64
cmp byte [0x4ca649], bl
jne 0x417f2c
mov eax, dword [0x4ca4ec]
push 0x403a60
push 0x64
push 0xb
push eax
call edi
test eax, eax
setne cl
mov byte [0x4ca649], cl
mov byte [0x4cbf75], 1
call esi
mov ecx, dword [0x4cb490]
push ebx
mov esi, 1
add dword [0x4ca660], esi
push ebx
push esi
mov dword [0x4cbf94], eax
mov dword [0x4cbf90], eax
call fcn.00427340
sub dword [0x4ca660], esi
mov ebp, eax
cmp byte [0x4ca649], bl
je 0x417f81
mov edx, dword [0x4ca4ec]
push 0xb
push edx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x417f81
mov byte [0x4ca649], bl
mov byte [0x4cbf75], bl
mov eax, dword [0x4c6a44]
cmp dword [eax + 0x104], ebx
lea esi, [eax + 0x104]
je 0x417fd0
mov eax, dword [esi]
cmp dword [eax + 8], 6
jne 0x417fac
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 0x417fbe
push eax
call fcn.00490c81
add esp, 4
mov ecx, dword [esi]
push ecx
call fcn.00490c76
mov eax, dword [0x4c6a44]
add esp, 4
mov dword [esi], ebx
mov edx, dword [0x4cacf4]
push 1
push ebx
push 0xffffffffffffffff
mov byte [eax + 0xec], 1
mov esi, eax
push 0x4a3920
mov dword [eax + 0xb4], ebx
mov dword [eax + 0xb8], ebx
mov dword [eax + 0xbc], ebx
mov dword [eax + 0xc4], ebx
mov dword [eax + 0xc8], ebx
mov byte [eax + 0xf8], bl
mov dword [eax + 0x28], ebx
mov dword [eax + 0x4c], ebx
mov byte [eax + 0xe8], 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 + 0x104], ebx
mov dword [eax + 0x100], ebx
mov ecx, 0x42
mov edi, 0x4c9130
rep movsd dword es:[edi], dword [esi]
push edx
mov byte [eax + 0xec], 1
mov dword [eax + 0xe0], ebx
mov word [eax + 0xed], 1
mov dword [eax + 0x2c], SysStringLen
call fcn.00479b00
mov eax, dword [0x4c7b80]
cmp word [eax], bx
jne 0x4180a7
cmp dword [0x4cad64], ebx
jne 0x4180a7
cmp dword [0x4ca61c], ebx
jne 0x4180a7
cmp dword [0x4ca620], ebx
jne 0x4180a7
cmp byte [0x4ca629], bl
jne 0x4180a7
neg ebp
sbb ebp, ebp
and ebp, 5
push ebx
inc ebp
push ebp
push 0x4cb490
call fcn.004180f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4180f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub esp, 0x124
push ebx
xor ebx, ebx
push esi
push edi
mov dword [eax + 0xa9c], ecx
cmp byte [0x4cc1a3], bl
jne 0x41828f
cmp byte [eax + 0xae4], bl
je 0x41828f
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4cacf4]
push ebx
push 1
mov dword [0x4ccd38], eax
call fcn.00401220
push 0x7f
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00492ef4
mov eax, dword [0x4c6a44]
inc dword [0x4ca660]
add eax, 0x108
xor edx, edx
mov edi, eax
mov word [esp + 0x13a], dx
mov ecx, 0x42
mov esi, 0x4c9130
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4c6a44], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4cb490
call fcn.00417d70
mov dword [0x4cbf80], ebx
mov dword [0x4cbf84], ebx
cmp dword [0x4ca694], ebx
je 0x4181b5
mov eax, dword [0x4c7b78]
cmp eax, ebx
je 0x4181a9
mov eax, dword [eax]
cmp eax, ebx
jne 0x4181ae
mov eax, 0x4a3910
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xa90]
mov edi, dword [0x4c694c]
mov dword [0x4c694c], ebx
mov byte [0x4cc1a3], 1
mov byte [esp + 0xf], 1
mov byte [0x4c7f08], bl
cmp ecx, ebx
je 0x4181f5
call fcn.00401290
test eax, eax
je 0x4181f5
cmp byte [0x4c7f08], bl
jne 0x4181f5
mov byte [esp + 0xf], bl
mov byte [0x4c7f08], 1
cmp byte [esp + 0xf], bl
je 0x41824e
mov dword [esp + 0x18], ebx
call fcn.00445cf0
mov dword [esp + 0x10], eax
mov eax, dword [0x4ccd38]
cdq
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esi + 0xa90], ebx
lea ecx, [esp + 0x10]
sete al
lea ebx, [esi + 0xa5c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], edx
push eax
push 2
push ecx
call fcn.00471c00
xor ebx, ebx
cmp eax, 3
jne 0x41824e
mov byte [esp + 0xf], bl
mov byte [0x4cc1a3], bl
cmp byte [esp + 0xf], bl
jne 0x418281
cmp dword [ebp + 0xc], 0xffffffff
jle 0x418281
lea edx, [esp + 0x30]
push edx
call fcn.004038d0
add esp, 4
mov dword [0x4c694c], edi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call fcn.004182d0
cmp byte [0x4c7f08], bl
jne 0x4182c4
cmp ecx, 6
jne 0x4182c4
mov edx, dword [0x4ca480]
cmp word [edx], bx
je 0x4182af
mov eax, dword [ebp + 0x10]
mov dword [0x4ccd38], eax
pop edi
pop esi
mov byte [0x4c7f08], 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.004182d0
int3
Function at 0x418800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push 0xa
push 0x4a86c4
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4188aa
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4188aa
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4188aa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x4188aa
push 0x44
call fcn.00491798
add esp, 4
test eax, eax
je 0x418874
mov esi, eax
call fcn.00417020
mov ecx, eax
jmp 0x418876
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.00474460
mov ecx, dword [edi + 0xac8]
inc dword [0x4cb40c]
mov dword [0x4c942c], ecx
mov eax, 3
pop esi
add esp, 0x10
ret 8
mov edx, dword [esp + 0x1c]
push edx
push str.Could_not_extract_script_from_EXE.
mov ecx, edi
call fcn.00430b20
pop esi
add esp, 0x10
ret 8
Function at 0x41ebb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4c6968]
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.00409d60
test eax, eax
je 0x41ec39
cmp eax, ebp
jbe 0x41ec53
sub eax, 2
jmp 0x41ec53
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ec40
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41ec74
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41ec6d
cmp eax, 9
jne 0x41ec74
sub edi, 2
cmp edi, ebp
ja 0x41ec60
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41eca5
cmp byte [esp + 0x4c], 0
je 0x41ec99
mov ecx, dword [esp + 0x40]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.00430b20
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.00492ef4
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 0x4310b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.0049b620
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x4311b4
test ebx, ebx
jne 0x4310e0
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x634]
test ebx, ebx
je 0x4310ea
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x4310f7
mov ecx, dword [eax + 0x270]
movzx eax, word [eax + 0x274]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx*4 + 0x4c942c]
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.004769b0
mov esi, dword [ebp + 0x14]
add esp, 0x10
cmp word [esi], 0
lea edi, [esp + eax*2 + 0x10]
je 0x43114c
lea eax, [esp + 0x10]
mov edx, edi
push esi
sub edx, eax
sar edx, 1
mov esi, 0x2000
push str._____Specifically:__s_n
sub esi, edx
call fcn.004769b0
mov esi, dword [ebp + 0x14]
add esp, 8
mov edi, dword [ebp + 0xc]
cmp edi, 3
jne 0x431172
mov edx, dword [ebp + 8]
push 0x4a864c
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004306e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 2
jne 0x4311b4
test ebx, ebx
jne 0x431193
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x634]
test ebx, ebx
je 0x4311aa
mov ecx, dword [ebp + 0x10]
push esi
push 1
push ecx
mov ecx, ebx
call fcn.00430870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
push esi
push edx
call fcn.00430b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4315f0
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 0x431617
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x431621
xor edx, edx
mov word [esp + 0x120], dx
mov esi, dword [0x4cbf30]
xor eax, eax
mov word [esp + 0x20], ax
test esi, esi
je 0x4316d8
cmp byte [esi + 0x12], 0
je 0x431679
mov ecx, dword [esi]
push ecx
call fcn.00471b00
add esp, 4
sub eax, 0
je 0x43165d
dec eax
je 0x431656
mov eax, str.Object
jmp 0x431662
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x431662
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4abbb8
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.004769f0
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x431636
cmp word [esp + 0x20], si
je 0x4316d8
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431690
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x4316c6
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a7f6c
push edi
call fcn.00492ef4
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x4316d8
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x4316d8
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4c9020]
cmp byte [eax + 0xf8], 0
je 0x4316f7
cmp byte [0x4cbf75], 0
mov dword [esp + 0x14], 1
je 0x4316ff
mov dword [esp + 0x14], 0
mov eax, dword [0x4ca660]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x43181d
mov dword [esp + 0x18], 0x4a3910
xor ebp, ebp
cmp dword [0x4ca620], 0
mov edi, 0x4a5b58
je 0x431732
mov edi, 0x4a5b50
cmp dword [0x4ca61c], 0
mov esi, 0x4a5b58
je 0x431745
mov esi, 0x4a5b50
push 1
call fcn.004138f0
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00413ce0
mov ecx, dword [0x4ca65c]
mov edx, dword [0x4ca660]
push eax
mov eax, dword [0x4ca664]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4cbf38]
push ecx
mov ecx, dword [0x4cbf3c]
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.004769b0
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.00409a50
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4317d2
sub eax, edx
sar eax, 1
cmp dword [0x4cad04], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x4317f7
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.004769b0
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 0x43171f
Function at 0x437c50
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.00444b50
mov edi, eax
test edi, edi
je 0x437c7e
mov esi, dword [esp + 0x1c]
push edi
call fcn.0047b4e0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x437cc9
mov ecx, dword [0x4c6a44]
test byte [ecx + 0x100], 1
jne 0x437cac
mov edx, dword [0x4cacf4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a6324
push edx
call fcn.00479b00
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x4a3910
push 0
push 0x4a6324
call fcn.00430470
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 0x437d01
cmp ebp, dword [0x4cb478]
je 0x437d01
mov esi, edi
call fcn.0047ba20
test al, al
jne 0x437d01
mov eax, dword [0x4cb478]
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 0x437d3f
mov edx, dword [0x4cacf4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a3920
push edx
call fcn.00479b00
mov eax, dword [0x4c6a44]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x437d3f
push 1
push eax
call fcn.004013d0
add esp, 8
test bl, bl
je 0x437d53
mov ecx, dword [0x4cb478]
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 0x438a90
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.004329f0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x438ac5
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.00430870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x438acf
jmp dword [eax*4 + 0x438cc0]
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x438ae6
call fcn.004566d0
jmp 0x438aec
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4cacf4]
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.004566d0
mov ebx, eax
test ebx, ebx
je 0x438b60
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x438b60
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 [0x4cacf4]
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 eax, dword [0x4cacf4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a3920
push eax
call fcn.00479b00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx ecx, word [ebx]
push ecx
call fcn.004923bd
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x438b9d.67
movzx edx, byte [eax + 0x438cf0]
jmp dword [edx*4 + 0x438cd4]
mov esi, 0x40
jmp 0x438bcc
mov esi, 0x4000
jmp 0x438bcc
mov esi, 0x20
jmp 0x438bcc
mov esi, 0x8000
jmp 0x438bcc
mov esi, 0x80
jmp 0x438bcc
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x438bdc
call fcn.004566d0
jmp 0x438be2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x438b60
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x438b60
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x438b34
mov ecx, dword [0x4cacf4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a3920
push ecx
call fcn.00479b00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [ebx], 0
je 0x438c5c
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.004153b0
fmul qword [0x4c0e58]
call fcn.0049ea30
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x438c63
mov byte [esp + 0xf], 1
xor edi, edi
mov ebx, dword [ebp + 0xc]
call fcn.004566d0
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x438c7e
test esi, esi
jne 0x438b43
jmp 0x438c86
test esi, esi
je 0x438b60
cmp byte [esp + 0xf], 0
jne 0x438ca4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x438b43
push 1
push 0x64
call fcn.004013d0
add esp, 8
jmp 0x438c63
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x439530
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4ca430]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00444b50
mov edi, eax
test edi, edi
je 0x439556
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [eax + 1]
jmp 0x43955b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00479b00
cmp eax, 1
je 0x439579
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x43960b
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 0x4395a2
mov edi, dword [esi + 0xc]
jmp 0x4395a4
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4395bc
test byte [edi + 0x15], 8
je 0x4395b7
mov eax, edi
call fcn.00401160
lea eax, [edi + 0xc]
jmp 0x4395c1
mov eax, 0x4cc19c
lea edx, [ebp + ebp]
mov dword [eax], edx
cmp byte [esi + 0x17], 0
jne 0x4395d2
mov edi, dword [esi + 0xc]
jmp 0x4395d4
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4395ec
test byte [edi + 0x15], 8
je 0x4395e7
mov eax, edi
call fcn.00401160
lea eax, [edi + 0xc]
jmp 0x4395f1
mov eax, 0x4cc19c
test dword [eax], 0xfffffffe
jne 0x439648
push 0
push 1
mov ecx, esi
call fcn.00401220
xor ecx, ecx
mov word [eax], cx
jmp 0x439648
push 0
push 1
call fcn.00401220
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], dl
jne 0x439623
mov edi, dword [esi + 0xc]
jmp 0x439625
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43963d
test byte [edi + 0x15], 8
je 0x439638
mov eax, edi
call fcn.00401160
lea eax, [edi + 0xc]
jmp 0x439642
mov eax, 0x4cc19c
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x439651
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x439671
cmp dword [0x4cbfe4], 0
je 0x439671
mov ecx, 0x4cbfd8
call fcn.00404740
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 0x43a420
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.0049b620
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
mov esi, dword [0x4ca430]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x43a4d4
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00479b00
test eax, eax
jne 0x43a472
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 0x43a495
push eax
push 1
mov ecx, esi
call fcn.00401220
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], 0
jne 0x43a49e
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x43a4c1
cmp dword [0x4cbfe4], 0
je 0x43a4c1
mov ecx, 0x4cbfd8
call fcn.00404740
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 0x43a4e1
mov eax, 0x4a3910
push 1
push 0
push edi
push eax
push esi
call fcn.00479b00
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x43c800
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, dword [0x4cbf68]
sub esp, 0x210
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
push eax
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
jne 0x43c851
lea ecx, [esp + 0x10]
push ecx
call fcn.0043cd40
add esp, 4
test eax, eax
je 0x43c845
lea edx, [esp + 0x10]
push edx
call ebp
push esi
call edi
cmp eax, 0xffffffff
jne 0x43c851
xor al, al
pop edi
pop ebp
pop ebx
add esp, 0x210
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x4a3910
push 0x4cb490
mov edx, esi
call fcn.00431830
test eax, eax
mov eax, dword [0x4c7b78]
setne bl
test eax, eax
je 0x43c884
mov eax, dword [eax]
test eax, eax
jne 0x43c889
mov eax, 0x4a3910
push eax
call ebp
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x210
ret

Function at 0x43cd40
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 0x43cd80
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43cde5
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 0x43ce13
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43ce13
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43cdf3
test eax, eax
je 0x43cde5
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43cddd
sub ecx, 2
dec eax
jne 0x43cdd1
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43ce1c
test edi, edi
jne 0x43ce1c
mov edi, 0x100
jmp 0x43cd58
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43ce0a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43cde5
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43cde1
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43cde5
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43ce3f
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 0x43ce30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret