joyce8/EMBER2024-capa huggingface dataset:
Function at 0x553e10
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
movzx r9d, byte [rcx]
mov rbx, rdx
mov r11, rcx
test r9b, r9b
je 0x553f9d
lea rdx, [0x00400000]
movzx r10d, byte [rbx]
test r10b, r10b
je 0x553f9d
test r8, r8
je 0x553fa2
movsx eax, r9b
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x553e62
cdqe
mov ecx, dword [rdx + rax*4 + 0x153fd4]
add rcx, rdx
jmp rcx
mov r9b, 0x41
jmp case.default.0x553e62
mov r9b, 0x42
jmp case.default.0x553e62
mov r9b, 0x43
jmp case.default.0x553e62
mov r9b, 0x44
jmp case.default.0x553e62
mov r9b, 0x45
jmp case.default.0x553e62
mov r9b, 0x46
jmp case.default.0x553e62
mov r9b, 0x47
jmp case.default.0x553e62
mov r9b, 0x48
jmp case.default.0x553e62
mov r9b, 0x49
jmp case.default.0x553e62
mov r9b, 0x4a
jmp case.default.0x553e62
mov r9b, 0x4b
jmp case.default.0x553e62
mov r9b, 0x4c
jmp case.default.0x553e62
mov r9b, 0x4d
jmp case.default.0x553e62
mov r9b, 0x4e
jmp case.default.0x553e62
mov r9b, 0x4f
jmp case.default.0x553e62
mov r9b, 0x50
jmp case.default.0x553e62
mov r9b, 0x51
jmp case.default.0x553e62
mov r9b, 0x52
jmp case.default.0x553e62
mov r9b, 0x53
jmp case.default.0x553e62
mov r9b, 0x54
jmp case.default.0x553e62
mov r9b, 0x55
jmp case.default.0x553e62
mov r9b, 0x56
jmp case.default.0x553e62
mov r9b, 0x57
jmp case.default.0x553e62
mov r9b, 0x58
jmp case.default.0x553e62
mov r9b, 0x59
jmp case.default.0x553e62
mov r9b, 0x5a
movsx eax, r10b
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x553f00
cdqe
mov ecx, dword [rdx + rax*4 + 0x15403c]
add rcx, rdx
jmp rcx
mov r10b, 0x41
jmp case.default.0x553f00
mov r10b, 0x42
jmp case.default.0x553f00
mov r10b, 0x43
jmp case.default.0x553f00
mov r10b, 0x44
jmp case.default.0x553f00
mov r10b, 0x45
jmp case.default.0x553f00
mov r10b, 0x46
jmp case.default.0x553f00
mov r10b, 0x47
jmp case.default.0x553f00
mov r10b, 0x48
jmp case.default.0x553f00
mov r10b, 0x49
jmp case.default.0x553f00
mov r10b, 0x4a
jmp case.default.0x553f00
mov r10b, 0x4b
jmp case.default.0x553f00
mov r10b, 0x4c
jmp case.default.0x553f00
mov r10b, 0x4d
jmp case.default.0x553f00
mov r10b, 0x4e
jmp case.default.0x553f00
mov r10b, 0x4f
jmp case.default.0x553f00
mov r10b, 0x50
jmp case.default.0x553f00
mov r10b, 0x51
jmp case.default.0x553f00
mov r10b, 0x52
jmp case.default.0x553f00
mov r10b, 0x53
jmp case.default.0x553f00
mov r10b, 0x54
jmp case.default.0x553f00
mov r10b, 0x55
jmp case.default.0x553f00
mov r10b, 0x56
jmp case.default.0x553f00
mov r10b, 0x57
jmp case.default.0x553f00
mov r10b, 0x58
jmp case.default.0x553f00
mov r10b, 0x59
jmp case.default.0x553f00
mov r10b, 0x5a
cmp r9b, r10b
jne 0x553f9d
mov r9b, byte [r11 + 1]
inc r11
dec r8
inc rbx
test r9b, r9b
jne 0x553e30
test r8, r8
jne 0x553fad
mov eax, 1
add rsp, 0x20
pop rbx
ret
movzx ecx, byte [r11]
call fcn.00553830
movzx ecx, byte [rbx]
movzx r9d, al
call fcn.00553830
xor ecx, ecx
cmp r9b, al
sete cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x5540b0
Capabilities:
Parse pe header

Disassembly:
cmp r8, 1
mov r10, rcx
jb 0x554183
lea r11, [0x00400000]
movsx r9d, byte [rdx]
lea eax, [r9 - 0x61]
cmp eax, 0x19
ja case.default.0x5540e2
cdqe
mov ecx, dword [r11 + rax*4 + 0x154188]
add rcx, r11
jmp rcx
mov r9b, 0x41
jmp case.default.0x5540e2
mov r9b, 0x42
jmp case.default.0x5540e2
mov r9b, 0x43
jmp case.default.0x5540e2
mov r9b, 0x44
jmp case.default.0x5540e2
mov r9b, 0x45
jmp case.default.0x5540e2
mov r9b, 0x46
jmp case.default.0x5540e2
mov r9b, 0x47
jmp case.default.0x5540e2
mov r9b, 0x48
jmp case.default.0x5540e2
mov r9b, 0x49
jmp case.default.0x5540e2
mov r9b, 0x4a
jmp case.default.0x5540e2
mov r9b, 0x4b
jmp case.default.0x5540e2
mov r9b, 0x4c
jmp case.default.0x5540e2
mov r9b, 0x4d
jmp case.default.0x5540e2
mov r9b, 0x4e
jmp case.default.0x5540e2
mov r9b, 0x4f
jmp case.default.0x5540e2
mov r9b, 0x50
jmp case.default.0x5540e2
mov r9b, 0x51
jmp case.default.0x5540e2
mov r9b, 0x52
jmp case.default.0x5540e2
mov r9b, 0x53
jmp case.default.0x5540e2
mov r9b, 0x54
jmp case.default.0x5540e2
mov r9b, 0x55
jmp case.default.0x5540e2
mov r9b, 0x56
jmp case.default.0x5540e2
mov r9b, 0x57
jmp case.default.0x5540e2
mov r9b, 0x58
jmp case.default.0x5540e2
mov r9b, 0x59
jmp case.default.0x5540e2
mov r9b, 0x5a
mov byte [r10], r9b
movzx eax, byte [rdx]
inc r10
inc rdx
test al, al
je 0x554183
dec r8
jne 0x5540c4
ret 0

Function at 0x554270
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x005ca070]
mov qword [rsp + 0x130], rax
call qword [sym.imp.msvcrt.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x5542d1
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x5542d1
lea rcx, [rsp + 0x20]
call qword [case.0x534e6c.1]
mov rcx, qword [rsp + 0x130]
call fcn.0055e990
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
call fcn.0055e990
add rsp, 0x148
ret

Function at 0x556920
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov dword [rsp + 0x38], edx
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x556a10
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
je 0x556a3a
cmp rax, 0xffffffffffffffff
jne 0x556a3c
xor eax, eax
add rsp, 0x38
ret
Function at 0x558910
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
sub rsp, 0xa8
mov rax, qword [0x005ca070]
mov qword [rsp + 0x80], rax
xor eax, eax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rbp, rcx
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
mov rdi, rdx
xor ebx, ebx
mov rsi, rdx
mov rcx, 0xffffffffffffffff
mov r8d, 1
mov edx, ebx
repne scasb al, byte [rdi]
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
not rcx
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
lea rdi, [rcx - 1]
lea ecx, [rcx*8 - 8]
lea eax, [rdi*8]
mov dword [rsp + 0x30], ecx
cmp ecx, eax
mov eax, edi
cmovb edx, r8d
shr eax, 0x1d
add edx, eax
cmp edi, 0x40
mov dword [rsp + 0x34], edx
jb 0x558a19
mov rax, qword [rsi]
lea rdx, [r11 - 0x70]
lea rcx, [rsp + 0x20]
mov qword [r11 - 0x70], rax
mov rax, qword [rsi + 8]
mov qword [r11 - 0x68], rax
mov rax, qword [rsi + 0x10]
mov qword [r11 - 0x60], rax
mov rax, qword [rsi + 0x18]
mov qword [r11 - 0x58], rax
mov rax, qword [rsi + 0x20]
mov qword [r11 - 0x50], rax
mov rax, qword [rsi + 0x28]
mov qword [r11 - 0x48], rax
mov rax, qword [rsi + 0x30]
mov qword [r11 - 0x40], rax
mov rax, qword [rsi + 0x38]
mov qword [r11 - 0x38], rax
call fcn.00557d90
cmp edi, 0x7f
mov ebx, 0x40
jbe 0x558a19
nop
mov edx, ebx
lea rcx, [rsp + 0x20]
add rdx, rsi
call fcn.00557d90
add ebx, 0x40
lea eax, [rbx + 0x3f]
cmp eax, edi
jb 0x558a00
sub edi, ebx
mov edx, ebx
lea rcx, [rsp + 0x38]
mov r8d, edi
add rdx, rsi
call fcn.004435a0
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.005586f0
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
call fcn.0055e990
add rsp, 0xa8
ret
Function at 0x558dd0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
sub rsp, 0x148
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movzx esi, r8b
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rax - 0x78]
call sub.msvcrt.dll_memset
mov dword [rsp + 0xd0], WSASetLastError
mov rax, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor ebp, ebp
cmp qword [rbx + 0x10], rbp
jne 0x558e2b
mov rcx, rbp
jmp 0x558e36
mov rcx, qword [rbx + 8]
test rcx, rcx
cmove rcx, rax
cmp qword [rdi + 0x10], rbp
jne 0x558e41
mov rdx, rbp
jmp 0x558e4c
mov rdx, qword [rdi + 8]
test rdx, rdx
cmove rdx, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x558ee7
mov rdi, qword [rdi + 8]
mov rax, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test rdi, rdi
cmove rdi, rax
mov rbx, qword [rbx + 8]
test rbx, rbx
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8, rbx
lea rdx, str.Run:__s__s__x
lea rcx, [rsp + 0xb0]
call fcn.004298b0
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
lea rdx, [0x005c53f0]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll__CxxThrowException
nop
mov dword [rsp + 0x50], ebp
test sil, sil
je 0x558f10
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x150]
mov rbp, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x160]
mov rdi, qword [rsp + 0x168]
add rsp, 0x148
ret
Function at 0x558f80
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
sub rsp, 0x108
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
movzx ebp, r9b
mov rbx, r8
mov rdi, rdx
mov r12, rcx
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
movzx eax, bpl
neg al
sbb r10d, r10d
and r10d, 0x40
bts r10d, 0xa
mov dword [rsp + 0x34], r10d
xor esi, esi
mov qword [rsp + 0x38], rsi
lea rax, str.runas
mov qword [rsp + 0x40], rax
mov rax, qword [r12 + 8]
mov rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test rax, rax
cmove rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 8]
test rax, rax
cmove rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rdi + 8]
test rax, rax
cmove rax, rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x55909c
mov rbx, qword [r12 + 8]
test rbx, rbx
cmove rbx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.RunAs:__s__x
lea rcx, [rsp + 0xd8]
call fcn.004298b0
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
lea rdx, [0x005c53f0]
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll__CxxThrowException
nop
mov dword [rsp + 0x20], esi
test bpl, bpl
je 0x5590e2
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x5590e2
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rsp + 0x20]
mov eax, esi
mov rbx, qword [rsp + 0x110]
mov rbp, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x120]
mov rdi, qword [rsp + 0x128]
mov r12, qword [rsp + 0x100]
add rsp, 0x108
ret
Function at 0x55a2e0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rcx
mov r11, rsp
sub rsp, 0x88
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 - 8], rdi
mov qword [r11 - 0x10], r12
mov rsi, rcx
xor r12d, r12d
mov qword [rcx], r12
mov qword [r11 - 0x30], r12
lea rax, [r11 - 0x30]
mov qword [r11 - 0x68], rax
lea r9, [0x00565a38]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x00565b08]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x55a347
mov ecx, eax
call fcn.00443650
mov rbx, qword [rsp + 0x58]
test rbx, rbx
jne 0x55a360
mov ecx, 0x80004003
call fcn.00443650
mov rbx, qword [rsp + 0x58]
mov ecx, 0x18
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x55a3a3
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
jne 0x55a3a6
mov ecx, 0x8007000e
call fcn.00443650
jmp 0x55a3a6
mov rdi, r12
mov qword [rsp + 0x50], rdi
test rdi, rdi
jne 0x55a3bb
mov ecx, 0x8007000e
call fcn.00443650
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x55a3c9
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsi], r12
test rdi, rdi
je 0x55a3d6
mov rdx, qword [rdi]
jmp 0x55a3d9
mov rdx, r12
mov rax, qword [rbx]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
sets bpl
test rdi, rdi
je 0x55a440
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
dec ecx
jne 0x55a440
mov rcx, qword [rdi]
test rcx, rcx
je 0x55a42a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x55a438
call fcn.00442df0
mov rcx, rdi
call fcn.00442df0
test bpl, bpl
je 0x55a44c
mov ecx, ebx
call fcn.00443650
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsi]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x55a485
mov ecx, eax
call fcn.00443650
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x55a49b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, rsi
jmp 0x55a49e
mov rax, rsi
mov rbx, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0x80]
mov r12, qword [rsp + 0x78]
add rsp, 0x88
ret
Function at 0x140001d00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 4
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderReal_Time_Protection
mov dword [rsp + 0x3c], 4
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x140001d66
lea rdx, str._Error__Failed_to_open_registry_key_for_Windows_Defender_Real_Time_Protection:
jmp 0x140001df7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.DisableRealtimeMonitoring
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140001df0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._Info__Defender_Real_Time_Protection_value:
call fcn.140004990
mov edx, dword [rsp + 0x38]
mov rcx, rax
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140004b70]
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]
cmp dword [rsp + 0x38], 1
sete al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400053c0
add rsp, 0x50
pop rbx
ret
lea rdx, str._Error__Failed_to_query_the_DisableRealtimeMonitoring_value:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004990
mov edx, ebx
mov rcx, rax
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140004b70]
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]
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400053c0
add rsp, 0x50
pop rbx
ret
Function at 0x140003850
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140003878
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp 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]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000389e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400038a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400038f9
test ecx, ecx
jle 0x1400038d9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400038f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400038f9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140003920
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140003942
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003958
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp 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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003974
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003976
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400039b2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140003a4e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400039ed
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140003a2e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140003a4e
cmp rbx, rax
ja 0x140003a00
test rbx, rbx
je 0x140003a4e
mov r9, qword [rsi + 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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140003eb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003edd
xor eax, eax
jmp 0x140004049
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003f17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003f17
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004049
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000403c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003f5a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140003f85
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004041
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x140003ff4
sub eax, 1
je 0x140003ff4
cmp eax, 2
jne 0x14000403c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004041
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004022
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000403c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004041
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400053c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret