joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003270
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400032cd
lea rbx, [0x1400585f0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400032b4
cmp r10, 2
jb 0x1400032b4
cmp byte [r9], r8b
jne 0x1400032b4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140003290
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000330f
lea rbx, [0x1400585f0]
cmp r8b, 0x23
jne 0x1400032f3
cmp byte [r9], r8b
jne 0x1400032f3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400032e0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400034d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x1400034ff
mov r8d, 0x790
lea rdx, str.C:UserswavyDownloadsPlatinum_MenuPlatinum_Menuimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x14000350b
mov qword [rdi], 0
lea rdx, [0x140057e48]
mov rcx, rbx
call fcn.140003320
mov rbx, rax
test rax, rax
jne 0x14000352d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140003606
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003606
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140003606
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003606
cmp rsi, 0xffffffffffffffff
je 0x140003606
mov rax, qword [0x1400987c8]
test rax, rax
je 0x1400035a3
inc dword [rax + 0xfc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140003606
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x1400035f3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400987c8]
test rax, rax
je 0x1400035e8
dec dword [rax + 0xfc]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000360f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140003601
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140003611
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140006fd0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xf0], 0
mov rbx, rcx
movsxd rdi, edx
jg 0x140007007
mov r8d, 0x716
lea rdx, str.C:UserswavyDownloadsPlatinum_MenuPlatinum_Menuimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0xf8]
lea rdx, [0x1400585f0]
movsxd r8, dword [rbx + 0xf0]
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [0x1400987c8]
not ebx
cmp dword [rcx + 0x3f34], ebx
jne 0x140007086
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.14001ecb0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400070a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx + 0xf0], 0
mov rdi, rdx
mov rbx, rcx
jg 0x1400070d3
mov r8d, 0x716
lea rdx, str.C:UserswavyDownloadsPlatinum_MenuPlatinum_Menuimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movss xmm0, dword [rbx + 0x110]
lea r10, [0x1400585f0]
movsxd rcx, dword [rbx + 0xf0]
mov rax, qword [rbx + 0xf8]
movss xmm2, dword [rdi]
movss xmm1, dword [rbx + 0x114]
subss xmm2, xmm0
movss xmm3, dword [rdi + 4]
mov r9d, dword [rax + rcx*4 - 4]
subss xmm3, xmm1
movss xmm4, dword [rdi + 8]
not r9d
movzx ecx, r9b
subss xmm4, xmm0
movss xmm0, dword [rdi + 0xc]
shr r9d, 8
subss xmm0, xmm1
movd r8d, xmm2
movss dword [rsp + 0x20], xmm2
movzx eax, byte [rsp + 0x20]
xor rcx, rax
movss dword [rsp + 0x24], xmm3
mov eax, r8d
movss dword [rsp + 0x28], xmm4
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
movss dword [rsp + 0x2c], xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0x24]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm3
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0x28]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm4
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
shr eax, 8
movzx edx, al
movzx ecx, r9b
mov rbx, qword [rsp + 0x40]
xor rdx, rcx
shr r9d, 8
mov eax, r8d
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0x2c]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
shr r8, 0x18
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx edx, r9b
shr r9d, 8
xor r8, rdx
xor r9d, dword [r10 + r8*4]
not r9d
mov eax, r9d
add rsp, 0x30
pop rdi
ret
Function at 0x140017700
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1400987c8]
mov edi, ecx
cmp byte [rbx + 0x4a85], 0
jne 0x140017752
cmp byte [rbx + 0x4a86], 0
jne 0x140017752
movsx r9d, word [rbx + 0x5baa]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140003130
test dil, 1
je 0x140017878
jmp 0x1400177dd
movss xmm1, dword [rbx + 0x38a0]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x140060138]
xor eax, eax
mov edx, 0x10
mulss xmm1, dword [0x140060118]
addss xmm0, dword [rbx + 0xe04]
addss xmm1, dword [rbx + 0xe08]
mov qword [rbx + 0x47d8], rax
mov dword [rbx + 0x47c4], 1
movss dword [rbx + 0x47d0], xmm0
movss dword [rbx + 0x47d4], xmm1
movss xmm0, dword [rbx + 0x3908]
mulss xmm0, dword [0x14006004c]
or dword [rbx + 0x47c0], 0x41
movss dword [rbx + 0x4820], xmm0
movsx r9d, word [rbx + 0x5baa]
call fcn.140003130
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140017830
lea r11, [0x1400585f0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140017813
cmp byte [r8], r9b
jne 0x140017813
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140017800
not ecx
call fcn.14000bfd0
test rax, rax
je 0x140017878
cmp byte [rax + 0xb2], 0
je 0x140017878
mov byte [rax + 0xb9], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5baa]
mov edx, 0x10
movsx r9d, word [rbx + 0x5baa]
call fcn.140003130
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000f020
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001d420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c90], 0
lea rbx, [rcx + 0x5c98]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001d4c7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001d47a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001fb90
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003c10
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c90]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5ca0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400987c0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001d4cf
mov rcx, rbx
call fcn.140003c10
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001da60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx r8d, byte [rcx]
lea rdx, [rcx + 1]
mov r14, qword [0x1400987c8]
mov r9d, 0xffffffff
mov ebx, r9d
test r8b, r8b
je 0x14001dac4
lea r10, [0x1400585f0]
cmp r8b, 0x23
jne 0x14001daa7
cmp byte [rdx], r8b
jne 0x14001daa7
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14001da94
mov eax, dword [r14 + 0x5c08]
xor edi, edi
mov qword [rsp + 0x30], rbp
not ebx
mov qword [rsp + 0x38], rsi
test eax, eax
jle 0x14001db25
mov esi, edi
mov ebp, edi
test rsi, rsi
js 0x14001daea
cmp edi, eax
jl 0x14001db04
mov r8d, 0x70d
lea rdx, str.C:UserswavyDownloadsPlatinum_MenuPlatinum_Menuimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [r14 + 0x5c10]
cmp dword [rax + rbp + 8], ebx
je 0x14001db42
mov eax, dword [r14 + 0x5c08]
inc edi
inc rsi
add rbp, 0x48
cmp edi, eax
jl 0x14001dae1
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test edi, edi
js 0x14001db4f
cmp edi, dword [r14 + 0x5c08]
jl 0x14001db69
mov r8d, 0x70d
lea rdx, str.C:UserswavyDownloadsPlatinum_MenuPlatinum_Menuimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, edi
lea rcx, [rax + rax*8]
mov rax, qword [r14 + 0x5c10]
lea rax, [rax + rcx*8]
jmp 0x14001db27
Function at 0x14005022c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140050276
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140050276
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140050276
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140050276
cmp dword [rcx + 0x84], 0xe
jbe 0x140050276
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140050278
xor al, al
add rsp, 0x28
ret
Function at 0x14000145d
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
sub rsp, 0x28
mov qword [rsp + 0x28], 0
mov r15, qword [0x1400201d8]
cmp r15, 1
jne 0x1400014bd
mov qword [0x1400201d8], 0
movabs rcx, 0x17
call sub.USER32.dll_GetSystemMetrics
and rax, rax
je 0x1400014bd
mov rax, qword [reloc.OLEAUT32.dll_SysReAllocString]
mov rdx, qword [0x1400201e0]
mov qword [reloc.OLEAUT32.dll_SysReAllocString], rdx
mov qword [0x1400201e0], rax
push qword [rsp + 0x40]
mov r15, 1
cmp r15, qword [rsp]
jne 0x1400014f8
sub rsp, 8
mov rcx, qword [0x1400201e0]
sub rsp, 0x20
call sub.USER32.dll_GetAsyncKeyState
add rsp, 0x28
mov r15, rax
sar r15, 0xf
and r15, 1
mov qword [rsp + 0x30], r15
jmp 0x140001567
mov r15, 3
cmp r15, qword [rsp]
jne 0x140001532
sub rsp, 8
movabs rcx, 4
sub rsp, 0x20
call sub.USER32.dll_GetAsyncKeyState
add rsp, 0x28
mov r15, rax
sar r15, 0xf
and r15, 1
mov qword [rsp + 0x30], r15
jmp 0x140001567
mov r15, 2
cmp r15, qword [rsp]
jne 0x140001567
sub rsp, 8
mov rcx, qword [reloc.OLEAUT32.dll_SysReAllocString]
sub rsp, 0x20
call sub.USER32.dll_GetAsyncKeyState
add rsp, 0x28
mov r15, rax
sar r15, 0xf
and r15, 1
mov qword [rsp + 0x30], r15
add rsp, 8
mov rax, qword [rsp + 0x28]
jmp 0x140001575
add rsp, 0x30
pop r15
ret
Function at 0x140001bb0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
xor rax, rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
mov rax, qword [rsp + 0x70]
mov qword [0x140034aa0], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400182f0
add rsp, 0x10
mov rax, qword [0x140034aa0]
push rax
sub rsp, 8
push rax
movabs rcx, 0x100
pop rdx
sub rsp, 0x20
call fcn.140013d60
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.140018090
mov rax, qword [0x140034aa0]
push rax
sub rsp, 8
push rax
movabs rcx, 0x100
pop rdx
sub rsp, 0x20
call fcn.140013d60
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.140018090
mov rcx, qword [rsp + 0x28]
push qword [0x140034aa0]
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
movabs rcx, 0x14001f75e
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call fcn.140018090
push 0xff
mov rax, qword [rsp + 0x40]
push rax
push 0
push 0
push 0
push 0xff
mov rax, qword [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_GetVolumeInformationW
add rsp, 0x40
mov rcx, qword [rsp + 0x30]
push qword [0x140034aa0]
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
pop rax
add rax, qword [0x140034ac0]
jmp 0x140001cef
push rax
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
pop rax
add rsp, 0x48
ret

Function at 0x1400028e4
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
push 2
movabs rax, str.SeShutdownPrivilege
mov rcx, rax
pop rdx
call fcn.140002a5f
sub rsp, 8
movsx rax, byte [rsp + 0x38]
push rax
push 0
push 1
movabs rax, str.Exit
mov rdx, rax
movabs rcx, 0
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_InitiateSystemShutdownW
add rsp, 0x30
xor rax, rax
add rsp, 0x28
ret
Function at 0x1400053a3
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
xor rax, rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
mov rax, qword [rsp + 0x70]
mov qword [0x140034aa0], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400182f0
add rsp, 0x10
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.1400182f0
add rsp, 0x10
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.1400182f0
add rsp, 0x10
mov rax, qword [0x140034aa0]
push rax
sub rsp, 8
push rax
movabs rcx, 0x200
pop rdx
sub rsp, 0x20
call fcn.140013d60
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call fcn.140018090
mov rax, qword [rsp + 0x28]
push rax
push 0x200
mov rax, qword [rsp + 0x50]
push rax
movabs rax, 0x14001e028
push rax
mov rax, qword [rsp + 0x58]
push rax
mov rax, qword [rsp + 0x58]
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_GetPrivateProfileStringW
add rsp, 0x30
mov rcx, qword [rsp + 0x40]
push qword [0x140034aa0]
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
pop rax
add rax, qword [0x140034ac0]
jmp 0x1400054af
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
pop rax
add rsp, 0x48
ret
Function at 0x1400082a8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x1400082d6
dec edi
mov edx, ebx
mov ecx, edi
call fcn.1400183c0
lea r8d, [rdi + 1]
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rsi, qword [rsp + 0x40]
movsxd rcx, edi
mov word [rbx + rcx*2], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400089a8
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140034b20]
call fcn.140017208
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x140008aa5
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x1400089ff
add rax, 2
cmp word [rax], 0x20
je 0x1400089f5
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x140008a3d
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x140008a7d
cmp cx, r9w
je 0x140008a2f
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140008a1d
cmp word [rax], bp
je 0x140008a7d
mov rcx, rax
add rax, 2
jmp 0x140008a85
test dx, dx
je 0x140008a82
mov rbx, rax
cmp dx, 0x20
je 0x140008a2f
add rax, 2
cmp word [rax], r9w
jne 0x140008a73
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x140008a7d
cmp cx, r9w
je 0x140008a73
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140008a61
movzx edx, word [rax]
test dx, dx
jne 0x140008a45
jmp 0x140008a2f
mov rcx, rax
jmp 0x140008a85
mov r8d, ebp
cmp dword [r14], esi
jne 0x140008a8f
test rdi, rdi
jne 0x140008aaf
test r8d, r8d
je 0x140008a96
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x1400089ef
test rdi, rdi
jne 0x140008ac4
movsxd rax, esi
jmp 0x140008ac6
test rbx, rbx
je 0x140008ac4
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x140008ac6
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14000c000
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
xor ebp, ebp
mov rdi, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rsi, rax
lea eax, [rbx + 9]
test rsi, rsi
je 0x14000c0c2
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14000c203
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x14000c203
mov rcx, qword [0x140034ca0]
lea rdx, [rsi - 1]
call fcn.140017288
mov ebp, 1
cmp dword [rax + 0x20], 0
mov rbx, rax
jle 0x14000c203
mov rax, qword [rax + 8]
movsxd r8, dword [rbx + 0x20]
xor edx, edx
xor ecx, ecx
lea r10d, [rbp + 8]
cmp word [rcx + rax + 2], r10w
jne 0x14000c0b3
mov r9d, 0xfa01
cmp word [rcx + rax + 4], r9w
je 0x14000c1fc
inc rdx
add rcx, 6
cmp rdx, r8
jl 0x14000c099
mov eax, r10d
mov sil, pe_nt_image_headers64
test rdi, rdi
je 0x14000c195
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x14000c195
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14000c195
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14000c195
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14000c195
lea rdx, [rsp + 0x20]
mov r8d, 0x10
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x14000c195
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14000c161
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x14000c180
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x14000c20d
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14000c20d
test r14, r14
je 0x14000c1d7
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14000c1ca
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14000c1ca
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x14000c1d7
mov edx, 1
mov rcx, r14
call fcn.14000c224
test rdi, rdi
je 0x14000c1f1
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x14000c20d
test rbx, rbx
je 0x14000c20d
mov rax, qword [rbx + 0x10]
jmp 0x14000c20f
xor ebp, ebp
jmp 0x14000c0bf
mov eax, 9
jmp 0x14000c0c2
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400146fc
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140034fe0], eax
add rsp, 0x28
ret

Function at 0x140014b94
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x140014cf6
cmp word [rcx], di
je 0x140014cf6
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x140014c33
cmp word [rsp + 0x22], 0x3a
jne 0x140014c33
cmp edx, 2
jne 0x140014c1a
lea rdx, [0x14001b758]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140014cf6
jmp 0x140014cce
cmp word [rcx], 0x5c
je 0x140014c3f
cmp word [rcx], 0x2f
jne 0x140014c48
mov word [rcx], di
sub rcx, 2
jmp 0x140014c33
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x140014c8f
test byte [rbp + 0x130], 0x10
je 0x140014c74
mov rbx, 0xfffffffffffffffe
jmp 0x140014c87
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140014cf6
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x140014ca4
cmp ax, cx
je 0x140014cba
cmp cx, 0x2f
jne 0x140014caf
cmp ax, cx
je 0x140014cba
cmp cx, 0x2e
jne 0x140014cf6
cmp ax, cx
jne 0x140014cf6
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014cd7
test al, 0x10
je 0x140014cf6
mov rbx, 0xfffffffffffffffe
jmp 0x140014cf6
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140014d10
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140014d2b
test rdx, rdx
je 0x140014d2b
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x140014d2d
xor eax, eax
add rsp, 0x28
ret

Function at 0x140014d34
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140014d5f
test dl, 2
je 0x140014d52
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x140014d61
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140014d68
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140014d79
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cdqe
add rsp, 0x28
ret