joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019238
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [0x14015be58], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x14001925f
call fcn.140018298
mov r8, rsi
lea rdx, [rsp + 0x58]
lea rcx, [0x14015be50]
call fcn.1400191c8
mov rdx, qword [rsp + 0x58]
cmp rdx, qword [0x14015be50]
je 0x14001928f
add rdx, 0x30
mov rcx, rbx
call fcn.14003e890
jmp 0x1400192c4
cmp qword [rdi + 8], 0
je 0x1400192b0
mov r8, rsi
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400191c8
mov rdx, qword [rsp + 0x58]
cmp rdx, qword [rdi]
jne 0x140019281
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
mov rcx, rbx
call fcn.14003e8e0
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400192d8
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x140159cc0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
mov edx, 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140019330
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14003e8e0
jmp 0x14001933f
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
and qword [rbx], 0
and qword [rbx + 8], 0
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14011ae70
add rsp, 0x140
pop rbx
ret
Function at 0x14001c37c
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov rax, qword [rdx]
cmp byte [rax], 0x22
je 0x14001c3ba
cmp byte [rax], 0x5b
je 0x14001c3b5
cmp byte [rax], 0x66
je 0x14001c3b0
cmp byte [rax], 0x6e
je 0x14001c3ab
cmp byte [rax], 0x74
je 0x14001c3a6
cmp byte [rax], 0x7b
jne fcn.14001b4f0
jmp fcn.14001bbe8
jmp fcn.14001c2fc
jmp fcn.14001b478
jmp fcn.14001b37c
jmp fcn.14001b1f0
xor r9d, r9d
jmp fcn.14001beb4

Function at 0x14001e4d4
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
and qword [rcx + 8], 0
lea rax, vtable.xmrig::ConsoleLog.0
and qword [rcx + 0x10], 0
mov rsi, rdx
mov qword [rcx], rax
mov rdi, rcx
call fcn.14001e640
test al, al
je 0x14001e5b3
mov ecx, 0x158
call fcn.14011ace8
mov rbx, rax
mov qword [rdi + 8], rax
call fcn.1400d9df0
xor r9d, r9d
mov rcx, rax
mov rdx, rbx
lea r8d, [r9 + 1]
call fcn.1400de050
test eax, eax
js 0x14001e5b3
mov rcx, qword [rdi + 8]
xor edx, edx
call fcn.1400de550
mov rax, qword [rdi + 8]
mov ecx, 0xfffffff6
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e58c
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14001e58c
mov edx, dword [rsp + 0x40]
mov rcx, rbx
and edx, 0xffffffbf
mov dword [rsp + 0x40], edx
bts edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp byte [rsi], 0
je 0x14001e5ba
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140022ec0
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x20]
call fcn.14011ad24
jmp 0x14001e5ba
mov byte [0x1401582d0], 0
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14003e0a8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, 0x270
mov rbx, rcx
cmp dword [rcx], r9d
jne 0x14003e0fb
lea r8, [rcx + 8]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14003e0c0
jmp 0x14003e108
cmp dword [rcx], 0x4e0
jb 0x14003e108
call fcn.14003e148
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

Function at 0x14003e148
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov edx, eax
add r10, 4
mov r11d, dword [r10]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14003e15f
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
mov eax, r11d
mov r8, r10
mov edx, eax
add r10, 4
mov r11d, dword [r10]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14003e1ac
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and dword [r9], ebx
mov rbx, qword [rsp + 8]
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
shr edx, 1
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
ret
Function at 0x14004407c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
call fcn.14001fca8
mov rdi, rax
cmp byte [rax + 0x10], 0
je 0x1400441a8
mov ecx, 0x18
call fcn.14011ace8
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400440cb
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.1400d82ac
nop
mov qword [rbx + 0x38], rax
mov ecx, 0xa8
call fcn.14011ace8
mov qword [rsp + 0x40], rax
lea r14, [rdi + 0x18]
test rax, rax
je 0x1400440fc
mov r9, qword [rbx + 0x38]
movzx r8d, word [rdi + 0x38]
mov rdx, r14
mov rcx, rax
call fcn.14004e61c
nop
mov qword [rbx + 0x28], rax
mov rcx, rax
call fcn.14004e750
mov esi, eax
mov ecx, eax
test eax, eax
jns 0x14004411b
call fcn.1400da080
movzx ecx, word [rdi + 0x38]
jmp 0x140044122
lea rax, [0x140121e69]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov r9, qword [r14]
mov r8d, 0x24
lea rdx, str.HTTP_API
lea rcx, str.e_1_32m__e_0me_1_37m__13se_0me_1__dm_s:_d_e_1_31m_se_0m
call fcn.14001f130
test esi, esi
jns 0x140044157
mov rcx, rbx
call fcn.1400441c0
xor al, al
jmp 0x1400441aa
mov word [rbx + 0x30], si
mov edx, 1
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400441a8
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400441a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14015d5a8], rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov qword [0x14015d5b0], rcx
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140050d34
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov ecx, select
call fcn.14011ace8
mov r9, rax
test rax, rax
je 0x140050d6d
mov rax, qword [rbx]
mov qword [r9], rax
mov rax, qword [rsi]
mov qword [r9 + 8], rax
jmp 0x140050d70
xor r9d, r9d
mov qword [rsp + 0x40], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
lea r8, [0x140050d04]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140050dac
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x140063d48
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140159cc0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rcx, qword [0x14015d9e0]
lea rdx, [0x14015d9f0]
test rcx, rcx
jne 0x140063dbe
lea rcx, str.nvml.dll
call fcn.1400e8cd0
test eax, eax
jne 0x140063d88
mov al, 1
jmp 0x140063dc8
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, str._PROGRAMFILES_NVIDIA_CorporationNVSMI_nvml.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [0x14015d9f0]
lea rcx, [rsp + 0x20]
call fcn.1400e8cd0
test eax, eax
sete al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14011ae70
add rsp, 0x148
ret
Function at 0x14006e0e8
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov rax, qword [rdx + 0x28]
cmp byte [rax], 0x22
je 0x14006e127
cmp byte [rax], 0x5b
je 0x14006e122
cmp byte [rax], 0x66
je 0x14006e11d
cmp byte [rax], 0x6e
je 0x14006e118
cmp byte [rax], 0x74
je 0x14006e113
cmp byte [rax], 0x7b
jne fcn.14006d310
jmp fcn.14006da98
jmp fcn.14006e038
jmp fcn.14006d264
jmp fcn.14006d10c
jmp fcn.14006cf68
xor r9d, r9d
jmp fcn.14006dd84

Function at 0x14006f0e8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140159cc0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14006f157
cmp byte [rcx + 0x71], 0
je 0x14006f157
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14006f1ac
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 0x14006f171
sub eax, 1
je 0x14006f175
cmp eax, 2
jne 0x14006f1ac
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14011ae70
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 0x14006f1a3
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 0x14006f1ac
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14006f159
xor al, al
jmp 0x14006f159
Function at 0x14006f724
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 [0x140159cc0]
xor rax, rsp
mov qword [rbp - 8], rax
or esi, 0xffffffff
mov r14d, edx
mov rdi, rcx
cmp edx, esi
jne 0x14006f75e
xor eax, eax
jmp 0x14006f87d
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14006f797
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14006f797
mov rcx, rdi
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], r14b
mov eax, r14d
jmp 0x14006f87d
cmp qword [rdi + 0x80], 0
je 0x14006f87b
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x14006f7d1
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14006f7f2
movsx ecx, r14b
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
jmp 0x14006f877
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], r14b
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
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 0x14006f840
sub eax, 1
je 0x14006f840
cmp eax, 2
jne 0x14006f87b
movsx ecx, byte [rbp - 0x40]
jmp 0x14006f7de
mov rbx, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub rbx, rax
je 0x14006f86b
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x28]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14006f87b
lea rax, [rbp - 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rbp - 0x30], rax
cmovne esi, r14d
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14011ae70
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 0x140070134
Capabilities:
Read 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
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140070162
xor eax, eax
jmp 0x140070249
cmp qword [rcx + 0x68], 0
je 0x140070174
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 0x140070249
mov rdi, rsi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x1400701b4
cmp rax, rsi
mov rbx, rsi
mov rcx, rbp
cmovb rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rbx
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rbp
add r14, rbx
sub rdi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
je 0x140070243
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rbp + 0x70]
cmp rax, rcx
jne 0x1400701ee
mov rdx, qword [rbp + 0x88]
mov rcx, rbp
mov r9, qword [rbp + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, rdi
mov ebx, 0xfff
jmp 0x14007021e
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rcx, rdi
cmp rax, rbx
jne 0x140070243
cmp rdi, rbx
ja 0x1400701f8
test rcx, rcx
je 0x140070243
mov r9, qword [rbp + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
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 0x140070264
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14007028e
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 0x1400702fe
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x1400702f8
test rax, rax
jle 0x1400702d8
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x1400702f8
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400702f8
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 + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14007073c
Capabilities:
Manipulate user privileges

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x28]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140070859
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], ebx
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rbp + 0x20]
test r9d, r9d
je 0x1400707a7
mov edx, r9d
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r9d, dword [rbp + 0x20]
mov rdi, rax
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140070859
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x30]
mov r8d, 0xf0fff
lea rdx, [rbp - 0x30]
xor ecx, ecx
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
jne 0x14007084c
lea rdx, str.SeLockMemoryPrivilege
lea rcx, [rbp - 0x40]
call fcn.140070918
mov rdx, qword [rdi]
lea r8, [rbp - 0x50]
mov rcx, qword [rbp + 0x30]
mov r9d, 1
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x50], xmm0
call sub.ADVAPI32.dll_LsaAddAccountRights
test eax, eax
jne 0x140070843
lea rdx, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
lea ecx, [rax + 5]
call fcn.14001f16c
mov ebx, 1
mov rcx, qword [rbp + 0x30]
call sub.ADVAPI32.dll_LsaClose
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x14007085b
xor eax, eax
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret

Function at 0x14007098c
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test dl, dl
je 0x1400709c2
lea rdx, [rcx - 1]
mov r8d, 0x20003000
xor ecx, ecx
and rdx, 0xffffffffffe00000
add rdx, 0x200000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1400709d9
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
add rsp, 0x20
pop rbx
ret
Function at 0x14007137c
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [rcx], 0x6a09e667
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x28], rax
mov dword [rcx + 0x24], eax
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov qword [rcx + 0x1c], 0x5be0cd19
ret

Function at 0x1400714d4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140159cc0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r8, rdx
lea rax, [rsp + 0x60]
sub r8, rax
mov r9, rcx
lea rax, [rsp + 0x60]
mov rdi, rcx
sub r9, rax
xor ebx, ebx
mov edx, ebx
lea r10d, [rbx + 0x10]
lea rcx, [rsp + 0x60]
add rcx, rdx
mov eax, dword [r8 + rcx]
mov dword [rcx], eax
xor eax, dword [rcx + r9]
mov dword [rbp + rdx - 0x20], eax
add rdx, 4
sub r10, 1
jne 0x14007151a
xor r8d, r8d
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140072480
mov r8d, 0x1000000
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140072480
mov r8d, 0x2000000
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140072480
mov r8d, 0x3000000
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140072480
mov r8d, 0x4000000
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140072480
mov r8d, 0x5000000
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140072480
mov r8d, 0x6000000
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140072480
mov r8d, 0x7000000
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140072480
mov r8d, 0x8000000
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140072480
mov r8d, 0x9000000
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x60]
call fcn.140072480
xor r8d, r8d
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x20]
call fcn.140071a14
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140071a14
mov r8d, 2
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140071a14
mov r8d, 3
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140071a14
mov r8d, 4
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140071a14
mov r8d, 5
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140071a14
mov r8d, 6
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140071a14
mov r8d, 7
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140071a14
mov r8d, 8
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140071a14
mov r8d, 9
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x60]
call fcn.140071a14
mov eax, dword [rsp + rbx + 0x20]
xor eax, dword [rbp + rbx - 0x20]
xor dword [rbx + rdi], eax
add rbx, 4
cmp rbx, 0x40
jl 0x1400716c2
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14011ae70
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret