joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ef40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000caf2
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.14000d3c0
test al, al
jne 0x14000cb04
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000cac0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x72
mov dword [rbp - 0x20], 0x240001
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x2f0024
mov dword [rbp - 0x18], 0x29004c
mov dword [rbp - 0x14], 0x320023
mov dword [rbp - 0x10], 0x20003a
call fcn.140004fd0
mov rcx, rax
call 0x14000ca90
mov qword [0x1400181b8], rax
lea rcx, [rbp - 0x20]
mov eax, 0x69
mov dword [rbp - 0x20], 0x240001
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x2f0024
mov dword [rbp - 0x18], 0x29004c
mov dword [rbp - 0x14], 0x410052
call fcn.1400022a0
mov rcx, rax
call 0x14000ca90
lea rcx, [rbp - 0x20]
mov qword [0x1400181a8], rax
mov dword [rbp - 0x20], 0x150024
mov dword [rbp - 0x1c], 0xd0012
mov dword [rbp - 0x18], 0x650065
call fcn.140004e60
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x14000ca90
Function at 0x14000218c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400021d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400021d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400021d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400021d6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400021d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400021d8
xor al, al
add rsp, 0x28
ret
Function at 0x1400041f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140009908
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140004227
mov rdx, qword [rbx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
cmp qword [rbx + 0x10], rcx
jbe 0x140004257
movzx eax, byte [rcx + rdx]
movabs r8, 0x100000001b3
xor r9, rax
inc rcx
imul r9, r8
cmp rcx, qword [rbx + 0x10]
jb 0x140004239
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140006b94
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140004292
cmp rbx, qword [rsi + 8]
je 0x140004292
mov rbx, qword [rbx + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14000429b
mov rdx, qword [r15]
mov rcx, qword [r14]
call rbx
jmp 0x14000429b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400042a8
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rdx
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov rcx, qword [rdx + 0x10]
movabs rsi, 0x7ffffffffffffffe
mov rax, rsi
sub rax, rcx
cmp rax, 0x34
jb 0x1400044f6
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x140004306
mov rax, qword [rdx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
lea r9, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0x27]
call fcn.14000686c
nop
call fcn.14000133c
mov rbx, rax
lea rcx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rcx, qword [rbp + 0x27]
mov qword [rbp + 0xf], rcx
lea rax, [rbp + 0x17]
mov qword [rbp + 7], rax
and qword [rbp - 0x19], 0
and qword [rbp - 9], 0
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
lea r9, str.RtlInitUnicodeString
mov edx, 0x14
lea rcx, [rbp - 0x19]
call fcn.140006200
nop
lea r9, [rbp + 0xf]
lea r8, [rbp + 7]
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.1400041f0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x1400043cb
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400043c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400043c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009d90
call fcn.14000133c
lea rcx, [rbp + 0x17]
mov qword [rbp + 7], rcx
mov qword [rbp - 1], 0xf
mov qword [rbp - 9], 0xe
movsd xmm0, qword [str.NtUnloadDriver]
movsd qword [rbp - 0x19], xmm0
mov ecx, dword [0x14000cbf0]
mov dword [rbp - 0x11], ecx
movzx ecx, word [0x14000cbf4]
mov word [rbp - 0xd], cx
mov byte [rbp - 0xb], 0
lea r8, [rbp + 7]
lea rdx, [rbp - 0x19]
mov rcx, rax
call fcn.140005efc
mov ebx, eax
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x14000445d
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004458
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004458
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009d90
mov rax, qword [rdi + 0x10]
sub rsi, rax
cmp rsi, 0x22
jb 0x1400044f0
cmp qword [rdi + 0x18], 8
jb 0x140004478
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x22
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x19]
call fcn.14000686c
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
lea rcx, [rbp - 0x19]
call fcn.1400055dc
nop
lea rcx, [rbp + 0x27]
call fcn.1400055dc
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140009d70
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140001270
nop
call fcn.140001270
int3
Function at 0x1400044fc
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, r8
mov dword [rsp + 0x40], 1
mov rbx, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 8
jb 0x140004551
mov rdi, qword [rdi]
mov r9, rdi
lea r8, str.___s
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140001068
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
lea rdx, str.systemCurrentControlSetServices
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
xor edi, edi
test eax, eax
jne 0x14000464b
cmp qword [rbx + 0x18], 8
jb 0x140004597
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
je 0x1400045c2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14000464b
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400045cb
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.ImagePath
lea rax, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
je 0x140004617
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400045b0
mov r9d, 4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
lea rdx, str.Type
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140004649
mov rcx, qword [rsp + 0x30]
jmp 0x14000460f
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140009d70
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400047ac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x40], rdx
mov ebx, 0x20a
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x140004899
lea rcx, [rbp - 0x50]
or rdx, 0xffffffffffffffff
mov rax, rdx
xor edi, edi
inc rax
cmp word [rcx + rax*2], di
jne 0x140004821
cmp word [rbp + rax*2 - 0x52], 0x5c
jne 0x140004848
lea rax, [rax*2 - 2]
cmp rax, rbx
jae 0x14000498a
mov word [rbp + rax - 0x50], di
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], di
lea rax, [rbp - 0x50]
inc rdx
cmp word [rax + rdx*2], di
jne 0x140004860
lea rcx, [rbp - 0x78]
cmp rdx, 7
ja 0x14000488e
mov qword [rbp - 0x68], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memmove
mov word [rbp + rbx - 0x78], di
jmp 0x1400048af
lea r9, [rbp - 0x50]
call fcn.1400060b4
jmp 0x1400048af
xor edi, edi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x78], di
cmp qword [rbp - 0x68], rdi
jne 0x1400048cc
mov qword [rsi], rdi
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rdi
mov word [rsi], di
jmp 0x140004951
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.140004670
mov rbx, rax
movabs rcx, 0x7ffffffffffffffe
mov rdx, qword [rbp - 0x68]
sub rcx, rdx
cmp rcx, 1
jb 0x140004984
lea r9, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae r9, qword [rbp - 0x78]
mov qword [rsp + 0x30], 1
lea rax, [0x14000cccc]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x48]
call fcn.14000686c
nop
mov r9, rbx
lea r8, [rsp + 0x48]
mov rcx, rsi
call fcn.140006668
nop
lea rcx, [rsp + 0x48]
call fcn.1400055dc
nop
lea rcx, [rsp + 0x68]
call fcn.1400055dc
nop
lea rcx, [rbp - 0x78]
call fcn.1400055dc
mov rax, rsi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140009d70
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
call fcn.140001270
nop
call fcn.14000a3f8
int3
Function at 0x140004c38
Capabilities:
Write file on windows

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, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140004c69
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140004cdc
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140004c80
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004c82
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004cd6
test ecx, ecx
jle 0x140004cb6
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x140004cd6
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004cd6
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140004cf8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004d1d
xor eax, eax
jmp 0x140004e18
cmp qword [rcx + 0x68], 0
je 0x140004d2f
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x140004e18
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140004d46
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004d48
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004d78
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rsi
add r14, rbx
sub rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov r8, rbp
cmp qword [rsi + 0x80], 0
je 0x140004e12
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140004db3
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x140004dec
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x140004e29
cmp rbp, r15
ja 0x140004dc1
mov r8, rbx
test rbx, rbx
je 0x140004e12
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
sub rdi, rbp
jmp 0x140004e15
Function at 0x1400051d4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14000520d
xor eax, eax
jmp 0x140005320
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140005236
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, qword [rax]
cmp qword [rax], r8
jae 0x140005236
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x140005320
cmp qword [rcx + 0x80], 0
je 0x14000531e
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140005271
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005295
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
cmovne edi, esi
jmp 0x14000531e
lea rax, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400052e3
sub eax, 1
je 0x1400052e3
cmp eax, 2
jne 0x14000531e
movsx ecx, byte [rbp - 0x30]
jmp 0x14000527e
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14000530e
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14000531e
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
mov eax, esi
jne 0x140005320
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140009d70
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400058e8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005957
cmp byte [rcx + 0x71], 0
je 0x140005957
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400059ac
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005971
sub eax, 1
je 0x140005975
cmp eax, 2
jne 0x1400059ac
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140009d70
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400059a3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400059ac
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005959
xor al, al
jmp 0x140005959

Function at 0x140005efc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140009908
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140005f31
mov rdx, qword [rbx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
cmp qword [rbx + 0x10], rcx
jbe 0x140005f61
movzx eax, byte [rcx + rdx]
movabs r8, 0x100000001b3
xor r9, rax
inc rcx
imul r9, r8
cmp rcx, qword [rbx + 0x10]
jb 0x140005f43
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140006b94
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140005f99
cmp rbx, qword [rsi + 8]
je 0x140005f99
mov rbx, qword [rbx + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140005fa2
mov rcx, qword [r14]
call rbx
jmp 0x140005fa7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xc0000138
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14000933c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movabs rax, 0xfffffffffffffff
mov qword [rsp + 0x20], rcx
mov rsi, rcx
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rdx, rax
jbe 0x140009381
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rbp, qword [rsi + 8]
lea rax, [rdx - 1]
or rax, 1
lea r12, [rsi + 0x18]
bsr rcx, rax
mov ebx, 1
mov r8, rbp
inc ecx
shl rbx, cl
mov rcx, r12
lea rdx, [rbx + rbx]
call fcn.140005d3c
lea rax, [rbx - 1]
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x30], rax
mov rbx, qword [rsi + 8]
mov rbx, qword [rbx]
mov rdi, rbx
cmp rbx, rbp
je 0x140009538
mov rdi, qword [rdi]
lea r15, [rbx + 0x10]
cmp qword [r15 + 0x18], 0x10
mov r8, r15
mov r13, qword [r15 + 0x10]
jb 0x1400093e5
mov r8, qword [r15]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
test r13, r13
je 0x140009414
movzx eax, byte [rdx + r8]
movabs r9, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r9
cmp rdx, r13
jb 0x1400093f6
mov r14, qword [rsi + 0x30]
mov r12, qword [r12]
and r14, rcx
add r14, r14
cmp qword [r12 + r14*8], rbp
jne 0x140009436
mov qword [r12 + r14*8], rbx
mov qword [r12 + r14*8 + 8], rbx
jmp 0x140009528
mov rsi, qword [r12 + r14*8 + 8]
lea rdx, [rsi + 0x10]
cmp qword [rdx + 0x18], 0x10
mov rax, qword [rdx + 0x10]
jb 0x14000944d
mov rdx, qword [rdx]
cmp qword [r15 + 0x18], 0x10
mov rcx, r15
jb 0x14000945a
mov rcx, qword [r15]
cmp r13, rax
jne 0x14000949e
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000949e
mov r8, qword [rsi]
cmp r8, rbx
je 0x140009494
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
mov qword [r12 + r14*8 + 8], rbx
jmp 0x140009523
cmp qword [r12 + r14*8], rsi
je 0x1400094fe
mov rsi, qword [rsi + 8]
lea rdx, [rsi + 0x10]
cmp qword [rdx + 0x18], 0x10
mov rax, qword [rdx + 0x10]
jb 0x1400094ba
mov rdx, qword [rdx]
cmp qword [r15 + 0x18], 0x10
mov rcx, r15
jb 0x1400094c7
mov rcx, qword [r15]
cmp r13, rax
jne 0x14000949e
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000949e
mov r8, qword [rsi]
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
jmp 0x140009523
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rsi
mov rax, qword [rsi + 8]
mov qword [rax], rbx
mov qword [rsi + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
mov qword [r12 + r14*8], rbx
mov rsi, qword [rsp + 0x20]
lea r12, [rsi + 0x18]
mov rbx, rdi
cmp rdi, rbp
jne 0x1400093cd
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009908
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rsi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov esi, 1
xor eax, eax
lock cmpxchg dword [0x1400181a8], esi
jne 0x140009999
and qword [rbp - 0x40], 0
lea r9, str.SeDebugPrivilege
and qword [rbp - 0x30], 0
lea edx, [rsi + 0xf]
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x28], 7
call fcn.1400060b4
lea rcx, [rbp - 0x40]
call fcn.140009550
lea rcx, [rbp - 0x40]
call fcn.1400055dc
and qword [rbp - 0x20], 0
lea r9, str.SeLoadDriverPrivilege
and qword [rbp - 0x10], 0
lea edx, [rsi + 0x14]
lea rcx, [rbp - 0x20]
mov qword [rbp - 8], 7
call fcn.1400060b4
lea rcx, [rbp - 0x20]
call fcn.140009550
lea rcx, [rbp - 0x20]
call fcn.1400055dc
call fcn.140009654
mov al, sil
mov rsi, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret

Function at 0x140009d00
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x36
syscall
ret