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

Disassembly:
sub esp, 0x2c
mov cx, word [0x4c43fc]
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.004095d0
test eax, eax
je 0x41c699
cmp eax, ebp
jbe 0x41c6b3
sub eax, 2
jmp 0x41c6b3
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c6a0
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41c6d4
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41c6cd
cmp eax, 9
jne 0x41c6d4
sub edi, 2
cmp edi, ebp
ja 0x41c6c0
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41c705
cmp byte [esp + 0x4c], 0
je 0x41c6f9
mov ecx, dword [esp + 0x40]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.00430710
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.00491724
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 0x42d5a0
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
mov eax, dword [0x4c8124]
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
cmp eax, dword [0x4c43e0]
jl 0x42d5c9
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov esi, dword [0x4c87b4]
cmp byte [esi + 0x17], 0
jne 0x42d5d8
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x42d5e5
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42d5fe
test byte [esi + 0x15], 4
je 0x42d5f9
mov eax, esi
call fcn.00430cc0
mov eax, dword [esi + 8]
jmp 0x42d60e
cmp al, 2
jne 0x42d609
call fcn.00401000
jmp 0x42d60e
mov eax, 0x4ca0b8
push 0x7f
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00491724
mov eax, dword [0x4c440c]
inc dword [0x4c8124]
add eax, 0x108
xor edx, edx
mov edi, eax
mov word [esp + 0x122], dx
mov ecx, 0x42
mov esi, 0x4c6bf0
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov esi, eax
xor ebx, ebx
mov dword [0x4c440c], eax
push ebx
mov eax, 0x4ca140
mov dword [esi + 0x2c], ebx
call fcn.00415d30
mov dword [0x4cac10], ebx
mov dword [0x4cac14], ebx
cmp dword [0x4c8154], ebx
je 0x42d67c
push 0x4c87b8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or eax, 0xffffffff
cmp byte [esi + 0xea], bl
jne 0x42d696
mov byte [esi + 0xea], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x4cac1c], ebx
je 0x42d6ac
cmp dword [0x4cac18], ebx
jne 0x42d6b4
cmp byte [esi + 0xea], bl
je 0x42d6dd
mov byte [esi + 0xe8], bl
cmp byte [esi + 0xea], bl
jne 0x42d6dd
cmp dword [0x4cac1c], ebx
jl 0x42d6d7
call edi
mov dword [esi + 0xd8], eax
mov eax, dword [0x4cac1c]
mov dword [esi + 0xdc], eax
mov eax, dword [0x4cab8c]
mov ebx, dword [0x4cab90]
mov ecx, dword [0x4cabe4]
mov edx, dword [0x4cabe8]
mov ebp, eax
mov dword [0x4cab90], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [0x4cabe8], ecx
mov dword [0x4cab8c], eax
call edi
mov esi, dword [esp + 0x120]
mov ecx, dword [0x4c440c]
mov dword [0x4cac24], eax
mov dword [0x4cac20], eax
mov dword [0x4cabe4], eax
mov dword [0x4ca770], esi
cmp byte [ecx + 0xf5], 0
je 0x42d777
mov edx, dword [0x4ca060]
mov dword [edx*4 + 0x4c9a20], esi
call edi
mov ecx, dword [0x4ca060]
mov dword [ecx*4 + 0x4c78c0], eax
inc ecx
mov dword [0x4ca060], ecx
cmp ecx, 0x190
jl 0x42d777
mov dword [0x4ca060], 0
push 0
push 0xffffffffffffffff
push 0
push esi
call fcn.0045c650
mov esi, eax
cmp esi, 1
jne 0x42d799
mov eax, dword [esp + 0x120]
push eax
call fcn.0042bbf0
mov esi, eax
mov ecx, dword [0x4c440c]
mov edx, dword [ecx + 0xc0]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [0x4c8144], edx
lea edx, [esp + 0x18]
push edx
mov dword [0x4cab8c], ebp
mov dword [0x4cabe4], eax
mov dword [0x4cab90], ebx
mov dword [0x4cabe8], ecx
call fcn.00403620
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
Function at 0x430b90
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.0049a220
cmp dword [esp + 0x4008], 0
push ebx
push ebp
mov ebp, dword [esp + 0x4018]
mov ebx, ecx
je 0x430cb3
test ebx, ebx
jne 0x430bc8
mov eax, dword [esp + 0x400c]
mov ebx, dword [eax + 0x630]
test ebx, ebx
je 0x430bd2
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x430bdf
mov ecx, dword [eax + 0x26c]
movzx eax, word [eax + 0x270]
mov edx, dword [esp + 0x4014]
mov ecx, dword [ecx*4 + 0x4c7f50]
push esi
push edi
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.004756c0
add esp, 0x10
cmp word [ebp], 0
lea edi, [esp + eax*2 + 0x10]
je 0x430c30
lea eax, [esp + 0x10]
mov edx, edi
sub edx, eax
sar edx, 1
push ebp
push str._____Specifically:__s_n
sub esi, edx
call fcn.004756c0
add esp, 8
mov esi, dword [esp + 0x4018]
cmp esi, 3
jne 0x430c5f
call fcn.0048efdd
add eax, 0x20
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00490a09
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x430cb1
test ebx, ebx
jne 0x430c84
mov ecx, dword [esp + 0x4014]
mov ebx, dword [ecx + 0x630]
test ebx, ebx
je 0x430ca3
mov eax, dword [esp + 0x401c]
push ebp
push 1
push eax
mov ecx, ebx
call fcn.00430450
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
mov edx, dword [esp + 0x401c]
push ebp
push edx
call fcn.00430710
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
Function at 0x437970
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.00445630
mov edi, eax
test edi, edi
je 0x43799e
mov esi, dword [esp + 0x1c]
push edi
call fcn.00479d00
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4379e9
mov ecx, dword [0x4c440c]
cmp byte [ecx + 0x104], 0
jne 0x4379cc
mov edx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a531c
push edx
call fcn.00478360
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x4acd84
push 0
push 0x4a531c
call fcn.00430190
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 0x437a21
cmp ebp, dword [0x4ca0cc]
je 0x437a21
mov esi, edi
call fcn.0047a220
test al, al
jne 0x437a21
mov eax, dword [0x4ca0cc]
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 0x437a5f
mov edx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2900
push edx
call fcn.00478360
mov eax, dword [0x4c440c]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x437a5f
push 1
push eax
call fcn.00401340
add esp, 8
test bl, bl
je 0x437a73
mov ecx, dword [0x4ca0cc]
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 0x4388d0
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 edi, ecx
call fcn.00432490
mov ebx, eax
test ebx, ebx
jne 0x438903
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.00430450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x43890f
jmp dword [eax*4 + 0x438b08]
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x43892a
push eax
call fcn.00456870
add esp, 4
jmp 0x438930
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4c87b4]
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00456870
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4389a8
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4389a8
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 [0x4c87b4]
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 ecx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2900
push ecx
call fcn.00478360
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx edx, word [edi]
push edx
call fcn.00490b7d
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4389e6.67
movzx eax, byte [eax + 0x438b38]
jmp dword [eax*4 + 0x438b1c]
mov esi, 0x40
jmp 0x438a15
mov esi, 0x4000
jmp 0x438a15
mov esi, 0x20
jmp 0x438a15
mov esi, 0x8000
jmp 0x438a15
mov esi, 0x80
jmp 0x438a15
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x438a29
push eax
call fcn.00456870
add esp, 4
jmp 0x438a2f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x4389a8
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4389a8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x43897c
mov edx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2900
push edx
call fcn.00478360
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [edi], 0
je 0x438aa9
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.004130a0
fmul qword [0x4bf1c8]
call fcn.0049d350
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x438ab0
mov byte [esp + 0x13], 1
xor edi, edi
mov eax, dword [ebp + 0xc]
push eax
call fcn.00456870
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x438acd
test esi, esi
jne 0x43898b
jmp 0x438ad1
test esi, esi
je case.0x4389e6.67
cmp byte [esp + 0x13], 0
jne 0x438aef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x43898b
push 1
push 0x64
call fcn.00401340
add esp, 8
jmp 0x438ab0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x439380
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4c7f00]
push eax
mov eax, dword [esp + 0x18]
call fcn.00445630
mov ebp, eax
test ebp, ebp
je 0x4393a6
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
jmp 0x4393ab
mov ebx, 1
push 1
push 0
lea ecx, [ebx - 1]
push ecx
push 0
push edi
call fcn.00478360
cmp eax, 1
je 0x4393c9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebp, ebp
je 0x4394de
cmp byte [edi + 0x17], 0
jne 0x4393dc
mov esi, dword [edi + 0xc]
jmp 0x4393de
mov esi, edi
test byte [esi + 0x15], 8
je 0x4393eb
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x439404
test byte [esi + 0x15], 4
je 0x4393ff
mov eax, esi
call fcn.00430cc0
mov eax, dword [esi + 8]
jmp 0x439414
cmp al, 2
jne 0x43940f
call fcn.00401000
jmp 0x439414
mov eax, 0x4ca0b8
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x17], 0
mov ebx, eax
jne 0x43942a
mov esi, dword [edi + 0xc]
jmp 0x43942c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x439444
test byte [esi + 0x15], 8
je 0x43943f
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x439449
mov eax, 0x4cae08
lea edx, [ebx + ebx]
mov dword [eax], edx
cmp byte [edi + 0x17], 0
jne 0x439459
mov esi, dword [edi + 0xc]
jmp 0x43945b
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x439473
test byte [esi + 0x15], 8
je 0x43946e
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x439478
mov eax, 0x4cae08
test dword [eax], 0xfffffffe
jne 0x439555
cmp byte [edi + 0x17], 0
jne 0x43948f
mov esi, dword [edi + 0xc]
jmp 0x439491
mov esi, edi
test byte [esi + 0x15], 8
je 0x43949e
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4394bf
test byte [esi + 0x15], 4
je 0x4394b2
mov eax, esi
call fcn.00430cc0
mov eax, dword [esi + 8]
xor ecx, ecx
mov word [eax], cx
jmp 0x439555
cmp al, 2
jne 0x4394d2
call fcn.00401000
xor ecx, ecx
mov word [eax], cx
jmp 0x439555
mov eax, 0x4ca0b8
xor ecx, ecx
mov word [eax], cx
jmp 0x439555
cmp byte [edi + 0x17], 0
jne 0x4394e9
mov esi, dword [edi + 0xc]
jmp 0x4394eb
mov esi, edi
test byte [esi + 0x15], 8
je 0x4394f8
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x439511
test byte [esi + 0x15], 4
je 0x43950c
mov eax, esi
call fcn.00430cc0
mov eax, dword [esi + 8]
jmp 0x439521
cmp al, 2
jne 0x43951c
call fcn.00401000
jmp 0x439521
mov eax, 0x4ca0b8
xor edx, edx
mov word [eax], dx
cmp byte [edi + 0x17], dl
jne 0x439530
mov esi, dword [edi + 0xc]
jmp 0x439532
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x43954a
test byte [esi + 0x15], 8
je 0x439545
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x43954f
mov eax, 0x4cae08
mov dword [eax], 0
cmp byte [edi + 0x17], 0
jne 0x43955e
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x43957e
cmp dword [0x4ca0f0], 0
je 0x43957e
mov ecx, 0x4ca0e4
call fcn.00404270
pop edi
pop esi
pop ebp
pop ebx
ret 4
and byte [edi + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x43a3b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.0049a220
push ebp
mov ebp, dword [0x4c7f00]
push esi
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x7fff
jb 0x43a4da
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push ebp
call fcn.00478360
test eax, eax
jne 0x43a400
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
cmp byte [ebp + 0x17], 0
jne 0x43a40b
mov esi, dword [ebp + 0xc]
jmp 0x43a40d
mov esi, ebp
test byte [esi + 0x15], 8
je 0x43a41a
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43a433
test byte [esi + 0x15], 4
je 0x43a42e
mov eax, esi
call fcn.00430cc0
mov eax, dword [esi + 8]
jmp 0x43a443
cmp al, 2
jne 0x43a43e
call fcn.00401000
jmp 0x43a443
mov eax, 0x4ca0b8
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x43a497
cmp byte [ebp + 0x17], al
jne 0x43a45a
mov esi, dword [ebp + 0xc]
jmp 0x43a45c
mov esi, ebp
test byte [esi + 0x15], 8
je 0x43a469
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43a482
test byte [esi + 0x15], 4
je 0x43a47d
mov eax, esi
call fcn.00430cc0
mov eax, dword [esi + 8]
jmp 0x43a492
cmp al, 2
jne 0x43a48d
call fcn.00401000
jmp 0x43a492
mov eax, 0x4ca0b8
xor edx, edx
mov word [eax], dx
cmp byte [ebp + 0x17], 0
jne 0x43a4a2
mov eax, dword [ebp + 0xc]
jmp 0x43a4a4
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x43a4c7
cmp dword [0x4ca0f0], 0
je 0x43a4c7
mov ecx, 0x4ca0e4
call fcn.00404270
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
and byte [eax + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x43a4e7
mov eax, 0x4acd84
push 1
push 0
push edi
push eax
push ebp
call fcn.00478360
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x43cca0
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 0x43cce0
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43cd45
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 0x43cd73
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43cd73
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43cd53
test eax, eax
je 0x43cd45
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43cd3d
sub ecx, 2
dec eax
jne 0x43cd31
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43cd7c
test edi, edi
jne 0x43cd7c
mov edi, 0x100
jmp 0x43ccb8
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43cd6a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43cd45
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43cd41
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43cd45
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43cd9f
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 0x43cd90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x4406b0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [0x4c7f00]
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [edi]
test cx, cx
je 0x440795
cmp word [edi + 2], 0
jne 0x440715
cmp ecx, 0xa
jne 0x4406e9
mov al, 0xd
jmp 0x44078f
push eax
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x440709
cmp cl, 0xff
jne 0x440709
xor al, al
jmp 0x44078f
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x44078f
mov esi, ecx
test esi, 0xffffff80
jne 0x440731
push 2
push esi
call fcn.0048fc7e
add esp, 8
test eax, eax
je 0x440731
and esi, 0xffffffdf
cmp si, 0x56
jne 0x440758
mov ax, word [edi + 2]
call fcn.004095a0
cmp ax, 0x4b
jne 0x440758
push 0x10
lea ecx, [edi + 4]
push 0
push ecx
call fcn.0049005b
add esp, 0xc
jmp 0x44078f
xor esi, esi
lea ebx, [ebx]
mov edx, dword [esi*8 + 0x4c5218]
push edi
push edx
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4407c8
inc esi
cmp esi, 0x6d
jl 0x440760
mov eax, edi
call fcn.004121d0
movzx ecx, ax
test cx, cx
je 0x440795
call fcn.00412950
mov bl, al
test bl, bl
jne 0x44080e
push 0
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.004518b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4407d1
push 1
push eax
push 0xffffffffffffffff
push 0x4acd84
push ebp
call fcn.00478360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov bl, byte [esi*8 + 0x4c521c]
jmp 0x440791
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.00451b60
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00477c80
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 0x440832
push 2
push esi
call fcn.0048fc7e
add esp, 8
test eax, eax
je 0x440832
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x50
je 0x44084a
xor ecx, ecx
cmp eax, 0x54
setne cl
lea eax, [ecx - 1]
and eax, 2
jmp 0x44084f
mov eax, 1
push eax
call fcn.00451ab0
add esp, 4
test al, al
mov eax, 0x4abd74
jne 0x440866
mov eax, 0x4abd78
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00478360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
Function at 0x440880
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
push esi
mov esi, ecx
mov ecx, dword [0x4c7f00]
push edi
call fcn.004130e0
test esi, esi
je 0x4409f9
cmp word [esi], 0
je 0x4409f9
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00491724
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x30]
mov word [esp + 0x238], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4408d1
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
je 0x440908
lea edx, [eax + 1]
cmp edx, 0x105
jae 0x4409f9
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0x30], cx
mov word [esp + eax*2 + 0x32], dx
test byte [0x4cb71c], 1
jne 0x440936
or dword [0x4cb71c], 1
push str.GetDiskFreeSpaceExW
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb718], eax
jmp 0x44093b
mov eax, dword [0x4cb718]
test eax, eax
je 0x440987
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
call eax
test eax, eax
je 0x4409f9
test bl, bl
je 0x440974
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x4409c7
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x4409c7
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x4409f9
mov eax, dword [esp + 0x14]
test bl, bl
jne 0x4409b6
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
shr eax, 0x14
mov esi, eax
xor edi, edi
mov edx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2900
push edx
call fcn.00478360
mov eax, dword [0x4c7f00]
push 0x18
push edi
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4c440c]
cmp byte [eax + 0x104], 0
jne 0x440a26
mov ecx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a531c
push ecx
call fcn.00478360
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4acd84
push 0
push 0x4a531c
call fcn.00430190
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x442890
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x218
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call ebp
test eax, eax
jne 0x4428bd
cmp byte [0x4cac08], al
je 0x442969
call fcn.00409780
pop ebp
add esp, 0x218
ret
cmp byte [0x4cac08], 0
push ebx
push esi
mov esi, 0x4c87b8
jne 0x4428d1
lea esi, [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push 0x104
call ebx
test eax, eax
je 0x44292f
cmp word [edi], 0
je 0x442947
cmp word [edi + 2], 0x3a
jne 0x442947
cmp word [edi + 4], 0
jne 0x442947
push esi
push edi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x442947
push edi
lea ecx, [esp + 0x10]
push 0x4ac208
push ecx
call fcn.0048ee33
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call ebp
test eax, eax
je 0x442947
push esi
push 0x104
call ebx
test eax, eax
jne 0x442947
push 0x103
push edi
push esi
call fcn.00491724
add esp, 0xc
xor eax, eax
mov word [esi + 0x206], ax
cmp byte [0x4cac08], 0
pop esi
pop ebx
je 0x442969
mov ecx, dword [0x4c87b4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a2900
push ecx
call fcn.00478360
pop ebp
add esp, 0x218
ret