joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ac258
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800ac278
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18009d194
or eax, 0xffffffff
jmp 0x1800ac27a
xor eax, eax
add rsp, 0x28
ret
Function at 0x1800ad7cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800ad7e2
mov al, 1
jmp 0x1800ad842
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800ad7f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800ad840
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800b7dd0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800ad840
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800ad840
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800ad840
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800ad842
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1800ada68
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
lea r9, [0x1801ba100]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1800adabf
cmp word [rdx], r13w
jne 0x1800adabf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800adac4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800adbe9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800adc0a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800adafd
mov rdx, r9
mov word [rbx], cx
jmp 0x1800adb24
cmp r9, r8
jae 0x1800adb34
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800adade
jmp 0x1800adbe9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800adbde
cmp dword [rsp + 0x80], esi
je 0x1800adbde
lea r8, [0x1801ba100]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800adbb6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800adb86
mov word [rbx], r13w
jmp 0x1800adbe6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1800adb93
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800adbe6
cmp word [rsp + 0x70], r13w
jne 0x1800adbc3
cmp rbx, r14
je 0x1800adb80
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800ad3bc
cmp word [rsp + 0x70], r13w
je 0x1800adbe9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
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
lea r8, [0x1801ba100]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800adbe3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800adbe9
Function at 0x1800b45a0
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 0x1800b45d0
xor eax, eax
jmp 0x1800b4693
mov rbp, rbx
cmp word [rax], si
je 0x1800b45f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800b45dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800b45d8
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.1800afe54
movsxd r14, eax
test eax, eax
jne 0x1800b4633
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800b45c9
mov rcx, r14
call fcn.1800ab4d0
mov rdi, rax
test rax, rax
jne 0x1800b464c
xor ecx, ecx
call fcn.1800ab494
jmp 0x1800b4628
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.1800afe54
test eax, eax
jne 0x1800b467d
mov rcx, rdi
call fcn.1800ab494
jmp 0x1800b4687
xor ecx, ecx
call fcn.1800ab494
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 0x1800b46b0
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 0x1800b4737
mov rsi, rbx
cmp word [rax], bp
je 0x1800b46f6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800b46e0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800b46dc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800ab4d0
mov rdi, rax
test rax, rax
je 0x1800b4724
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800bf120
mov rbp, rdi
xor ecx, ecx
call fcn.1800ab494
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 0x1800b73dc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800a98b4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800b747d
cmp ebx, dword [rsp + 0x30]
je 0x1800b7476
test esi, esi
je 0x1800b7476
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800b7451
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800b745e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800b743b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800b7462
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800b747f
mov eax, 1
jmp 0x1800b747f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800bc264
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.1800ad3bc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800ad3bc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800bc3b4
cmp rax, 0xffffffffffffffff
je 0x1800bc3b4
xor edi, edi
test rbp, rbp
jle 0x1800bc35f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800ad090
mov rbx, rax
test rax, rax
jne 0x1800bc2ec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800bc355
mov edx, 0x8000
mov ecx, r14d
call fcn.1800bc0e8
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.1800acd88
cmp eax, 0xffffffff
je 0x1800bc335
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800bc2fc
mov edx, r15d
mov ecx, r14d
call fcn.1800bc0e8
jmp 0x1800bc355
cmp byte [rsi + 0x38], dil
je 0x1800bc34c
cmp dword [rsi + 0x34], 5
jne 0x1800bc34c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800bc355
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800ab494
jmp 0x1800bc3c8
jns 0x1800bc3c8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800ad3bc
cmp rax, 0xffffffffffffffff
jne 0x1800bc380
cmp byte [rsi + 0x30], dil
je 0x1800bc3c8
mov edi, dword [rsi + 0x2c]
jmp 0x1800bc3c8
mov ecx, r14d
call fcn.1800b7dd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800bc3c8
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], 0xd
jmp 0x1800bc3c8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800bc3c1
mov eax, dword [rsi + 0x2c]
jmp 0x1800bc3c6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800ad3bc
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 0x1800bce90
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1401aa770
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 [0x1405a8cc0]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x1405db00c]
call fcn.140191bce
nop
mov rax, qword [rbp + 0x120]
mov rcx, rax
call fcn.14018e24e
nop
call qword [sym.imp.KERNEL32.dll_AllocConsole]
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
nop
mov rcx, qword [rbp + 0x128]
call fcn.1401914cb
movzx eax, al
test eax, eax
jne 0x1401aa80e
mov rcx, qword [rbp + 0x128]
call fcn.14018f261
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
nop
xor ecx, ecx
call fcn.1401926b9
mov r9, rax
lea r8, [0x1404bff7c]
lea rdx, [0x1404bff80]
lea rcx, [rbp + 8]
call fcn.14018f0e0
nop
mov ecx, 1
call fcn.1401926b9
mov r9, rax
lea r8, [0x1404bff88]
lea rdx, str.conout_
lea rcx, [rbp + 0x28]
call fcn.14018f0e0
nop
mov ecx, 2
call fcn.1401926b9
mov r9, rax
lea r8, [0x1404bff88]
lea rdx, str.conout_
lea rcx, [rbp + 0x28]
call fcn.14018f0e0
nop
mov rax, qword [rbp + 0x120]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1404becb0]
call fcn.140190332
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.14018d2db
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14018a7f7
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1402fa2a0
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, [0x1405db5df]
call fcn.140191bce
nop
mov qword [rbp + 8], 0
jmp 0x1402fa2df
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1402fa335
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 0x1402fa2d4
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14018ab80
Capabilities:
Get common file path

Disassembly:
jmp 0x1401cb280
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 [0x1405a8cc0]
xor rax, rbp
mov qword [rbp + 0x380], rax
lea rcx, [0x1405db050]
call fcn.140191bce
nop
lea r9, [rbp + 8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140537320]
call fcn.14018c9ad
test eax, eax
jl 0x1401cb31e
mov rax, qword [rbp + 0x3b0]
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.140191660
nop
mov rax, qword [rbp + 0x3b0]
mov rdx, qword [rbp + 0x3b8]
mov rcx, rax
call fcn.14018f5f4
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
call fcn.140189ad7
movzx eax, al
test eax, eax
je 0x1401cb465
lea rax, [rbp + 0x1a4]
mov rdi, rax
xor eax, eax
mov ecx, 1
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.14018d0fb
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
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
mov rcx, qword [rbp + 0x218]
call fcn.14018907d
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.140191b8d
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.1401b8b00
nop
mov rcx, qword [rbp + 0x3b8]
call fcn.14018a9a5
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1404c16e0]
call fcn.140190332
mov rcx, qword [rbp + 0x380]
xor rcx, rbp
call fcn.14018d2db
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret
Function at 0x14018af04
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x1401afe20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1405db01d]
call fcn.140191bce
nop
mov rax, qword [rbp + 0x100]
cmp dword [rax + 8], 0
jne 0x1401afe5c
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax]
jmp 0x1401aff6b
mov rax, qword [rbp + 0x100]
mov eax, dword [rax + 4]
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 0
je 0x1401afe8c
cmp dword [rbp + 0xd4], 1
je 0x1401afe9b
cmp dword [rbp + 0xd4], 2
je 0x1401afeda
jmp 0x1401aff61
mov rax, qword [rbp + 0x100]
mov byte [rax], 1
jmp 0x1401aff61
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 0x1401afebe
mov byte [rbp + 0xd4], 1
jmp 0x1401afec5
mov byte [rbp + 0xd4], 0
mov rax, qword [rbp + 0x100]
movzx ecx, byte [rbp + 0xd4]
mov byte [rax], cl
jmp 0x1401aff61
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 0x1401aff06
mov rax, qword [rbp + 0x100]
mov byte [rax + 1], 1
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax + 1]
test eax, eax
je 0x1401aff61
movsx eax, word [rbp + 4]
and eax, 0x8000
test eax, eax
jne 0x1401aff61
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax]
test eax, eax
jne 0x1401aff3c
mov dword [rbp + 0xd4], 1
jmp 0x1401aff46
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 0x14018b2c4
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1401ac000
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1405db018]
call fcn.140191bce
nop
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x138
jne 0x1401ac03e
mov rcx, qword [rbp + 0x100]
call fcn.14018a86a
nop
jmp 0x1401ac05a
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jb 0x1401ac05a
mov rcx, qword [rbp + 0x100]
call fcn.14018d592
nop
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 0x14018ce62
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140407f30
mov rax, rcx
neg rcx
test rax, 7
je 0x140407f4d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140407fa8
test al, 7
jne 0x140407f40
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 0x140407f61
mov rdx, qword [rax - 8]
test dl, dl
je 0x140407fd2
test dh, dh
je 0x140407fcc
shr rdx, 0x10
test dl, dl
je 0x140407fc6
test dh, dh
je 0x140407fc0
shr rdx, 0x10
test dl, dl
je 0x140407fba
test dh, dh
je 0x140407fb4
shr edx, 0x10
test dl, dl
je 0x140407fae
test dh, dh
jne 0x140407f61
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 0x14018cec1
Capabilities:
Query environment variable

Disassembly:
jmp 0x140488a90
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140488610
lea rcx, [rsp + 0x20]
call fcn.140488660
movzx eax, al
test eax, eax
jne 0x140488ad5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140488640
mov rax, qword [rsp + 0x40]
jmp 0x140488bcf
lea rcx, [rsp + 0x20]
call fcn.140488760
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140488700
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.14018d461
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14018c3c7
lea rcx, [rsp + 0x28]
call fcn.14018dcbd
movzx eax, al
test eax, eax
jne 0x140488b6f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14018ff6d
lea rcx, [rsp + 0x20]
call fcn.140488640
mov rax, qword [rsp + 0x50]
jmp 0x140488bcf
lea rcx, [rsp + 0x20]
call fcn.140488760
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140191a48
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.14018d321
lea rcx, [rsp + 0x28]
call fcn.140192a01
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14018ff6d
lea rcx, [rsp + 0x20]
call fcn.140488640
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x14018d592
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1401adaa0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1405db018]
call fcn.140191bce
nop
mov qword [rbp + 8], 0x137
mov qword [rbp + 0x28], 0x9c
mov qword [rbp + 0x48], 0
jmp 0x1401adae5
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0x9c
jae 0x1401adb8e
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov rax, qword [rax + rcx*8 + 0x9c8]
and rax, 0xffffffff80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rcx + rdx*8 + 0x9d0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
and rax, 1
test rax, rax
je 0x1401adb4d
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x1401adb58
mov qword [rbp + 0x1b8], 0
mov rax, qword [rbp + 0x68]
shr rax, 1
xor rax, qword [rbp + 0x1b8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor rax, qword [rcx + rdx*8 + 0xea8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1401adada
mov qword [rbp + 0x88], 0x9c
jmp 0x1401adbac
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x137
jae 0x1401adc6d
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov rax, qword [rax + rcx*8 + 0x9c8]
and rax, 0xffffffff80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rcx + rdx*8 + 0x9d0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
and rax, 1
test rax, rax
je 0x1401adc23
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x1401adc2e
mov qword [rbp + 0x1b8], 0
mov rax, qword [rbp + 0xa8]
shr rax, 1
xor rax, qword [rbp + 0x1b8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor rax, qword [rcx + rdx*8 - 0x4d8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1401adb9b
mov qword [rbp + 0xc8], 0x137
mov eax, 8
imul rax, rax, 0x26f
mov rcx, qword [rbp + 0x1e0]
mov rax, qword [rcx + rax + 8]
and rax, 0xffffffff80000000
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov rcx, qword [rdx + rcx + 8]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
and rax, 1
test rax, rax
je 0x1401adcdf
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x1401adcea
mov qword [rbp + 0x1b8], 0
mov rax, qword [rbp + 0xe8]
shr rax, 1
xor rax, qword [rbp + 0x1b8]
mov ecx, 8
imul rcx, rcx, 0x9b
mov rdx, qword [rbp + 0x1e0]
xor rax, qword [rdx + rcx + 8]
mov ecx, 8
imul rcx, rcx, 0x137
mov rdx, qword [rbp + 0x1e0]
mov qword [rdx + rcx + 8], rax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x14018d718
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1403a6bf0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1403a6570
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1403a6c2f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1405dd020]
jmp 0x1403a6c39
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret