joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400347b0
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x830
mov rax, qword [0x140077040]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rsi, qword [0x14007cd10]
xor ebp, ebp
mov r14d, 0x3ff
test rsi, rsi
je 0x140034806
mov eax, dword [0x140077ce8]
cmp dword [0x140077c50], eax
jne 0x140034816
cmp byte [0x14007cbd9], bpl
jne 0x140034a09
jmp 0x140034893
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14007cd10], rbp
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov rbx, qword [0x14007ddb8]
mov r8d, 0x409
movzx r9d, ax
mov ecx, dword [rbx + 0x1024]
test ecx, ecx
je 0x14003485f
mov edx, r8d
and r9w, r14w
nop
and cx, r14w
cmp cx, r9w
je 0x140034a2d
mov eax, dword [rbx + rdx*4 + 4]
inc rdx
inc r8d
movzx ecx, ax
test eax, eax
jne 0x140034840
call fcn.14000db80
mov ebx, eax
test eax, eax
je 0x140034875
mov dword [0x14007ddc0], eax
call fcn.14000de20
mov dword [0x140077c50], ebx
call fcn.1400018c0
mov eax, dword [0x140077c50]
mov dword [0x140077ce8], eax
mov byte [0x14007cbd9], bpl
mov ebx, dword [0x1400687c0]
mov qword [rsp + 0x850], rdi
mov rdi, rbp
mov qword [rsp + 0x858], r15
lea r15, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov r9d, r14d
mov word [rsp + 0x20], bp
lea r8, [rsp + 0x20]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140034922
cmp byte [0x140077c48], bpl
je 0x1400348f9
mov rcx, qword [str.pl_rsrc_english.dll]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov byte [0x140077c48], bpl
mov rcx, qword [str.pl_rsrc_english.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, r14d
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140034922
mov word [rsp + 0x20], bp
mov rcx, qword [r15 + rdi*8 + 0x68738]
lea r8, [rsp + 0x20]
mov r9, 0xffffffffffffffff
lea edx, [r9 + 0x51]
call fcn.140045cc8
mov ebx, dword [r15 + rdi*4 + 0x687c4]
inc rdi
test ebx, ebx
jne 0x1400348c0
mov ebx, dword [0x1400687a8]
mov rdi, rbp
nop dword [rax + rax]
mov r9d, r14d
mov word [rsp + 0x20], bp
lea r8, [rsp + 0x20]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x1400349c2
cmp byte [0x140077c48], bpl
je 0x140034999
mov rcx, qword [str.pl_rsrc_english.dll]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov byte [0x140077c48], bpl
mov rcx, qword [str.pl_rsrc_english.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, r14d
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x1400349c2
mov word [rsp + 0x20], bp
mov rcx, qword [r15 + rdi*8 + 0x68778]
lea r8, [rsp + 0x20]
mov r9, 0xffffffffffffffff
lea edx, [r9 + 0x51]
call fcn.140045cc8
mov ebx, dword [r15 + rdi*4 + 0x687ac]
inc rdi
test ebx, ebx
jne 0x140034960
mov r15, qword [rsp + 0x858]
mov rdi, qword [rsp + 0x850]
mov byte [0x14007cbd9], 1
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400398f0
mov rbx, qword [rsp + 0x860]
add rsp, 0x830
pop r14
pop rsi
pop rbp
ret
movsxd rax, r8d
mov ebx, dword [rbx + rax*4]
jmp 0x140034875
Function at 0x140034d10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
call fcn.140002ed0
mov rcx, rax
test rax, rax
je 0x140034dd5
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdi, str.UpdatePromptless
mov rbx, 0xffffffffffffffff
cmp rdi, 0x10000
jae 0x140034d65
movzx edx, di
lea rcx, [rsp + 0x30]
call fcn.140001fa0
jmp 0x140034d89
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x140034d70
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002210
nop
lea rdx, [rsp + 0x30]
lea rcx, [0x1400818b8]
call fcn.14000c200
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140034db6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov r8d, 1
mov rdx, rdi
lea rcx, [0x1400818a0]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14000bc60
mov ecx, 0x80004005
call fcn.140002c40
int3
Function at 0x140038870
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x2050
call fcn.14003a390
sub rsp, rax
mov rax, qword [0x140077040]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rax, qword [rcx + 8]
lea rdi, [rcx + 8]
mov rbx, rdx
cmp dword [rax - 0x10], 0
je 0x1400388b1
mov rdx, rdi
mov rcx, rbx
jmp 0x140038984
xor edx, edx
mov qword [rsp + 0x30], 0
mov r8d, 0x2000
lea rcx, [rsp + 0x40]
call fcn.14005af20
lea rax, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140038940
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], 0x1fff
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProcessorNameString
mov dword [rsp + 0x3c], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140038950
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002210
lea r8, [0x140069320]
mov rcx, rbx
lea rdx, [0x14006c0a8]
call fcn.14000f630
mov rdx, rbx
mov rcx, rdi
call fcn.140001e50
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
setne al
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.1400398f0
mov rbx, qword [rsp + 0x2070]
add rsp, 0x2050
pop rdi
ret
Function at 0x14003a0bc
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
je 0x14003a116
invalid
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x14003a11e
mov r14, qword [r14]
jmp 0x14003a0e7
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
cmp r14d, 0
jne 0x14003a153
jmp 0x14003a161
inc rax
inc rax
inc rax
inc rax
jmp 0x14003a13a
mov r14d, dword [r15 + 0x20]
sub rax, r14
sub rax, r12
shr eax, 1
mov r14d, dword [r15 + 0x24]
add r14, rax
add r14, r12
mov eax, dword [r14]
mov r14d, dword [r15 + 0x1c]
shl eax, 0x10
shr eax, 0xe
add r14, r12
add r14, rax
mov eax, dword [r14]
add rax, r12
mov r14d, 0x125000
add r14, r11
push r12
push r11
push r14
push r10
push r10
push rax
mov rcx, r14
mov r9, rsp
mov r8d, 0x40
mov edx, 0xb8000
call rax
pop r15
pop r10
pop r10
pop r14
pop r11
mov r12d, 0x68d3
push rax
movabs r15, 0x3ae00
scasb al, byte [rdi]
add eax, dword [rax]
add byte [rax], al
add byte [rax], al
mov eax, 0x1d
imul r12, rax
movabs rax, 0x402a
add rax, r11
add r12, rax
call fcn.14003a218
mov r12d, 0xfde11
movabs r14, 0x165000
add r12, r11
mov r15d, 0x3b30
add r14, r11
call fcn.14003a218
pop rax
jmp 0x14003a23e
nop
ret
mov r12d, 0x8000000
mov r15d, 0x312
movabs r14, 0x125000
mov eax, 5
imul r15d, eax
add r15d, 0xa6
add r14, r11
sub r14, r15
mov r15, r14
sub r15, r12
mov r12d, 0x102a11
add r12, r11
mov eax, dword [r12]
xor eax, 0x5aee9e44
dec eax
cmp eax, 0
je 0x14003a29b
add rax, r14
mov r10, qword [rax]
add r10, r15
mov qword [rax], r10
add r12, 4
jmp 0x14003a279
sub rsp, 0x28
movabs r14, 0x165d
mov r12d, 0xfe7
add r12, 0x146748
add r12, r14
add r12, r11
push r12
dec r10
lea r15d, [eax]
jmp 0x14003a23c

Function at 0x14003a5ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003a5f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003a5f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003a5f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003a5f6
cmp dword [rcx + 0x84], 0xe
jbe 0x14003a5f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003a5f8
xor al, al
add rsp, 0x28
ret

Function at 0x14004fdc8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004fbb8
Function at 0x140055604
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005568b
mov rsi, rbx
cmp word [rax], bp
je 0x14005564a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140055634
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140055630
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140051670
mov rdi, rax
test rax, rax
je 0x140055678
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005a880
mov rbp, rdi
xor ecx, ecx
call fcn.140051634
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005a5d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005a5f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005a5f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140168320
Capabilities:
Set console window title

Disassembly:
jmp 0x1401899d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
mov rax, qword [0x140540bd0]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14057300d]
call fcn.140170980
mov rax, qword [rbp + 0x120]
mov rcx, rax
call fcn.14016d0be
call qword [sym.imp.KERNEL32.dll_AllocConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov rcx, qword [rbp + 0x128]
call fcn.140170250
movzx eax, al
test eax, eax
jne 0x140189a69
mov rcx, qword [rbp + 0x128]
call fcn.14016e07c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
xor ecx, ecx
call fcn.14017147f
mov r9, rax
lea r8, [0x14045afe4]
lea rdx, [0x14045afe8]
lea rcx, [rbp + 8]
call fcn.14016df19
mov ecx, 1
call fcn.14017147f
mov r9, rax
lea r8, [0x14045aff0]
lea rdx, str.conout_
lea rcx, [rbp + 0x28]
call fcn.14016df19
mov ecx, 2
call fcn.14017147f
mov r9, rax
lea r8, [0x14045aff0]
lea rdx, str.conout_
lea rcx, [rbp + 0x28]
call fcn.14016df19
mov rax, qword [rbp + 0x120]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140459f70]
call fcn.14016f0fd
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.14016c209
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1401697a2
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1402d6df0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1405735d5]
call fcn.140170980
mov qword [rbp + 8], 0
jmp 0x1402d6e2e
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1402d6e84
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x1402d6e23
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1401699cd
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1403fe930
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1403fd980
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1403fe967
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140575020]
jmp 0x1403fe96d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret
Function at 0x140169b0d
Capabilities:
Get common file path

Disassembly:
jmp 0x1401a9b60
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3e8]
mov rax, qword [0x140540bd0]
xor rax, rbp
mov qword [rbp + 0x380], rax
lea rcx, [0x140573051]
call fcn.140170980
lea r9, [rbp + 8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1404d14b0]
call fcn.14016b8d6
test eax, eax
jl 0x1401a9bfa
mov rax, qword [rbp + 0x3b0]
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.1401703f9
mov rax, qword [rbp + 0x3b0]
mov rdx, qword [rbp + 0x3b8]
mov rcx, rax
call fcn.14016e400
mov rcx, qword [rbp + 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
call fcn.140168aaa
movzx eax, al
test eax, eax
je 0x1401a9d41
lea rax, [rbp + 0x1a4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x1e8]
mov qword [rbp + 0x218], rax
mov rdi, qword [rbp + 0x218]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
movzx eax, byte [rbp + 0x1a4]
mov byte [rbp + 0x2c4], al
movzx eax, byte [rbp + 0x2c4]
mov byte [rbp + 0x304], al
movzx eax, byte [rbp + 0x304]
mov byte [rbp + 0x344], al
mov rax, qword [rbp + 0x3b0]
add rax, 0x28
mov rdx, rax
lea rcx, [rbp + 0x1c8]
call fcn.14016c02e
mov rax, qword [rax]
mov qword [rbp + 0x2a8], rax
mov rax, qword [rbp + 0x2a8]
mov qword [rbp + 0x2e8], rax
mov rax, qword [rbp + 0x2e8]
mov qword [rbp + 0x328], rax
mov rcx, qword [rbp + 0x218]
call fcn.140168078
mov qword [rbp + 0x358], rax
mov rax, qword [rbp + 0x358]
mov qword [rbp + 0x360], rax
mov rax, qword [rbp + 0x360]
mov qword [rbp + 0x368], rax
lea rax, [rbp + 0x238]
mov qword [rbp + 0x268], rax
mov rax, qword [rbp + 0x3b0]
mov rdx, rax
mov rcx, qword [rbp + 0x268]
call fcn.14017093f
mov qword [rbp + 0x370], rax
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x378], rax
movzx eax, byte [rbp + 0x344]
mov byte [rsp + 0x20], al
mov r9, qword [rbp + 0x328]
mov r8, qword [rbp + 0x368]
mov rdx, qword [rbp + 0x378]
lea rcx, [rbp + 0x288]
call fcn.140197b60
nop
mov rcx, qword [rbp + 0x3b8]
call fcn.14016994b
lea rcx, [rbp - 0x30]
lea rdx, [0x14045c550]
call fcn.14016f0fd
mov rcx, qword [rbp + 0x380]
xor rcx, rbp
call fcn.14016c209
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret
Function at 0x140169e91
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x14018f3f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140573020]
call fcn.140170980
mov rax, qword [rbp + 0x100]
cmp dword [rax + 8], 0
jne 0x14018f42b
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax]
jmp 0x14018f53a
mov rax, qword [rbp + 0x100]
mov eax, dword [rax + 4]
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 0
je 0x14018f45b
cmp dword [rbp + 0xd4], 1
je 0x14018f46a
cmp dword [rbp + 0xd4], 2
je 0x14018f4a9
jmp 0x14018f530
mov rax, qword [rbp + 0x100]
mov byte [rax], 1
jmp 0x14018f530
mov rax, qword [rbp + 0x100]
mov ecx, dword [rax + 8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14018f48d
mov byte [rbp + 0xd4], 1
jmp 0x14018f494
mov byte [rbp + 0xd4], 0
mov rax, qword [rbp + 0x100]
movzx ecx, byte [rbp + 0xd4]
mov byte [rax], cl
jmp 0x14018f530
mov rax, qword [rbp + 0x100]
mov ecx, dword [rax + 8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov word [rbp + 4], ax
movsx eax, word [rbp + 4]
and eax, 0x8000
test eax, eax
je 0x14018f4d5
mov rax, qword [rbp + 0x100]
mov byte [rax + 1], 1
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax + 1]
test eax, eax
je 0x14018f530
movsx eax, word [rbp + 4]
and eax, 0x8000
test eax, eax
jne 0x14018f530
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax]
test eax, eax
jne 0x14018f50b
mov dword [rbp + 0xd4], 1
jmp 0x14018f515
mov dword [rbp + 0xd4], 0
mov rax, qword [rbp + 0x100]
movzx ecx, byte [rbp + 0xd4]
mov byte [rax], cl
mov rax, qword [rbp + 0x100]
mov byte [rax + 1], 0
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14016a22e
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14018b380
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14057301b]
call fcn.140170980
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x138
jne 0x14018b3bc
mov rcx, qword [rbp + 0x100]
call fcn.140169815
jmp 0x14018b3d7
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jb 0x14018b3d7
mov rcx, qword [rbp + 0x100]
call fcn.14016c49d
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov rax, qword [rcx + rax*8 + 8]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shr rax, 0x1d
mov rcx, qword [rbp + 0x100]
and rax, qword [rcx + 0x1388]
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shl rax, 0x11
movabs rcx, 0x71d67fffeda60000
and rax, rcx
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shl rax, 0x25
movabs rcx, 0xfff7eee000000000
and rax, rcx
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
shr rax, 0x2b
mov rcx, qword [rbp + 8]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14016b525
Capabilities:
Clear file content

Disassembly:
jmp 0x14043dd00
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x98
mov r8, qword [rsp + 0xa8]
mov edx, dword [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.1401683d4
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x14043dd39
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x14043dd57
call fcn.14016b138
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x68]
call fcn.14016a6c5
mov eax, dword [rsp + 0x40]
jmp 0x14043df73
cmp qword [rsp + 0x78], 0
jle 0x14043deb8
mov dword [rsp + 0x20], 0x4a
lea r9, str.minkernelcrtsucrt_src_appcrtlowiochsize.cpp
mov r8d, 2
mov edx, 1
mov ecx, 0x1000
call fcn.140171579
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14016c00b
lea rcx, [rsp + 0x38]
call fcn.14016b674
movzx eax, al
test eax, eax
jne 0x14043ddd8
call fcn.14016b138
mov dword [rax], 0xc
call fcn.14016b138
mov eax, dword [rax]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x38]
call fcn.140169554
lea rcx, [rsp + 0x68]
call fcn.14016a6c5
mov eax, dword [rsp + 0x44]
jmp 0x14043df73
mov edx, 0x8000
mov ecx, dword [rsp + 0xa0]
call fcn.14016e1c1
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x78], 0x1000
jl 0x14043de02
mov dword [rsp + 0x30], 0x1000
jmp 0x14043de0a
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x38]
call fcn.14016d244
mov r8d, dword [rsp + 0x48]
mov rdx, rax
mov ecx, dword [rsp + 0xa0]
call fcn.14016f30f
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x14043de78
call fcn.14016d7e9
cmp dword [rax], 5
jne 0x14043de50
call fcn.14016b138
mov dword [rax], 0xd
call fcn.14016b138
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.140169554
lea rcx, [rsp + 0x68]
call fcn.14016a6c5
mov eax, dword [rsp + 0x4c]
jmp 0x14043df73
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jg 0x14043dded
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0xa0]
call fcn.14016e1c1
lea rcx, [rsp + 0x38]
call fcn.140169554
jmp 0x14043df5d
cmp qword [rsp + 0x78], 0
jge 0x14043df5d
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
call fcn.140169699
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0xffffffffffffffff
jne 0x14043df09
call fcn.14016b138
mov eax, dword [rax]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
call fcn.14016a6c5
mov eax, dword [rsp + 0x54]
jmp 0x14043df73
mov ecx, dword [rsp + 0xa0]
call fcn.140170ed0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14043df5d
call fcn.14016b138
mov dword [rax], 0xd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
call fcn.14016d7e9
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
call fcn.14016b138
mov eax, dword [rax]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x68]
call fcn.14016a6c5
mov eax, dword [rsp + 0x5c]
jmp 0x14043df73
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x68]
call fcn.14016a6c5
mov eax, dword [rsp + 0x60]
add rsp, 0x98
ret
Function at 0x14016bd95
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1403a9580
mov rax, rcx
neg rcx
test rax, 7
je 0x1403a959d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1403a95f8
test al, 7
jne 0x1403a9590
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1403a95b1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1403a9622
test dh, dh
je 0x1403a961c
shr rdx, 0x10
test dl, dl
je 0x1403a9616
test dh, dh
je 0x1403a9610
shr rdx, 0x10
test dl, dl
je 0x1403a960a
test dh, dh
je 0x1403a9604
shr edx, 0x10
test dl, dl
je 0x1403a95fe
test dh, dh
jne 0x1403a95b1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x14016be03
Capabilities:
Query environment variable

Disassembly:
jmp 0x140425fec
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x140426089
mov rbp, rax
cmp word [rax], si
je 0x140426035
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14042601c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140426018
sub rbp, rbx
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
add rbp, 2
mov r9d, 0x40
sar rbp, 1
add rbp, rbp
mov rcx, rbp
lea edx, [r9 - 0x3e]
call fcn.14016c376
mov rdi, rax
test rax, rax
je 0x140426074
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.14016c240
mov rsi, rdi
mov edx, 2
xor ecx, ecx
call fcn.14016985b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret