joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ee40
Capabilities:
Check if file exists
Set current directory

Disassembly:
cmp dword [esp + 8], 0xfffffffe
push ebp
mov ebp, dword [esp + 8]
push esi
je 0x41ef45
mov eax, dword [0x4d6b14]
xor esi, esi
mov byte [eax + 0xf8], 0
mov dword [0x4d6a1c], 0
cmp dword [ebp + 0x2c], esi
jle 0x41ee90
mov edi, edi
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx + esi*4]
test byte [eax + 0x15], 2
je 0x41ee8a
and byte [eax + 0x15], 0x3d
mov eax, dword [eax]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
inc esi
cmp esi, dword [ebp + 0x2c]
jl 0x41ee70
xor esi, esi
cmp dword [ebp + 0x34], esi
jle 0x41eec0
jmp 0x41eea0
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + esi*4]
test byte [eax + 0x15], 2
je 0x41eeba
and byte [eax + 0x15], 0x3d
mov eax, dword [eax]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
inc esi
cmp esi, dword [ebp + 0x34]
jl 0x41eea0
xor eax, eax
mov dword [esp + 0xc], eax
cmp dword [ebp + 0x1c], eax
jle 0x41ef45
push ebx
push edi
mov bl, 0x20
nop
mov ecx, dword [ebp + 0x18]
mov esi, dword [ecx + eax*4]
cmp byte [esi + 0x3d], 0
jne 0x41ef35
xor edi, edi
cmp dword [esi + 0x28], edi
jle 0x41ef08
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + edi*4]
test byte [eax + 0x16], bl
je 0x41ef02
test byte [eax + 0x15], 2
je 0x41ef02
and byte [eax + 0x15], 0x3d
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
inc edi
cmp edi, dword [esi + 0x28]
jl 0x41eee3
xor edi, edi
cmp dword [esi + 0x30], edi
jle 0x41ef35
nop
mov eax, dword [esi + 0x20]
mov eax, dword [eax + edi*4]
test byte [eax + 0x16], bl
je 0x41ef2f
test byte [eax + 0x15], 2
je 0x41ef2f
and byte [eax + 0x15], 0x3d
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
inc edi
cmp edi, dword [esi + 0x30]
jl 0x41ef10
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [ebp + 0x1c]
jl 0x41eed0
pop edi
pop ebx
cmp dword [0x4db6b0], 0xffffffff
je 0x41efd8
cmp dword [esp + 0x10], 1
mov edx, str.error
je 0x41ef63
mov edx, 0x4b0c5c
mov eax, dword [0x4db6e4]
dec eax
cmp eax, 4
ja case.0x41ef6e.2
jmp dword [eax*4 + 0x41efec]
mov ecx, str.step_into
jmp 0x41ef96
mov ecx, str.step_over
jmp 0x41ef96
mov ecx, str.step_out
jmp 0x41ef96
mov ecx, 0x4b1098
jmp 0x41ef96
mov ecx, 0x4b0d16
mov eax, dword [0x4db6f8]
test eax, eax
je 0x41efa5
mov eax, dword [eax]
test eax, eax
jne 0x41efaa
mov eax, 0x4b0d16
push eax
push edx
push 0x4b1eec
push ecx
push str._response_command__s__status__s__reason__s__transaction_id__e___
mov eax, 0x4db6d4
call fcn.00409064
add esp, 0x14
mov ecx, 0x4db6a0
call fcn.004089ff
mov ecx, 0x4db6a0
call fcn.00408d2a
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
push esi
call fcn.0049a78b
pop esi
pop ebp
nop
mov ch, bh
inc ecx
add byte [ecx + 0x750041ef], dl
out dx, eax
inc ecx
add byte [edi + ebp*8 + 0x41], bh
add byte [ebx + 0x550041ef], al
push ebp
Function at 0x425ec0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4d6a38]
push esi
mov eax, 0x20
push edi
mov word [esp + 8], ax
mov word [esp + 0xa], cx
mov dword [esp + 0xc], 0x90028
mov dword [esp + 0x10], 0x3e003c
mov dword [esp + 0x14], 0x3d003a
mov dword [esp + 0x18], 0x2d002b
mov dword [esp + 0x1c], 0x2f002a
mov dword [esp + 0x20], 0x7e0021
mov dword [esp + 0x24], 0x7c0026
mov dword [esp + 0x28], 0x5b005e
mov dword [esp + 0x2c], 0x3f002e
mov dword [esp + 0x30], 0x7b
mov edi, edx
test edx, edx
je 0x425f6d
movzx eax, word [edx]
test ax, ax
je 0x425f6d
lea esp, [esp]
movzx esi, ax
lea ecx, [esp + 8]
mov eax, 0x20
lea esp, [esp]
cmp si, ax
je 0x425fd3
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x425f50
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x425f40
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425f72
sub eax, esi
sar eax, 1
lea edi, [edx + eax*2 - 2]
cmp edi, edx
jbe 0x425fa4
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x425f9d
cmp eax, 9
jne 0x425fa4
sub edi, 2
cmp edi, edx
ja 0x425f90
mov esi, edi
sub esi, edx
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x425fdc
cmp byte [esp + 0x3c], 0
je 0x425fc9
mov ecx, dword [esp + 0x38]
push edx
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0043a4e0
xor eax, eax
pop edi
pop esi
add esp, 0x2c
ret 8
cmp edi, edx
jbe 0x425fa4
add edi, 0xfffffffe
jmp 0x425f85
push esi
push edx
push ebx
call fcn.0049d114
add esp, 0xc
xor edx, edx
mov eax, edi
pop edi
mov word [ebx + esi*2], dx
pop esi
add esp, 0x2c
ret 8
Function at 0x42b320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10004
call fcn.004a7e90
mov eax, dword [esp + 0x10008]
push esi
push edi
push eax
push ecx
push 0x4b98f0
mov esi, 0x8001
lea edi, [esp + 0x14]
call fcn.00480070
add esp, 0xc
mov edx, edi
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42b390
test al, 0x10
je 0x42b390
lea eax, [esi + esi + 0x204]
call fcn.0047d080
mov dword [ebx], eax
test eax, eax
je 0x42b390
lea ecx, [esi + esi + 2]
push ecx
mov edx, edi
push edx
push eax
call fcn.004a3cc0
add esp, 0xc
pop edi
mov dword [ebx + 4], esi
pop esi
add esp, 0x10004
ret 4
pop edi
mov dword [ebx], 0x4b09ac
pop esi
add esp, 0x10004
ret 4
Function at 0x43aa30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004a7e90
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0xc], ecx
test ebx, ebx
jne 0x43aa58
mov ebx, dword [ecx + 0x634]
test ebx, ebx
je 0x43aa62
movzx edx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x43aa6f
mov edx, dword [ecx + 0x270]
movzx eax, word [ecx + 0x274]
cmp dword [ebp + 8], 0
je 0x43ab5f
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [0x4db62c]
mov edx, dword [ecx + edx*4]
movzx eax, ax
push eax
push edx
push str._s___d__:___Warning:__s_n
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.00480070
mov esi, dword [ebp + 0x10]
add esp, 0x10
cmp word [esi], 0
lea edi, [esp + eax*2 + 0x10]
je 0x43aad0
lea ecx, [esp + 0x10]
mov eax, edi
push esi
sub eax, ecx
sar eax, 1
mov esi, 0x2000
push str._____Specifically:__s_n
sub esi, eax
call fcn.00480070
mov esi, dword [ebp + 0x10]
add esp, 8
mov edi, dword [ebp + 8]
cmp edi, 3
jne 0x43aaf6
mov edx, dword [esp + 0xc]
push 0x4b7438
push 0
push edx
lea esi, [esp + 0x1c]
call fcn.0043a040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x4db6e8], 0
je 0x43ab13
push str.stderr
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4db6a0
call fcn.0040880c
cmp dword [0x4db6e8], 2
je 0x43ab27
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 2
jne 0x43ab5f
test ebx, ebx
jne 0x43ab3e
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + 0x634]
test ebx, ebx
je 0x43ab55
mov edx, dword [ebp + 0xc]
push esi
push 1
push edx
mov ecx, ebx
call fcn.0043a200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
push esi
push eax
call fcn.0043a4e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43af80
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 0x43afa7
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43afb1
xor edx, edx
mov word [esp + 0x120], dx
mov esi, dword [0x4dc1c8]
xor eax, eax
mov word [esp + 0x20], ax
test esi, esi
je 0x43b068
cmp byte [esi + 0x12], 0
je 0x43b009
mov ecx, dword [esi]
push ecx
call fcn.0047ad10
add esp, 4
sub eax, 0
je 0x43afed
dec eax
je 0x43afe6
mov eax, 0x4ba5b8
jmp 0x43aff2
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x43aff2
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4bb490
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.004800b0
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x43afc6
cmp word [esp + 0x20], si
je 0x43b068
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b020
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x43b056
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4b6264
push edi
call fcn.0049d114
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x43b068
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x43b068
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4d9238]
cmp byte [eax + 0xf8], 0
je 0x43b087
cmp byte [0x4dc20d], 0
mov dword [esp + 0x14], 1
je 0x43b08f
mov dword [esp + 0x14], 0
mov eax, dword [0x4da880]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x43b1ad
mov dword [esp + 0x18], 0x4b09ac
xor ebp, ebp
cmp dword [0x4da840], 0
mov edi, 0x4b3e18
je 0x43b0c2
mov edi, 0x4b3e10
cmp dword [0x4da83c], 0
mov esi, 0x4b3e18
je 0x43b0d5
mov esi, 0x4b3e10
push 1
call fcn.00418950
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00418d70
mov ecx, dword [0x4da87c]
mov edx, dword [0x4da880]
push eax
mov eax, dword [0x4da884]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4dc1d0]
push ecx
mov ecx, dword [0x4dc1d4]
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.00480070
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.0040ec90
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b162
sub eax, edx
sar eax, 1
cmp dword [0x4daf24], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x43b187
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.00480070
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 0x43b0af
Function at 0x440cf0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x20]
call fcn.0044df10
mov edi, eax
test edi, edi
je 0x440d19
mov esi, dword [esp + 0x18]
push edi
call fcn.00484df0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x440d62
mov ecx, dword [0x4d6b14]
test byte [ecx + 0x100], 1
jne 0x440d46
mov edx, dword [0x4daf14]
push 1
push 0
push 0xffffffffffffffff
push 0x4b45e4
push edx
call fcn.004833e0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ebx, dword [esp + 0x14]
push 0x4b09ac
push 0
push 0x4b45e4
call fcn.00439d90
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push 0
push edi
xor bl, bl
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
test ebp, ebp
je 0x440d9a
cmp ebp, dword [0x4db710]
je 0x440d9a
mov esi, edi
call fcn.00485330
test al, al
jne 0x440d9a
mov eax, dword [0x4db710]
push 1
push ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne bl
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x440dd8
mov edx, dword [0x4daf14]
push 1
push 0
push 0xffffffffffffffff
push 0x4b09bc
push edx
call fcn.004833e0
mov eax, dword [0x4d6b14]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x440dd8
push 1
push eax
call fcn.004014c0
add esp, 8
test bl, bl
je 0x440dec
mov ecx, dword [0x4db710]
push 0
push ebp
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x441b30
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.0041c430
mov dword [esp + 0x10], eax
test eax, eax
jne 0x441b65
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0043a200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x441b6f
jmp dword [eax*4 + 0x441d60]
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x441b86
call fcn.0045f6e0
jmp 0x441b8c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4daf14]
call fcn.00401140
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.0045f6e0
mov ebx, eax
test ebx, ebx
je 0x441c00
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x441c00
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 [0x4daf14]
push 0x18
push 0
push esi
call fcn.00401140
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4daf14]
push 1
push 0
push 0xffffffffffffffff
push 0x4b09bc
push eax
call fcn.004833e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx ecx, word [ebx]
push ecx
call fcn.0049c6d3
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x441c3d.67
movzx edx, byte [eax + 0x441d90]
jmp dword [edx*4 + 0x441d74]
mov esi, 0x40
jmp 0x441c6c
mov esi, 0x4000
jmp 0x441c6c
mov esi, 0x20
jmp 0x441c6c
mov esi, 0x8000
jmp 0x441c6c
mov esi, 0x80
jmp 0x441c6c
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x441c7c
call fcn.0045f6e0
jmp 0x441c82
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x441c00
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x441c00
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x441bd4
mov ecx, dword [0x4daf14]
push 1
push 0
push 0xffffffffffffffff
push 0x4b09bc
push ecx
call fcn.004833e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [ebx], 0
je 0x441cfc
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.0041a410
fmul qword [0x4cfe08]
call fcn.004aab50
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x441d03
mov byte [esp + 0xf], 1
xor edi, edi
mov ebx, dword [ebp + 0xc]
call fcn.0045f6e0
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x441d1e
test esi, esi
jne 0x441be3
jmp 0x441d26
test esi, esi
je 0x441c00
cmp byte [esp + 0xf], 0
jne 0x441d44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x441be3
push 1
push 0x64
call fcn.004014c0
add esp, 8
jmp 0x441d03
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x442620
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4da648]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.0044df10
mov edi, eax
test edi, edi
je 0x442646
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [eax + 1]
jmp 0x44264b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.004833e0
cmp eax, 1
je 0x442669
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x4426fb
push ebp
push 0
push 1
call fcn.00401280
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x442692
mov edi, dword [esi + 0xc]
jmp 0x442694
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4426ac
test byte [edi + 0x15], 8
je 0x4426a7
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x4426b1
mov eax, 0x4dc43c
lea edx, [ebp + ebp]
mov dword [eax], edx
cmp byte [esi + 0x17], 0
jne 0x4426c2
mov edi, dword [esi + 0xc]
jmp 0x4426c4
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4426dc
test byte [edi + 0x15], 8
je 0x4426d7
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x4426e1
mov eax, 0x4dc43c
test dword [eax], 0xfffffffe
jne 0x442738
push 0
push 1
mov ecx, esi
call fcn.00401280
xor ecx, ecx
mov word [eax], cx
jmp 0x442738
push 0
push 1
call fcn.00401280
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], dl
jne 0x442713
mov edi, dword [esi + 0xc]
jmp 0x442715
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44272d
test byte [edi + 0x15], 8
je 0x442728
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x442732
mov eax, 0x4dc43c
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x442741
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x442761
cmp dword [0x4dc284], 0
je 0x442761
mov ecx, 0x4dc278
call fcn.00405180
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 0x4434f0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004a7e90
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
mov esi, dword [0x4da648]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x4435a4
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.004833e0
test eax, eax
jne 0x443542
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401280
push eax
push ebx
call ebp
test eax, eax
jne 0x443565
push eax
push 1
mov ecx, esi
call fcn.00401280
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], 0
jne 0x44356e
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x443591
cmp dword [0x4dc284], 0
je 0x443591
mov ecx, 0x4dc278
call fcn.00405180
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 0x4435b1
mov eax, 0x4b09ac
push 1
push 0
push edi
push eax
push esi
call fcn.004833e0
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x445a00
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x288
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [0x4dc200]
push eax
mov edi, 0x4b09ac
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebp
cmp eax, 0xffffffff
setne bl
test bl, bl
jne 0x445a67
lea ecx, [esp + 0x90]
push ecx
call fcn.00445fb0
add esp, 4
test eax, eax
je 0x445a5a
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call ebp
cmp eax, 0xffffffff
jne 0x445a67
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x288
ret
cmp byte [esp + 0x29c], 0
je 0x445a92
test bl, bl
je 0x445a92
push esi
push str._script__s
mov esi, 0x40
lea edi, [esp + 0x18]
call fcn.00480070
mov esi, dword [0x4dc1fc]
add esp, 8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0x4db728
mov edx, esi
call fcn.0043b1c0
test eax, eax
mov eax, dword [0x4d7d34]
setne bl
test eax, eax
je 0x445ac1
mov eax, dword [eax]
test eax, eax
jne 0x445ac6
mov eax, 0x4b09ac
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x288
ret

Function at 0x445fb0
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 0x445ff0
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x446055
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 0x446083
mov eax, dword [esp + 0x10]
test eax, eax
je 0x446083
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x446063
test eax, eax
je 0x446055
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x44604d
sub ecx, 2
dec eax
jne 0x446041
mov dword [esp + 0x10], eax
test eax, eax
jne 0x44608c
test edi, edi
jne 0x44608c
mov edi, 0x100
jmp 0x445fc8
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x44607a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x446055
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x446051
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x446055
mov esi, dword [esp + 0x224]
test esi, esi
je 0x4460af
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 0x4460a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x4497b0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [0x4da648]
push esi
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00419420
mov bl, al
add esp, 0xc
test bl, bl
jne 0x44984f
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0045b3e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x449812
push 1
push eax
push 0xffffffffffffffff
push 0x4b09ac
push ebp
call fcn.004833e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
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.0045b690
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00482d00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov edx, dword [esp + 0x22c]
movzx esi, word [edx]
test esi, 0xffffff80
jne 0x449873
push 2
push esi
call fcn.0049b9cc
add esp, 8
test eax, eax
je 0x449873
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x50
je 0x44988b
xor ecx, ecx
cmp eax, 0x54
setne cl
lea eax, [ecx - 1]
and eax, 2
jmp 0x449890
mov eax, 1
push eax
call fcn.0045b5e0
add esp, 4
test al, al
mov eax, 0x4bcc38
jne 0x4498a7
mov eax, 0x4bcc3c
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.004833e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4

Function at 0x4498d0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4da648]
sub esp, 0x224
push ebx
push esi
push edi
mov esi, eax
call fcn.0041a450
test esi, esi
je 0x4499c9
cmp word [esi], 0
je 0x4499c9
push 0x103
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0049d114
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x28]
mov word [esp + 0x22e], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x449922
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x26], 0x5c
je 0x449959
lea edx, [eax + 1]
cmp edx, 0x104
jae 0x4499c9
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], dx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4499c9
cmp byte [ebp + 0xc], 0
je 0x449987
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
jmp 0x44998f
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4daf14]
push 1
push 0
push 0xffffffffffffffff
push 0x4b09bc
push ecx
call fcn.004833e0
mov eax, dword [0x4da648]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.00401140
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x4d6b14]
test byte [edx + 0x100], 1
jne 0x4499f7
mov eax, dword [0x4daf14]
push 1
push 0
push 0xffffffffffffffff
push 0x4b45e4
push eax
call fcn.004833e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 8]
push 0x4b09ac
push 0
push 0x4b45e4
call fcn.00439d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8