joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c4c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
cmp dword [0x4bcc7c], 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov byte [eax], 0
mov byte [edx], 0
jne 0x42c4f3
push ecx
mov eax, 0x4bcc7c
call fcn.0042c390
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x42c50e
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42c500
sub eax, edx
mov dword [ebp + 0xc], eax
mov esi, eax
cmp esi, 0xfd
ja 0x42c5c9
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], 0
xor edi, edi
jmp 0x42c530
mov eax, dword [edi*8 + 0x4bcc7c]
cmp byte [eax], 0
je 0x42c57a
mov ecx, dword [edi*8 + 0x4bcc80]
push esi
add ecx, eax
push ebx
push ecx
call fcn.0049b100
mov edx, dword [str..ahk]
mov dword [eax + esi], edx
mov cl, byte [0x4ab7a0]
mov byte [eax + esi + 4], cl
mov edx, dword [edi*8 + 0x4bcc7c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42c57a
test al, 0x10
je 0x42c5d4
inc edi
cmp edi, 3
jl 0x42c530
mov eax, dword [ebp + 8]
push 0x5f
push eax
call fcn.00494081
add esp, 8
test eax, eax
je 0x42c5c9
mov ecx, dword [ebp + 8]
sub eax, ecx
mov esi, eax
cmp esi, 0xfe
jae 0x42c5c9
push esi
push ecx
lea ebx, [esp + 0x20]
mov ecx, ebx
push ecx
call fcn.0049b100
mov eax, dword [esp + 0x1c]
inc eax
add esp, 0xc
mov byte [esp + esi + 0x18], 0
mov dword [esp + 0x10], eax
cmp eax, 2
jl 0x42c525
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [edi*8 + 0x4bcc80]
mov ecx, dword [edi*8 + 0x4bcc7c]
mov edx, dword [ebp + 0x14]
lea esi, [edi*8 + 0x4bcc7c]
lea ebx, [edi*8 + 0x4bcc80]
lea edi, [eax + ecx - 1]
mov byte [edi], 0
mov eax, dword [esi]
mov byte [edx], 1
call fcn.0044bb40
mov byte [edi], 0x5c
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x624]
test ecx, ecx
je 0x42c62f
cmp byte [ebp + 0x18], 0
je 0x42c62f
mov eax, dword [esi]
mov edx, dword [ebx]
push eax
push eax
push edx
push str.Include___0.s_nIncludeAgain__s_n
call fcn.0041eff0
add esp, 0x10
mov esi, dword [esi]
mov ebx, dword [0x4bc350]
push 0
push 0
push esi
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], 0
call fcn.00420d10
mov esi, eax
cmp esi, 3
jne 0x42c666
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push edi
call fcn.004210e0
mov esi, eax
jmp 0x42c66a
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x42c678
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
test esi, esi
jne 0x42c68d
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push edx
push eax
mov ecx, edi
call fcn.0042c6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x43b950
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2004
call fcn.0049faa0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x43ba76
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x43b982
mov ebx, dword [ecx + 0x374]
test ebx, ebx
je 0x43b98c
movzx edx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x43b999
mov edx, dword [ecx + 0x170]
movzx eax, word [ecx + 0x174]
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [0x4bc348]
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.0047f340
mov esi, dword [ebp + 0x10]
add esp, 0x10
cmp byte [esi], 0
lea edi, [esp + eax + 0x10]
je 0x43b9e7
push esi
lea esi, [esp + 0x2014]
push str._____Specifically:__s_n
sub esi, edi
call fcn.0047f340
mov esi, dword [ebp + 0x10]
add esp, 8
mov edi, dword [ebp + 8]
cmp edi, 3
jne 0x43ba0d
mov eax, dword [esp + 0xc]
push 0x4ab8e8
push 0
push eax
lea esi, [esp + 0x1c]
call fcn.0043afc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x4bc3f4], 0
je 0x43ba2a
push str.stderr
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x4bc3b8
call fcn.0040a430
cmp dword [0x4bc3f4], 2
je 0x43ba3e
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, 2
jne 0x43ba76
test ebx, ebx
jne 0x43ba55
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + 0x374]
test ebx, ebx
je 0x43ba6c
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
mov ecx, ebx
call fcn.0043b170
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
push esi
push edx
call fcn.0043b430
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43bea0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1fc
push ebx
push ebp
push esi
push edi
mov edi, eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
cmp eax, ebx
je 0x43becf
push 0x64
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43bed6
mov byte [esp + 0xa0], bl
mov esi, dword [0x4bca28]
mov byte [esp + 0x20], bl
cmp esi, ebx
je 0x43bf7b
cmp byte [esi + 0x12], bl
je 0x43bf29
mov edx, dword [esi]
push edx
call fcn.0047a220
add esp, 4
sub eax, ebx
je 0x43bf0d
dec eax
je 0x43bf06
mov eax, str.Object
jmp 0x43bf12
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x43bf12
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x4ada24
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.0047f380
add esp, 8
mov esi, dword [esi + 0x14]
cmp esi, ebx
jne 0x43bee8
cmp byte [esp + 0x20], bl
je 0x43bf7b
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43bf40
sub eax, edx
cmp eax, 0x7b
jbe 0x43bf6d
mov esi, 0x7f
sub esi, eax
push esi
lea ebp, [esp + eax + 0x24]
push 0x4aaedc
push ebp
call fcn.00495b20
add esp, 0xc
mov byte [esi + ebp], bl
jmp 0x43bf7b
cmp byte [esp + eax + 0x1f], 0x20
lea eax, [esp + eax + 0x20]
jne 0x43bf7b
mov byte [eax - 1], bl
mov edx, dword [0x4b9ff0]
cmp byte [edx + 0xd8], bl
je 0x43bf99
mov dword [esp + 0x14], 1
cmp byte [0x4bca6d], bl
je 0x43bf9d
mov dword [esp + 0x14], ebx
mov eax, dword [0x4bb59c]
mov dword [esp + 0x10], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x43c0ac
mov dword [esp + 0x10], 0x4a7935
mov dword [esp + 0x18], ebx
mov ebp, 0x4a9be0
cmp dword [0x4bb55c], ebx
je 0x43bfd1
mov ebp, 0x4a9bdc
mov esi, 0x4a9be0
cmp dword [0x4bb558], ebx
je 0x43bfe3
mov esi, 0x4a9bdc
push 1
call fcn.0041a6c0
mov bl, al
add esp, 4
lea eax, [esp + 0x108]
call fcn.0041aab0
mov ecx, dword [0x4bb59c]
mov edx, dword [0x4bb5a0]
sub edx, dword [esp + 0x14]
push eax
mov eax, dword [0x4bb598]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [0x4bca30]
push ecx
mov ecx, dword [0x4bca34]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push ebp
push esi
lea edx, [esp + 0xcc]
push edx
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
mov esi, 0xfffe
call fcn.0047f340
mov esi, dword [esp + 0x50]
add edi, eax
mov eax, esi
sub eax, edi
add esp, 0x34
add eax, 0xfffe
push eax
push edi
call fcn.00410d10
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43c070
sub eax, ecx
add edi, eax
cmp dword [0x4bbc40], 0
mov eax, str._r_nPress__F5__to_refresh.
jne 0x43c08e
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
sub esi, edi
push eax
add esi, 0xfffe
call fcn.0047f340
add esp, 4
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret
dec eax
mov dword [esp + 0x18], eax
jmp 0x43bfbf
Function at 0x441370
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x20]
call fcn.0044e150
mov edi, eax
test edi, edi
je 0x441399
mov esi, dword [esp + 0x18]
push edi
call fcn.00483eb0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4413e2
mov ecx, dword [0x4b7a60]
test byte [ecx + 0xe0], 1
jne 0x4413c6
mov edx, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
push edx
call fcn.00482410
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov edi, dword [esp + 0x14]
push 0x4a7935
push 0
push 0x4a7dfc
call fcn.0043ad70
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 0x44141a
cmp ebp, dword [0x4bc41c]
je 0x44141a
mov esi, edi
call fcn.00484390
test al, al
jne 0x44141a
mov eax, dword [0x4bc41c]
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 0x441458
mov edx, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push edx
call fcn.00482410
mov eax, dword [0x4b7a60]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x441458
push 1
push eax
call fcn.00401450
add esp, 8
test bl, bl
je 0x44146c
mov ecx, dword [0x4bc41c]
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 0x442190
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.0041de50
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4421c5
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0043b170
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x4421cf
jmp dword [eax*4 + 0x4423bc]
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x4421e5
call fcn.0045ede0
jmp 0x4421eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4bbc30]
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.0045ede0
mov ebx, eax
test ebx, ebx
je 0x44225f
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x44225f
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 [0x4bbc30]
push 0x18
push 0
push esi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push eax
call fcn.00482410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [ebx]
push ecx
call fcn.00495414
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x442299.67
movzx edx, byte [eax + 0x4423ec]
jmp dword [edx*4 + 0x4423d0]
mov esi, 0x40
jmp 0x4422c8
mov esi, 0x4000
jmp 0x4422c8
mov esi, 0x20
jmp 0x4422c8
mov esi, 0x8000
jmp 0x4422c8
mov esi, 0x80
jmp 0x4422c8
mov esi, pe_nt_image_headers32
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x4422d7
call fcn.0045ede0
jmp 0x4422dd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x44225f
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x44225f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x442233
mov ecx, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push ecx
call fcn.00482410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx], 0
je 0x442356
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.0041bfc0
fmul qword [0x4b15b0]
call fcn.004a1c90
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x442360
mov byte [esp + 0xf], 1
xor edi, edi
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
call fcn.0045ede0
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x44237b
test esi, esi
jne 0x442242
jmp 0x442383
test esi, esi
je 0x44225f
cmp byte [esp + 0xf], 0
jne 0x4423a1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x442242
push 1
push 0x64
call fcn.00401450
add esp, 8
jmp 0x442360
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x442c40
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4bb368]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.0044e150
mov edi, eax
test edi, edi
je 0x442c66
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x442c6b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00482410
cmp eax, 1
je 0x442c89
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x442d0e
push ebp
push 0
push 1
call fcn.00401210
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x442cae
mov edi, dword [esi + 0xc]
jmp 0x442cb0
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x442cc8
test byte [edi + 0x15], 8
je 0x442cc3
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x442ccd
mov eax, 0x4bcc74
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x442cda
mov edi, dword [esi + 0xc]
jmp 0x442cdc
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x442cf4
test byte [edi + 0x15], 8
je 0x442cef
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x442cf9
mov eax, 0x4bcc74
cmp dword [eax], 0
jne 0x442d4a
push 0
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
jmp 0x442d4a
push 0
push 1
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x442d25
mov edi, dword [esi + 0xc]
jmp 0x442d27
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x442d3f
test byte [edi + 0x15], 8
je 0x442d3a
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x442d44
mov eax, 0x4bcc74
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x442d53
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x442d75
cmp dword [0x4bc440], 0
je 0x442d75
push 1
mov ecx, 0x4bc434
call fcn.00405130
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 0x443b10
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.0049faa0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4bb368]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x443bc4
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00482410
test eax, eax
jne 0x443b62
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401210
push eax
push ebx
call ebp
test eax, eax
jne 0x443b83
push eax
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x443b8c
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x443bb1
cmp dword [0x4bc440], 0
je 0x443bb1
push 1
mov ecx, 0x4bc434
call fcn.00405130
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 0x443bd1
mov eax, 0x4a7935
push 1
push 0
push edi
push eax
push esi
call fcn.00482410
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x445fe0
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x148
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [0x4bca60]
push eax
mov edi, 0x4a7935
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebp
cmp eax, 0xffffffff
setne bl
test bl, bl
jne 0x446041
lea ecx, [esp + 0x50]
push ecx
call fcn.00446580
add esp, 4
test eax, eax
je 0x446034
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebp
cmp eax, 0xffffffff
jne 0x446041
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
cmp byte [esp + 0x15c], 0
je 0x44606c
test bl, bl
je 0x44606c
push esi
push str._script__s
mov esi, 0x40
lea edi, [esp + 0x18]
call fcn.0047f340
mov esi, dword [0x4bca5c]
add esp, 8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0x4bc450
mov edx, esi
call fcn.0043c0c0
test eax, eax
mov eax, dword [0x4b8c80]
setne bl
test eax, eax
je 0x44609b
mov eax, dword [eax]
test eax, eax
jne 0x4460a0
mov eax, 0x4a7935
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x148
ret

Function at 0x446580
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 0x4465b8
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x446633
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 0x4465b0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4465b0
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x446617
cmp eax, ebx
je 0x446633
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x446611
dec eax
jne 0x446608
mov dword [esp + 0x10], eax
jmp 0x44662f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x44662b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x446633
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x446641
cmp edi, ebx
jne 0x446641
mov edi, pe_nt_image_headers32
jmp 0x446594
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x44665e
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 0x446654
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x449b30
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4bb368]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.0041afc0
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x449bcc
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0045acf0
mov edi, eax
add esp, 4
test edi, edi
jne 0x449b90
push 1
push eax
push 0xffffffffffffffff
push 0x4a7935
push ebp
call fcn.00482410
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
call fcn.0045af90
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00481d60
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x449bf0
push 2
push ebx
call fcn.004938f7
add esp, 8
test eax, eax
je 0x449bf0
and bl, 0xdf
cmp bl, 0x50
je 0x449c03
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x449c08
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0045aee0
add esp, 4
test al, al
mov eax, 0x4ae8f4
jne 0x449c23
mov eax, 0x4ae8f8
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00482410
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4

Function at 0x449c40
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4bb368]
sub esp, 0x120
push esi
push edi
mov esi, eax
call fcn.0041c000
test esi, esi
je 0x449d23
cmp byte [esi], 0
je 0x449d23
push 0x103
lea eax, [esp + 0x24]
push esi
push eax
call fcn.00495b20
lea eax, [esp + 0x2c]
add esp, 0xc
mov byte [esp + 0x123], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x449c90
sub eax, edx
cmp byte [esp + eax + 0x1f], 0x5c
je 0x449cb5
lea ecx, [eax + 1]
cmp ecx, 0x104
jae 0x449d23
mov byte [esp + eax + 0x20], 0x5c
mov byte [esp + eax + 0x21], 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x449d23
cmp byte [ebp + 0xc], 0
je 0x449ce3
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x449ceb
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov eax, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push eax
call fcn.00482410
mov eax, dword [0x4bb368]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4b7a60]
test byte [ecx + 0xe0], 1
jne 0x449d51
mov edx, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
push edx
call fcn.00482410
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
push 0x4a7935
push 0
push 0x4a7dfc
call fcn.0043ad70
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x44bb40
Capabilities:
Set current directory

Disassembly:
push ecx
push esi
mov esi, eax
mov al, byte [esi]
push edi
test al, al
je 0x44bb6b
mov cl, 0x3a
cmp byte [esi + 1], cl
jne 0x44bb6b
cmp byte [esi + 2], 0
jne 0x44bb6b
mov byte [esp + 8], al
mov byte [esp + 9], cl
mov word [esp + 0xa], 0x5c
lea esi, [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x44bbc2
cmp byte [0x4bca6c], al
je 0x44bbeb
mov eax, dword [0x4b7a60]
test byte [eax + 0xe0], 1
jne 0x44bba7
mov ecx, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
push ecx
call fcn.00482410
pop edi
pop esi
pop ecx
ret
mov edi, dword [0x4bc7c4]
push 0x4a7935
push 0
push 0x4a7dfc
call fcn.0043ad70
pop edi
pop esi
pop ecx
ret
cmp byte [0x4bca6c], 0
je 0x44bbeb
push esi
call fcn.0044bbf0
mov edx, dword [0x4bbc30]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push edx
call fcn.00482410
pop edi
pop esi
pop ecx
ret

Function at 0x44bbf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ebx, ebx
test eax, eax
je 0x44bc1b
lea ebp, [esp + 8]
jmp 0x44bc23
cmp ebp, ebx
je 0x44bd39
push esi
cmp byte [ebp], bl
je 0x44bcfe
mov esi, dword [0x4b8c80]
cmp esi, ebx
je 0x44bc3c
call fcn.00403e20
push edi
push 0x14
call fcn.00493372
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x44bce5
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], 1
xor esi, esi
cmp byte [ebp], bl
je 0x44bc76
lea ebx, [ebx]
inc esi
cmp byte [esi + ebp], bl
jne 0x44bc70
push esi
mov ebx, edi
call fcn.00404d30
mov ebx, dword [edi]
mov eax, ebp
test esi, esi
jns 0x44bcb8
mov cl, byte [ebp]
mov byte [ebx], cl
test cl, cl
je 0x44bcc9
sub ebx, ebp
mov cl, byte [eax + 1]
inc eax
mov byte [ebx + eax], cl
test cl, cl
jne 0x44bc91
mov dword [edi + 8], esi
mov dword [0x4b8c80], edi
pop edi
pop esi
xor ebx, ebx
pop ebp
mov byte [0x4b8c84], bl
pop ebx
add esp, 0x104
ret
jle 0x44bcc5
push esi
push ebp
push ebx
call fcn.0049b100
add esp, 0xc
mov byte [ebx + esi], 0
mov dword [edi + 8], esi
mov dword [0x4b8c80], edi
pop edi
pop esi
xor ebx, ebx
pop ebp
mov byte [0x4b8c84], bl
pop ebx
add esp, 0x104
ret
xor edi, edi
mov dword [0x4b8c80], edi
pop edi
pop esi
pop ebp
mov byte [0x4b8c84], bl
pop ebx
add esp, 0x104
ret
mov eax, dword [0x4b8c80]
cmp eax, ebx
je 0x44bd38
lea ecx, [eax + 0x10]
mov esi, eax
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x44bd2c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x44bd23
push eax
call fcn.00492708
add esp, 4
push esi
call fcn.00492468
add esp, 4
mov dword [0x4b8c80], ebx
mov byte [0x4b8c84], bl
pop esi
pop ebp
pop ebx
add esp, 0x104
ret