joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140004360]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002bf8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002bf8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002bf8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002bf8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002bec
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002c00
add rdx, 0x28
cmp rdx, r10
jne 0x140002bd8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002c10
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002c1e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002bf5
test r8d, r8d
jg 0x140002c08
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140001350
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rax
test rax, rax
je 0x140001401
xor edx, edx
test rbx, rbx
je 0x140001401
cmp rbx, 0x40
jb 0x1400013ea
movdqa xmm2, xmmword [0x1400cc590]
mov r8, rbx
and r8, 0xffffffffffffffc0
add rax, 0x20
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add rdx, 0x40
movdqa xmm1, xmm2
xorps xmm0, xmm2
movdqu xmmword [rax - 0x60], xmm0
movdqu xmm0, xmmword [rax - 0x50]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x40], xmm0
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
cmp rdx, r8
jb 0x1400013a0
cmp rdx, rbx
jae 0x1400013fe
lea rax, [rdx + rcx]
sub rbx, rdx
xor byte [rax], 0xab
lea rax, [rax + 1]
sub rbx, 1
jne 0x1400013f1
mov rax, rcx
add rsp, 0x20
pop rbx
ret

Function at 0x140001410
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400ce040]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
mov dword [rbp - 0x60], edi
mov dword [rbp - 0x38], 1
mov r8d, 4
lea rdx, [rbp - 0x38]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetProcessMitigationPolicy]
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], 8
mov ecx, 0xf
mov qword [rbp - 0x40], rcx
movabs rax, 0xddbefdcad0b8f4c3
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x50], dil
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rcx
mov byte [rbp - 0x30], dil
mov dword [rbp - 0x60], 1
mov ebx, edi
nop word [rax + rax]
movzx r9d, byte [rbp + rbx - 0x58]
not r9b
cmp rdi, rcx
jae 0x1400014ce
lea rax, [rdi + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rcx, 0xf
cmova rax, qword [rbp - 0x30]
mov byte [rax + rdi], r9b
mov byte [rax + rdi + 1], 0
jmp 0x1400014d7
lea rcx, [rbp - 0x30]
call fcn.1400ca700
inc rbx
cmp rbx, 8
jae 0x1400014ea
mov rcx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
jmp 0x1400014a0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
lea rcx, [0x1400cc490]
call fcn.140001010
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140001543
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000153e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000153e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400caaa0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400caa80
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400c9f70
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400ce040]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebp, ebp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x1400ca107
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov edi, 0xffffffff
mov edx, edi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x1400ca101
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cc3a0]
xor edx, edx
mov r8d, 1
lea rcx, [0x1400cc3b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400ca101
mov ecx, 0x18
call fcn.1400caaa8
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400ca05f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rbp
mov dword [rbx + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x1400ca137
jmp 0x1400ca062
mov rbx, rbp
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x1400ca12c
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x18]
mov esi, eax
lock xadd dword [rbx + 0x10], edi
cmp edi, 1
jne 0x1400ca0dd
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400ca0be
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400ca0d0
call fcn.1400caaa0
mov qword [rbx + 8], rbp
mov edx, 0x18
mov rcx, rbx
call fcn.1400caaa0
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
test esi, esi
js 0x1400ca101
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x1400ca109
call qword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400caa80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x8007000e
call fcn.1400ca8e0
nop
mov ecx, 0x8007000e
call fcn.1400ca8e0
int3
Function at 0x1400ca160
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400ce040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov ecx, 0x20
call fcn.1400caaa8
mov rcx, rax
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [0x1400cc580]
movdqu xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [0x1400cc510]
movups xmmword [rax], xmm0
movzx eax, word [0x1400cc520]
mov word [rcx + 0x10], ax
mov byte [rcx + 0x12], dil
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.1400012a0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400ca220
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ca21b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ca21b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400caaa0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
lea rcx, [0x1400cc528]
call fcn.140001010
call fcn.1400c9f70
test al, al
je 0x1400ca267
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400ca500
mov rcx, rax
lea rdx, [0x1400ca6c0]
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]
jmp 0x1400ca308
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x1400ca150]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x1400ca2b6
lea rcx, [0x1400cc558]
call fcn.140001010
mov edi, 1
jmp 0x1400ca308
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, edi
nop
test bl, 1
je 0x1400ca2e3
mov edx, ebx
lea rcx, [0x1400cc4e8]
call fcn.140001010
inc ebx
cmp ebx, 0x3e8
jl 0x1400ca2d0
mov ebx, edi
nop
mov edx, ebx
lea rcx, [0x1400cc568]
call fcn.140001010
inc ebx
cmp ebx, 0x1f4
jl 0x1400ca2f0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400ca348
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ca343
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ca343
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400caaa0
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400caa80
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1400cb460
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cb4aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cb4aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cb4aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cb4aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cb4aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400cb4ac
xor al, al
add rsp, 0x28
ret
Function at 0x14018933e
Capabilities:
Set console window title

Disassembly:
jmp 0x1401aa750
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.140191bdd
nop
mov rax, qword [rbp + 0x120]
mov rcx, rax
call fcn.14018e25d
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.1401914d0
movzx eax, al
test eax, eax
jne 0x1401aa7ee
mov rcx, qword [rbp + 0x128]
call fcn.14018f270
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
nop
xor ecx, ecx
call fcn.1401926c3
mov r9, rax
lea r8, [0x1404c0024]
lea rdx, [0x1404c0028]
lea rcx, [rbp + 8]
call fcn.14018f0ef
nop
mov ecx, 1
call fcn.1401926c3
mov r9, rax
lea r8, [0x1404c0030]
lea rdx, str.conout_
lea rcx, [rbp + 0x28]
call fcn.14018f0ef
nop
mov ecx, 2
call fcn.1401926c3
mov r9, rax
lea r8, [0x1404c0030]
lea rdx, str.conout_
lea rcx, [rbp + 0x28]
call fcn.14018f0ef
nop
mov rax, qword [rbp + 0x120]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1404becb0]
call fcn.14019033c
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.14018d2e5
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14018a7fc
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1402fa290
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.140191bdd
nop
mov qword [rbp + 8], 0
jmp 0x1402fa2cf
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1402fa325
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 0x1402fa2c4
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14018ab85
Capabilities:
Get common file path

Disassembly:
jmp 0x1401cb220
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.140191bdd
nop
lea r9, [rbp + 8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1405375e0]
call fcn.14018c9b2
test eax, eax
jl 0x1401cb2be
mov rax, qword [rbp + 0x3b0]
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.14019166a
nop
mov rax, qword [rbp + 0x3b0]
mov rdx, qword [rbp + 0x3b8]
mov rcx, rax
call fcn.14018f603
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
call fcn.140189adc
movzx eax, al
test eax, eax
je 0x1401cb405
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.14018d105
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.140191b97
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.1401b8aa0
nop
mov rcx, qword [rbp + 0x3b8]
call fcn.14018a9aa
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1404c1830]
call fcn.14019033c
mov rcx, qword [rbp + 0x380]
xor rcx, rbp
call fcn.14018d2e5
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret
Function at 0x14018af09
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x1401afe00
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1405db01e]
call fcn.140191bdd
nop
mov rax, qword [rbp + 0x100]
cmp dword [rax + 8], 0
jne 0x1401afe3c
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax]
jmp 0x1401aff4b
mov rax, qword [rbp + 0x100]
mov eax, dword [rax + 4]
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 0
je 0x1401afe6c
cmp dword [rbp + 0xd4], 1
je 0x1401afe7b
cmp dword [rbp + 0xd4], 2
je 0x1401afeba
jmp 0x1401aff41
mov rax, qword [rbp + 0x100]
mov byte [rax], 1
jmp 0x1401aff41
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 0x1401afe9e
mov byte [rbp + 0xd4], 1
jmp 0x1401afea5
mov byte [rbp + 0xd4], 0
mov rax, qword [rbp + 0x100]
movzx ecx, byte [rbp + 0xd4]
mov byte [rax], cl
jmp 0x1401aff41
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 0x1401afee6
mov rax, qword [rbp + 0x100]
mov byte [rax + 1], 1
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax + 1]
test eax, eax
je 0x1401aff41
movsx eax, word [rbp + 4]
and eax, 0x8000
test eax, eax
jne 0x1401aff41
mov rax, qword [rbp + 0x100]
movzx eax, byte [rax]
test eax, eax
jne 0x1401aff1c
mov dword [rbp + 0xd4], 1
jmp 0x1401aff26
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 0x14018b2c9
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1401abfe0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1405db019]
call fcn.140191bdd
nop
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x138
jne 0x1401ac01e
mov rcx, qword [rbp + 0x100]
call fcn.14018a86f
nop
jmp 0x1401ac03a
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jb 0x1401ac03a
mov rcx, qword [rbp + 0x100]
call fcn.14018d5a1
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 0x14018ce6c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140408260
mov rax, rcx
neg rcx
test rax, 7
je 0x14040827d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1404082d8
test al, 7
jne 0x140408270
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 0x140408291
mov rdx, qword [rax - 8]
test dl, dl
je 0x140408302
test dh, dh
je 0x1404082fc
shr rdx, 0x10
test dl, dl
je 0x1404082f6
test dh, dh
je 0x1404082f0
shr rdx, 0x10
test dl, dl
je 0x1404082ea
test dh, dh
je 0x1404082e4
shr edx, 0x10
test dl, dl
je 0x1404082de
test dh, dh
jne 0x140408291
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 0x14018cecb
Capabilities:
Query environment variable

Disassembly:
jmp 0x140488dc0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140488940
lea rcx, [rsp + 0x20]
call fcn.140488990
movzx eax, al
test eax, eax
jne 0x140488e05
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140488970
mov rax, qword [rsp + 0x40]
jmp 0x140488eff
lea rcx, [rsp + 0x20]
call fcn.140488a90
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140488a30
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.14018d470
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14018c3cc
lea rcx, [rsp + 0x28]
call fcn.14018dcd1
movzx eax, al
test eax, eax
jne 0x140488e9f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14018ff7c
lea rcx, [rsp + 0x20]
call fcn.140488970
mov rax, qword [rsp + 0x50]
jmp 0x140488eff
lea rcx, [rsp + 0x20]
call fcn.140488a90
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140191a52
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.14018d32b
lea rcx, [rsp + 0x28]
call fcn.140192a0b
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14018ff7c
lea rcx, [rsp + 0x20]
call fcn.140488970
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x14018d5a1
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1401ada80
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1405db019]
call fcn.140191bdd
nop
mov qword [rbp + 8], 0x137
mov qword [rbp + 0x28], 0x9c
mov qword [rbp + 0x48], 0
jmp 0x1401adac5
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0x9c
jae 0x1401adb6e
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 0x1401adb2d
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x1401adb38
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 0x1401adaba
mov qword [rbp + 0x88], 0x9c
jmp 0x1401adb8c
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x137
jae 0x1401adc4d
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 0x1401adc03
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x1401adc0e
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 0x1401adb7b
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 0x1401adcbf
movabs rax, 0xb5026f5aa96619e9
mov qword [rbp + 0x1b8], rax
jmp 0x1401adcca
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 0x14018d727
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1403a6f20
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1403a68a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1403a6f5f
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 0x1403a6f69
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret