joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425d90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4d5a38]
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 0x425e3d
movzx eax, word [edx]
test ax, ax
je 0x425e3d
lea esp, [esp]
movzx esi, ax
lea ecx, [esp + 8]
mov eax, 0x20
lea esp, [esp]
cmp si, ax
je 0x425ea3
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x425e20
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x425e10
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425e42
sub eax, esi
sar eax, 1
lea edi, [edx + eax*2 - 2]
cmp edi, edx
jbe 0x425e74
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x425e6d
cmp eax, 9
jne 0x425e74
sub edi, 2
cmp edi, edx
ja 0x425e60
mov esi, edi
sub esi, edx
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x425eac
cmp byte [esp + 0x3c], 0
je 0x425e99
mov ecx, dword [esp + 0x38]
push edx
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0043a380
xor eax, eax
pop edi
pop esi
add esp, 0x2c
ret 8
cmp edi, edx
jbe 0x425e74
add edi, 0xfffffffe
jmp 0x425e55
push esi
push edx
push ebx
call fcn.0049cae4
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 0x42b1f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10004
call fcn.004a7840
mov eax, dword [esp + 0x10008]
push esi
push edi
push eax
push ecx
push 0x4b88f0
mov esi, 0x8001
lea edi, [esp + 0x14]
call fcn.0047f770
add esp, 0xc
mov edx, edi
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42b260
test al, 0x10
je 0x42b260
lea eax, [esi + esi + 0x204]
call fcn.0047c780
mov dword [ebx], eax
test eax, eax
je 0x42b260
lea ecx, [esi + esi + 2]
push ecx
mov edx, edi
push edx
push eax
call fcn.004a37d0
add esp, 0xc
pop edi
mov dword [ebx + 4], esi
pop esi
add esp, 0x10004
ret 4
pop edi
mov dword [ebx], 0x4af9bc
pop esi
add esp, 0x10004
ret 4
Function at 0x43a8d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004a7840
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x43a9ff
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x43a902
mov ebx, dword [ecx + 0x634]
test ebx, ebx
je 0x43a90c
movzx edx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x43a919
mov edx, dword [ecx + 0x270]
movzx eax, word [ecx + 0x274]
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [0x4da5c4]
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.0047f770
mov esi, dword [ebp + 0x10]
add esp, 0x10
cmp word [esi], 0
lea edi, [esp + eax*2 + 0x10]
je 0x43a970
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.0047f770
mov esi, dword [ebp + 0x10]
add esp, 8
mov edi, dword [ebp + 8]
cmp edi, 3
jne 0x43a996
mov edx, dword [esp + 0xc]
push 0x4b6438
push 0
push edx
lea esi, [esp + 0x1c]
call fcn.00439ee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x4da680], 0
je 0x43a9b3
push str.stderr
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4da638
call fcn.0040874c
cmp dword [0x4da680], 2
je 0x43a9c7
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 2
jne 0x43a9ff
test ebx, ebx
jne 0x43a9de
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + 0x634]
test ebx, ebx
je 0x43a9f5
mov edx, dword [ebp + 0xc]
push esi
push 1
push edx
mov ecx, ebx
call fcn.0043a0a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
push esi
push eax
call fcn.0043a380
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43ae40
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 0x43ae67
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43ae71
xor edx, edx
mov word [esp + 0x120], dx
mov esi, dword [0x4db160]
xor eax, eax
mov word [esp + 0x20], ax
test esi, esi
je 0x43af28
cmp byte [esi + 0x12], 0
je 0x43aec9
mov ecx, dword [esi]
push ecx
call fcn.0047a3f0
add esp, 4
sub eax, 0
je 0x43aead
dec eax
je 0x43aea6
mov eax, 0x4b95b8
jmp 0x43aeb2
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x43aeb2
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4ba490
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.0047f7b0
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x43ae86
cmp word [esp + 0x20], si
je 0x43af28
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43aee0
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x43af16
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4b5278
push edi
call fcn.0049cae4
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x43af28
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x43af28
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4d81d0]
cmp byte [eax + 0xf8], 0
je 0x43af47
cmp byte [0x4db1a5], 0
mov dword [esp + 0x14], 1
je 0x43af4f
mov dword [esp + 0x14], 0
mov eax, dword [0x4d9814]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x43b06d
mov dword [esp + 0x18], 0x4af9bc
xor ebp, ebp
cmp dword [0x4d97d4], 0
mov edi, 0x4b2e40
je 0x43af82
mov edi, 0x4b2e38
cmp dword [0x4d97d0], 0
mov esi, 0x4b2e40
je 0x43af95
mov esi, 0x4b2e38
push 1
call fcn.00418970
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00418d60
mov ecx, dword [0x4d9810]
mov edx, dword [0x4d9814]
push eax
mov eax, dword [0x4d9818]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4db168]
push ecx
mov ecx, dword [0x4db16c]
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.0047f770
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.0040ec00
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b022
sub eax, edx
sar eax, 1
cmp dword [0x4d9eb8], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x43b047
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.0047f770
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 0x43af6f
Function at 0x440bb0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x20]
call fcn.0044ddd0
mov edi, eax
test edi, edi
je 0x440bd9
mov esi, dword [esp + 0x18]
push edi
call fcn.00484510
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x440c22
mov ecx, dword [0x4d5b14]
test byte [ecx + 0x100], 1
jne 0x440c06
mov edx, dword [0x4d9ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4b360c
push edx
call fcn.00482b00
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ebx, dword [esp + 0x14]
push 0x4af9bc
push 0
push 0x4b360c
call fcn.00439c30
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 0x440c5a
cmp ebp, dword [0x4da6a8]
je 0x440c5a
mov esi, edi
call fcn.00484a50
test al, al
jne 0x440c5a
mov eax, dword [0x4da6a8]
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 0x440c98
mov edx, dword [0x4d9ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9cc
push edx
call fcn.00482b00
mov eax, dword [0x4d5b14]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x440c98
push 1
push eax
call fcn.004014c0
add esp, 8
test bl, bl
je 0x440cac
mov ecx, dword [0x4da6a8]
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 0x4419f0
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.0041c3f0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x441a25
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0043a0a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x441a2f
jmp dword [eax*4 + 0x441c20]
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x441a46
call fcn.0045f5a0
jmp 0x441a4c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4d9ea8]
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.0045f5a0
mov ebx, eax
test ebx, ebx
je 0x441ac0
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x441ac0
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 [0x4d9ea8]
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 [0x4d9ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9cc
push eax
call fcn.00482b00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx ecx, word [ebx]
push ecx
call fcn.0049c0a3
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x441afd.67
movzx edx, byte [eax + 0x441c50]
jmp dword [edx*4 + 0x441c34]
mov esi, 0x40
jmp 0x441b2c
mov esi, 0x4000
jmp 0x441b2c
mov esi, 0x20
jmp 0x441b2c
mov esi, 0x8000
jmp 0x441b2c
mov esi, 0x80
jmp 0x441b2c
mov esi, pe_nt_image_headers32
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x441b3c
call fcn.0045f5a0
jmp 0x441b42
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x441ac0
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x441ac0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x441a94
mov ecx, dword [0x4d9ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9cc
push ecx
call fcn.00482b00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [ebx], 0
je 0x441bbc
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.0041a400
fmul qword [0x4cedc8]
call fcn.004aa3a0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x441bc3
mov byte [esp + 0xf], 1
xor edi, edi
mov ebx, dword [ebp + 0xc]
call fcn.0045f5a0
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x441bde
test esi, esi
jne 0x441aa3
jmp 0x441be6
test esi, esi
je 0x441ac0
cmp byte [esp + 0xf], 0
jne 0x441c04
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x441aa3
push 1
push 0x64
call fcn.004014c0
add esp, 8
jmp 0x441bc3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4424e0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4d95e0]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.0044ddd0
mov edi, eax
test edi, edi
je 0x442506
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [eax + 1]
jmp 0x44250b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00482b00
cmp eax, 1
je 0x442529
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x4425bb
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 0x442552
mov edi, dword [esi + 0xc]
jmp 0x442554
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44256c
test byte [edi + 0x15], 8
je 0x442567
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x442571
mov eax, 0x4db3d4
lea edx, [ebp + ebp]
mov dword [eax], edx
cmp byte [esi + 0x17], 0
jne 0x442582
mov edi, dword [esi + 0xc]
jmp 0x442584
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44259c
test byte [edi + 0x15], 8
je 0x442597
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x4425a1
mov eax, 0x4db3d4
test dword [eax], 0xfffffffe
jne 0x4425f8
push 0
push 1
mov ecx, esi
call fcn.00401280
xor ecx, ecx
mov word [eax], cx
jmp 0x4425f8
push 0
push 1
call fcn.00401280
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], dl
jne 0x4425d3
mov edi, dword [esi + 0xc]
jmp 0x4425d5
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4425ed
test byte [edi + 0x15], 8
je 0x4425e8
mov eax, edi
call fcn.004011c0
lea eax, [edi + 0xc]
jmp 0x4425f2
mov eax, 0x4db3d4
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x442601
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x442621
cmp dword [0x4db21c], 0
je 0x442621
mov ecx, 0x4db210
call fcn.004050c0
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 0x4433b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004a7840
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
mov esi, dword [0x4d95e0]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x443464
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00482b00
test eax, eax
jne 0x443402
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 0x443425
push eax
push 1
mov ecx, esi
call fcn.00401280
xor edx, edx
mov word [eax], dx
cmp byte [esi + 0x17], 0
jne 0x44342e
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x443451
cmp dword [0x4db21c], 0
je 0x443451
mov ecx, 0x4db210
call fcn.004050c0
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 0x443471
mov eax, 0x4af9bc
push 1
push 0
push edi
push eax
push esi
call fcn.00482b00
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x4458c0
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 [0x4db198]
push eax
mov edi, 0x4af9bc
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 0x445927
lea ecx, [esp + 0x90]
push ecx
call fcn.00445e70
add esp, 4
test eax, eax
je 0x44591a
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call ebp
cmp eax, 0xffffffff
jne 0x445927
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x288
ret
cmp byte [esp + 0x29c], 0
je 0x445952
test bl, bl
je 0x445952
push esi
push str._script__s
mov esi, 0x40
lea edi, [esp + 0x18]
call fcn.0047f770
mov esi, dword [0x4db194]
add esp, 8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0x4da6c0
mov edx, esi
call fcn.0043b080
test eax, eax
mov eax, dword [0x4d6d34]
setne bl
test eax, eax
je 0x445981
mov eax, dword [eax]
test eax, eax
jne 0x445986
mov eax, 0x4af9bc
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 0x445e70
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 0x445eb0
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x445f15
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 0x445f43
mov eax, dword [esp + 0x10]
test eax, eax
je 0x445f43
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x445f23
test eax, eax
je 0x445f15
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x445f0d
sub ecx, 2
dec eax
jne 0x445f01
mov dword [esp + 0x10], eax
test eax, eax
jne 0x445f4c
test edi, edi
jne 0x445f4c
mov edi, pe_nt_image_headers32
jmp 0x445e88
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x445f3a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x445f15
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x445f11
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x445f15
mov esi, dword [esp + 0x224]
test esi, esi
je 0x445f6f
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 0x445f60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x449670
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [0x4d95e0]
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.00419410
mov bl, al
add esp, 0xc
test bl, bl
jne 0x44970f
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0045b2a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4496d2
push 1
push eax
push 0xffffffffffffffff
push 0x4af9bc
push ebp
call fcn.00482b00
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.0045b550
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00482420
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 0x449733
push 2
push esi
call fcn.0049b39c
add esp, 8
test eax, eax
je 0x449733
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x50
je 0x44974b
xor ecx, ecx
cmp eax, 0x54
setne cl
lea eax, [ecx - 1]
and eax, 2
jmp 0x449750
mov eax, 1
push eax
call fcn.0045b4a0
add esp, 4
test al, al
mov eax, 0x4bbc38
jne 0x449767
mov eax, 0x4bbc3c
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00482b00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4

Function at 0x449790
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4d95e0]
sub esp, 0x224
push ebx
push esi
push edi
mov esi, eax
call fcn.0041a440
test esi, esi
je 0x449889
cmp word [esi], 0
je 0x449889
push 0x103
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0049cae4
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 0x4497e2
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x26], 0x5c
je 0x449819
lea edx, [eax + 1]
cmp edx, 0x104
jae 0x449889
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 0x449889
cmp byte [ebp + 0xc], 0
je 0x449847
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
jmp 0x44984f
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4d9ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9cc
push ecx
call fcn.00482b00
mov eax, dword [0x4d95e0]
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 [0x4d5b14]
test byte [edx + 0x100], 1
jne 0x4498b7
mov eax, dword [0x4d9ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4b360c
push eax
call fcn.00482b00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 8]
push 0x4af9bc
push 0
push 0x4b360c
call fcn.00439c30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44b7b0
Capabilities:
Set current directory

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, eax
movzx eax, word [esi]
test ax, ax
je 0x44b7e5
cmp word [esi + 2], 0x3a
jne 0x44b7e5
cmp word [esi + 4], 0
jne 0x44b7e5
xor edx, edx
mov word [esp + 8], ax
mov dword [esp + 0xa], 0x5c003a
mov word [esp + 0xe], dx
lea esi, [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x44b840
cmp byte [0x4db1a4], al
je 0x44b867
mov eax, dword [0x4d5b14]
test byte [eax + 0x100], 1
jne 0x44b823
mov ecx, dword [0x4d9ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4b360c
push ecx
call fcn.00482b00
pop esi
pop ebx
add esp, 0xc
ret
mov ebx, dword [0x4dacf4]
push 0x4af9bc
push 0
push 0x4b360c
call fcn.00439c30
pop esi
pop ebx
add esp, 0xc
ret
cmp byte [0x4db1a4], 0
je 0x44b867
mov ecx, esi
call fcn.0044b870
mov edx, dword [0x4d9ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9cc
push edx
call fcn.00482b00
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x44b870
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004a7840
push esi
lea eax, [esp + 4]
push eax
push 0x8000
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x44b8a9
lea esi, [esp + 4]
push 0x4d6d30
mov eax, esi
call fcn.0045bca0
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x44b8b9
push 0x4d6d30
mov eax, esi
call fcn.0045bca0
pop esi
add esp, 0x10000
ret

Function at 0x44b8d0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004a7840
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x44b900
lea ecx, [esp]
push ecx
call fcn.0049b816
add esp, 4
add esp, 0x10000
ret
xor eax, eax
add esp, 0x10000
ret
Function at 0x44bf60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44bf8a
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
shr eax, 4
pop edi
and eax, 1
pop esi
ret
push 0x5c
push edi
call fcn.00499fe2
mov esi, eax
add esp, 8
cmp esi, edi
jbe 0x44bfbf
cmp word [esi - 2], 0x3a
je 0x44bfbf
xor eax, eax
push edi
mov word [esi], ax
call fcn.0044bf60
add esp, 4
mov ecx, 0x5c
mov word [esi], cx
test al, al
jne 0x44bfbf
pop edi
pop esi
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44bfde
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x44bfde
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret