joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140094b50
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r12, r9
mov r14, r8
mov r15, rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], r9
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 8
lea r8, [rsp + 0x40]
mov edx, 0x80002000
mov r9d, select
call fcn.140093bb0
test eax, eax
je 0x140094bb8
xor eax, eax
jmp 0x140094ca1
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x18]
add r8, 0x10
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
movsxd rcx, dword [rax + 0x3c]
mov esi, dword [rcx + rax + 0x88]
test rsi, rsi
je 0x140094bc9
mov edx, dword [rax + rsi + 0x18]
lea r9, [rax + 1]
jmp 0x140094bfd
mov ecx, 0x7413006f
cmp ecx, 0xd0af21da
je 0x140094c38
sub rdx, 1
jb 0x140094bc9
mov ecx, dword [rax + rsi + 0x20]
add rcx, rax
mov edi, dword [rcx + rdx*4]
mov bl, byte [rax + rdi]
test bl, bl
je 0x140094bf0
add rdi, r9
mov ecx, 0x7413006f
nop dword [rax]
movsx ebx, bl
xor ebx, ecx
imul ecx, ebx, 0x1000193
movzx ebx, byte [rdi]
add rdi, 1
test bl, bl
jne 0x140094c20
jmp 0x140094bf5
mov ecx, dword [rax + rsi + 0x1c]
mov ebx, dword [rax + rsi + 0x24]
add rcx, rax
add rbx, rax
mov edx, edx
movzx edx, word [rbx + rdx*2]
mov ebx, dword [rcx + rdx*4]
add rbx, rax
mov rcx, qword [rsp + 0x38]
mov rdx, r14
mov r8, r12
call rbx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rcx, qword [r15 + 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
mov edx, 0x80002004
mov r9d, 8
call fcn.140093bb0
test eax, eax
sete al
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400b1374
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400b13ab
call fcn.1400b3a38
mov dword [rax], 0x16
call fcn.1400b4550
xor eax, eax
jmp 0x1400b143d
mov rdx, r9
mov rcx, r8
call fcn.1400b1460
mov rbx, rax
test rax, rax
je 0x1400b143a
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x1400b14c4]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400b1427
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b3a80
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400b140e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400b141d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400bf680
jmp 0x1400b143a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400b1437
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400b1590
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400b16a0
Function at 0x1400b78f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400a00f0
sub rsp, rax
mov rax, qword [0x1401129a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400c3fa0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400b7943
mov rax, rbp
jmp 0x1400b7a4f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x11c390]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400c871c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x11c390]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400b7a4b
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b7a4b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400c871c
test rax, rax
js 0x1400b7a4b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400b7a4b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400b7a3d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400b7a3d
cmp byte [rcx], 0xd
jne 0x1400b7a23
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400b7a32
cmp byte [rcx + 1], 0xa
jne 0x1400b7a32
inc rcx
jmp 0x1400b7a32
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x113680]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400b7a05
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400b7a4f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400a0150
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400c0228
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140125050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400c028d
test rax, rax
jne 0x1400c027b
lea r9, [0x1400e7d58]
lea r8, [0x1400e7d50]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.1400c0928
test rax, rax
je 0x1400c028d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1400d3960
jmp 0x1400c02a7
xor edx, edx
mov rcx, rbp
call fcn.1400c0518
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400c7878
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1400c78eb
cmp word [rcx], si
je 0x1400c78eb
lea rdx, [0x1400f68e0]
call fcn.1400d0fa0
test eax, eax
je 0x1400c78eb
lea rdx, [0x1400f68d8]
mov rcx, rbx
call fcn.1400d0fa0
test eax, eax
jne 0x1400c78e1
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400c7908
mov eax, dword [rsp + 0x30]
jmp 0x1400c791a
mov rcx, rbx
call fcn.1400cf048
jmp 0x1400c791a
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400c790c
xor eax, eax
jmp 0x1400c791a
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400c791a
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c792c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1400bf918
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400c79cf
cmp edi, dword [rsp + 0x30]
je 0x1400c79c8
test ebp, ebp
je 0x1400c79c8
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1400c79a4
sub dx, 0x61
cmp dx, 0x19
ja 0x1400c79b0
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1400c7991
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1400c79b4
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1400c79d1
mov eax, 1
jmp 0x1400c79d1
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c9154
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400c9184
xor eax, eax
jmp 0x1400c9247
mov rbp, rbx
cmp word [rax], si
je 0x1400c91a9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c9190
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c918c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400bf7d0
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400c91ea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c917d
call fcn.1400bf6e0
mov rdi, rax
test rax, rax
jne 0x1400c9200
xor ecx, ecx
call fcn.1400bf680
jmp 0x1400c91df
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400bf7d0
test eax, eax
jne 0x1400c9231
mov rcx, rdi
call fcn.1400bf680
jmp 0x1400c923b
xor ecx, ecx
call fcn.1400bf680
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400cbbbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400cbbd2
mov al, 1
jmp 0x1400cbc3e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400cbbe3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400cbc3c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400c9a64
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cbc3c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400cbc3c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400cbc3c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400cbc3e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400cc5ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x14011c390]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x1400cc642
cmp word [rdx], r9w
jne 0x1400cc642
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1400cc647
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1400cc7c6
mov r11d, select
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1400cc791
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1400cc68f
cmp rcx, r8
jae 0x1400cc6af
cmp word [rcx], r9w
jne 0x1400cc68f
add rax, 4
mov edx, r9d
jmp 0x1400cc692
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1400cc664
jmp 0x1400cc7c6
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cc78a
cmp dword [rsp + 0x80], edi
je 0x1400cc78a
lea r9, [0x14011c390]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1400cc764
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1400cc717
mov word [rbx], bp
jmp 0x1400cc7c3
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x1400cc732
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x1400cc7c3
cmp word [rsp + 0x70], bp
jne 0x1400cc770
cmp rbx, rsi
je 0x1400cc70f
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400c8678
cmp word [rsp + 0x70], bp
je 0x1400cc7c6
mov word [rbx], 0xd
jmp 0x1400cc7c3
mov rcx, r15
lea r9, [0x14011c390]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400cc7c0
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400cc7c6
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d2380
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a5e24
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400d240a
cmp byte [rbp - 0x21], r15b
je 0x1400d2405
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400d2440
call fcn.1400c0048
test eax, eax
jne 0x1400d242c
cmp byte [rbp - 0x21], r15b
je 0x1400d2424
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400d2440
cmp byte [rbp - 0x21], r15b
je 0x1400d243d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400a5ec0
test eax, eax
jne 0x1400d24e0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a5e24
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400d247f
cmp byte [rbp - 0x21], r15b
je 0x1400d24b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400d24b4
call fcn.1400c0048
test eax, eax
jne 0x1400d24a0
cmp byte [rbp - 0x21], r15b
je 0x1400d2499
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400d24b4
cmp byte [rbp - 0x21], r15b
je 0x1400d24b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400a5ec0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400d24e0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400d24e3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400d24f1
mov rcx, rdi
call fcn.1400bf680
cmp byte [rbp + 0x3f], r15b
je 0x1400d2500
mov rcx, qword [rbp + 0x27]
call fcn.1400bf680
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400d2f34
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400c8678
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400c8678
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400d3081
cmp rax, 0xffffffffffffffff
je 0x1400d3081
xor edi, edi
test rbp, rbp
jle 0x1400d302f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400c0be0
mov rbx, rax
test rax, rax
jne 0x1400d2fbc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400d3025
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b4f18
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400cacdc
cmp eax, 0xffffffff
je 0x1400d3005
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400d2fcc
mov edx, r15d
mov ecx, r14d
call fcn.1400b4f18
jmp 0x1400d3025
cmp byte [rsi + 0x38], dil
je 0x1400d301c
cmp dword [rsi + 0x34], 5
jne 0x1400d301c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
cmp byte [rsi + 0x30], dil
je 0x1400d3025
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400bf680
jmp 0x1400d3093
jns 0x1400d3093
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400c8678
cmp rax, 0xffffffffffffffff
jne 0x1400d304d
cmp byte [rsi + 0x30], dil
je 0x1400d3093
jmp 0x1400d3089
mov ecx, r14d
call fcn.1400c9a64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400d3093
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
jmp 0x1400d3093
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400d308e
mov edi, dword [rsi + 0x2c]
jmp 0x1400d3093
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400c8678
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140009250
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push r15
sub rsp, 0x58
mov rax, qword [0x140087d00]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [r8 + 0x18], 0xf
mov r15, rdx
mov r10, qword [r8 + 0x10]
mov rdx, r8
movzx ebp, r9b
mov rsi, rcx
jbe 0x140009284
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x1400092b3
movabs r11, 0x100000001b3
nop
movzx eax, byte [rdx + rcx]
inc rcx
xor r9, rax
imul r9, r11
cmp rcx, r10
jb 0x1400092a0
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x20]
call fcn.140001c70
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x1400092ce
mov rcx, qword [rsi + 0x28]
cmp rcx, qword [rsi + 0x28]
je 0x1400093f5
cmp byte [rsp + 0xa0], 0
mov qword [rsp + 0x98], rdi
lea rdi, [rcx + 0x30]
mov qword [rsp + 0x50], r14
lea r14, [rcx + 0x50]
je 0x140009349
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx eax, word [rsp + 0x3e]
sub eax, dword [r15 + 0x10]
movsx ecx, word [rsp + 0x3a]
sub eax, ecx
inc eax
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x140009349
mov ebx, eax
nop dword [rax]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140055aa0]
call fcn.140001560
sub rbx, 1
jne 0x140009330
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140055aa8]
call fcn.140001560
cmp qword [rdi + 0x18], 0xf
mov r8, qword [rdi + 0x10]
jbe 0x14000936a
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.140002080
cmp qword [r14 + 0x18], 0xf
mov r8, qword [r14 + 0x10]
mov rdi, qword [rsp + 0x98]
jbe 0x14000938b
mov r14, qword [r14]
mov rdx, r14
mov rcx, rax
call fcn.140002080
cmp qword [rsi + 0x18], 0xf
mov r8, qword [rsi + 0x10]
mov r14, qword [rsp + 0x50]
jbe 0x1400093a9
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rax
call fcn.140002080
lea rdx, [0x140055aa4]
mov rcx, rax
call fcn.140001560
cmp qword [r15 + 0x18], 0xf
mov r8, qword [r15 + 0x10]
jbe 0x1400093d1
mov r15, qword [r15]
mov rdx, r15
mov rcx, rax
call fcn.140002080
test bpl, bpl
jne 0x1400093f5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140002610]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400514a0
add rsp, 0x58
pop r15
pop rsi
pop rbp
pop rbx
ret
Function at 0x140009480
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x140087d00]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
lea rsi, [rsp + 0xa8]
movabs rbp, 0xff00ff00ff00ff00
xor r14d, r14d
nop dword [rax]
mov rcx, qword [0x140088600]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rbx, qword [rsi]
mov rax, rbx
xor rax, rbp
mov qword [rsp + 0x38], rax
mov qword [rsi], r14
call qword [0x140088138]
nop
mov qword [rsi], rbx
mov rcx, qword [0x140088600]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rax, rbx
xor rax, rbp
mov qword [rsp + 0x38], rax
mov qword [rsi], r14
mov edx, 5
call qword [0x140088120]
nop
mov qword [rsi], rbx
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x140088600]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140009574
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call fcn.14001cc00
mov rbx, rax
mov rcx, qword [0x140088600]
mov qword [rax + 0xc0], rcx
mov dword [rax + 0x10], 0x3c888889
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm0, dword [rsp + 0x30]
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xdf8], xmm0
movd xmm0, dword [rsp + 0x34]
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xdfc], xmm0
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400095ea
mov byte [rbx + 0xe00], 1
mov byte [rbx + 0x3738], 1
mov eax, dword [rbx + 0xdfc]
mov dword [rbx + 0x36e8], eax
jmp 0x1400095f1
mov byte [rbx + 0xe00], 0
mov rcx, qword [0x1400885f0]
xor r8d, r8d
mov rax, qword [rcx]
cmp byte [0x140088057], r8b
je 0x14000960e
mov edx, 1
jmp 0x140009610
xor edx, edx
call qword [rax + 0x40]
call fcn.140042b10
call fcn.1400439f0
call fcn.1400234b0
mov rcx, qword [0x140088160]
call fcn.1400041c0
mov ecx, 0x77
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14000964f
cmp byte [0x14008773b], 0
sete al
mov byte [0x14008773b], al
jmp 0x140009656
movzx eax, byte [0x14008773b]
test al, al
je 0x140009662
mov rcx, rdi
call fcn.140007660
call fcn.140024ea0
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
mov rcx, qword [0x1400885e8]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1400885f8]
mov edx, 1
call qword [rax + 0x108]
mov rcx, qword [0x1400885e8]
mov rax, qword [rcx]
lea r8, [rsp + 0x80]
mov rdx, qword [0x1400885f8]
call qword [rax + 0x190]
call fcn.14001c880
mov rcx, rax
call fcn.140042b50
cmp dword [rsp + 0x58], 0x12
jne 0x1400094e0
call fcn.1400437c0
call fcn.140043d00
xor ecx, ecx
call fcn.14001a170
mov rcx, qword [0x140088600]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov al, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400514a0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret