joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010120
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.140002910
mov rcx, qword [rsp + 0xa0]
call fcn.140003130
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x98]
call fcn.140003130
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x90]
call fcn.140003130
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x88]
call fcn.140003130
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.1400106d0
nop
lea rax, [0x1400107b0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
add rax, 8
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x60]
call fcn.140005020
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x58]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
je 0x140010232
lea rcx, [rsp + 0x60]
call fcn.1400104a0
jmp 0x14001024d
mov rax, qword [rsp + 0x80]
mov dword [rax + 8], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, [rsp + 0x60]
call fcn.1400104d0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001ef90
add rsp, 0x78
ret
Function at 0x140013b60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140013baa
mov rcx, qword [rsp + 0x50]
call fcn.14001a6b0
mov rcx, qword [rsp + 0x60]
call fcn.140002fe0
mov rax, qword [rsp + 0x50]
jmp 0x140013cde
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140013bee
mov rcx, qword [rsp + 0x50]
call fcn.14001a6b0
mov rcx, qword [rsp + 0x60]
call fcn.140002fe0
mov rax, qword [rsp + 0x50]
jmp 0x140013cde
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
xor eax, eax
mov word [rsp + 0x20], ax
jmp 0x140013c2a
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
movzx ecx, word [rsp + 0x24]
cmp eax, ecx
jge 0x140013cc5
mov rcx, qword [rsp + 0x60]
call fcn.140006e70
movzx ecx, word [rsp + 0x20]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x30]
add rdx, rcx
mov rcx, rdx
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x140013c70
inc rcx
test dl, dl
jne 0x140013c5d
xor eax, eax
jmp 0x140013c75
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140013cc0
movzx eax, word [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0xc]
movzx ecx, word [rsp + 0x20]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x30]
lea rcx, [rdx + rcx + 8]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.14001a6e0
mov rcx, qword [rsp + 0x60]
call fcn.140002fe0
mov rax, qword [rsp + 0x50]
jmp 0x140013cde
jmp 0x140013c1d
mov rcx, qword [rsp + 0x50]
call fcn.14001a6b0
mov rcx, qword [rsp + 0x60]
call fcn.140002fe0
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x140014420
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140038118], eax
jle 0x140014497
lea rcx, [0x140038118]
call fcn.14001f400
cmp dword [0x140038118], 0xffffffff
jne 0x140014497
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [0x1400380d8]
call fcn.140003090
lea rcx, [0x140021250]
call fcn.14001f258
nop
lea rcx, [0x140038118]
call fcn.14001f3a0
lea rcx, [0x1400380d8]
call fcn.140006e70
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x60]
call fcn.140006e70
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x140014502
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140014502
mov dword [rsp + 0x20], 1
jmp 0x14001450a
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001ef90
add rsp, 0x58
ret
Function at 0x140014530
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x68]
call fcn.140003090
nop
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x68]
call fcn.140017e40
lea rcx, [rsp + 0x68]
call fcn.140006e70
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400145ba
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x68]
call fcn.140002fe0
movzx eax, byte [rsp + 0x34]
jmp 0x140014770
mov byte [rsp + 0x60], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140014610
mov byte [rsp + 0x35], 0
lea rcx, [rsp + 0x68]
call fcn.140002fe0
movzx eax, byte [rsp + 0x35]
jmp 0x140014770
mov byte [rsp + 0x61], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x61]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140014666
mov byte [rsp + 0x36], 0
lea rcx, [rsp + 0x68]
call fcn.140002fe0
movzx eax, byte [rsp + 0x36]
jmp 0x140014770
mov byte [rsp + 0x62], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x62]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400146bc
mov byte [rsp + 0x37], 0
lea rcx, [rsp + 0x68]
call fcn.140002fe0
movzx eax, byte [rsp + 0x37]
jmp 0x140014770
mov rcx, qword [rsp + 0xa0]
call fcn.140005110
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0xa0]
call fcn.140006e70
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140014737
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0x68]
call fcn.140002fe0
movzx eax, byte [rsp + 0x38]
jmp 0x140014770
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140014750
mov dword [rsp + 0x3c], 1
jmp 0x140014758
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x39], al
lea rcx, [rsp + 0x68]
call fcn.140002fe0
movzx eax, byte [rsp + 0x39]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14001ef90
add rsp, 0x98
ret
Function at 0x1400148a0
Capabilities:
Install driver

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x158], rax
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x78]
call fcn.140017ac0
nop
lea rcx, [rsp + 0x78]
call fcn.140014790
movzx eax, al
test eax, eax
jne 0x1400148f0
mov dword [rsp + 0x24], 1
jmp 0x1400148f8
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x78]
call fcn.14000d290
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14001491b
xor al, al
jmp 0x140014ad1
xor r8d, r8d
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0xf8]
call fcn.14001a880
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0xd8]
call fcn.140013340
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x50]
call fcn.1400128b0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x60]
lea rdx, [0x1400323cc]
lea rcx, [rsp + 0x98]
call fcn.14001a820
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x70]
call fcn.140014530
movzx eax, al
test eax, eax
jne 0x1400149d9
mov dword [rsp + 0x28], 1
jmp 0x1400149e1
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x98]
call fcn.140002fe0
nop
lea rcx, [rsp + 0xb8]
call fcn.140002fe0
nop
lea rcx, [rsp + 0xd8]
call fcn.140012900
nop
lea rcx, [rsp + 0xf8]
call fcn.140012900
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140014a31
xor al, al
jmp 0x140014ad1
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x138]
call fcn.140003090
nop
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0x138]
call fcn.140017e40
lea rcx, [rsp + 0x138]
call fcn.140006e70
mov rdx, rax
lea rcx, [rsp + 0x118]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x128]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rsp + 0x128]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jne 0x140014aae
mov dword [rsp + 0x2c], 1
jmp 0x140014ab6
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x22], al
lea rcx, [rsp + 0x138]
call fcn.140002fe0
movzx eax, byte [rsp + 0x22]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14001ef90
add rsp, 0x168
ret
Function at 0x140014f30
Capabilities:
Unload driver

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x128], rax
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0xc0]
call fcn.140003090
nop
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0xc0]
call fcn.140017e40
lea rcx, [rsp + 0xc0]
call fcn.140006e70
mov rdx, rax
lea rcx, [rsp + 0xe0]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
jne 0x140014fc8
mov byte [rsp + 0x20], 1
jmp 0x140014fcd
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x23], al
lea rcx, [rsp + 0xa0]
call fcn.1400137a0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
call fcn.1400128b0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x100]
call fcn.14001ab80
nop
lea rcx, [rsp + 0x80]
call fcn.140002fe0
nop
lea rcx, [rsp + 0xa0]
call fcn.140012900
mov rcx, qword [rsp + 0x140]
call fcn.140014420
mov byte [rsp + 0x22], al
xor r8d, r8d
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x60]
call fcn.14001a880
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x60]
call fcn.1400134f0
nop
lea rcx, [rsp + 0x60]
call fcn.140012900
nop
jmp 0x1400150b8
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x1400150d4
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x1400150d4
mov dword [rsp + 0x28], 1
jmp 0x1400150dc
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x24], al
lea rcx, [rsp + 0x100]
call fcn.140002fe0
nop
lea rcx, [rsp + 0xc0]
call fcn.140002fe0
movzx eax, byte [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.14001ef90
add rsp, 0x138
ret
Function at 0x140016a10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140016a49
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
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 0x140016b37
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
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 qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140016adf
cmp qword [rsp + 0x20], 0
jle 0x140016adf
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140016a89
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
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, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1400035c0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x140016b27
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140016b27
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x140016b40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140016b74
xor eax, eax
jmp 0x140016d70
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140016ba6
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
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 0x140016d70
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140016c57
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140003a50
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
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, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.1400035c0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x140016d60
mov rcx, qword [rsp + 0x80]
call fcn.140018260
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x140016d0d
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140016d08
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x140016d70
jmp 0x140016c83
cmp qword [rsp + 0x50], 0
jbe 0x140016d60
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001ef90
add rsp, 0x78
ret
Function at 0x140018320
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14001835d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140018364
mov al, 1
jmp 0x1400184be
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140019540
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140019540
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.1400195a0
movzx eax, al
test eax, eax
je 0x1400183bb
xor al, al
jmp 0x1400184be
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14001842b
cmp dword [rsp + 0x30], 1
je 0x140018437
cmp dword [rsp + 0x30], 3
je 0x1400184ac
jmp 0x1400184bc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140018483
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x140018483
xor al, al
jmp 0x1400184be
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001849d
mov dword [rsp + 0x34], 1
jmp 0x1400184a5
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x1400184be
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400184be
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14001ef90
add rsp, 0xa8
ret
Function at 0x14001ae10
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1400380d0], eax
jle 0x14001aea6
lea rcx, [0x1400380d0]
call fcn.14001f400
cmp dword [0x1400380d0], 0xffffffff
jne 0x14001aea6
mov rax, qword [str.NtShutdownSystem]
mov qword [rsp + 0x20], rax
mov rcx, qword [str.ntdll.dll]
call qword [0x1400220c8]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call qword [0x1400220c0]
mov qword [0x140038008], rax
lea rcx, [0x1400380d0]
call fcn.14001f3a0
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140038018], eax
jle 0x14001aefd
lea rcx, [0x140038018]
call fcn.14001f400
cmp dword [0x140038018], 0xffffffff
jne 0x14001aefd
lea rcx, [0x140038080]
call fcn.14000ae30
lea rcx, [0x1400212f0]
call fcn.14001f258
lea rcx, [0x140038018]
call fcn.14001f3a0
lea rcx, [0x140038080]
call fcn.14000add0
mov byte [rsp + 0x40], 0xff
mov byte [rsp + 0x41], 0x25
mov byte [rsp + 0x42], 0
mov byte [rsp + 0x43], 0
mov byte [rsp + 0x44], 0
mov byte [rsp + 0x45], 0
mov byte [rsp + 0x46], 0
mov byte [rsp + 0x47], 0
mov byte [rsp + 0x48], 0
mov byte [rsp + 0x49], 0
mov byte [rsp + 0x4a], 0
mov byte [rsp + 0x4b], 0
mov byte [rsp + 0x4c], 0
mov byte [rsp + 0x4d], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x46], rax
lea rcx, [0x140037c58]
call fcn.14000ce00
mov r8d, 0xe
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000bde0
lea rcx, [0x140037c58]
call fcn.14000ce00
mov r8d, 0xe
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14000bf60
mov rax, qword [0x140038008]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rcx, [0x140037c58]
call fcn.14000ce00
mov r8d, 0xe
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000bf60
lea rcx, [0x140038080]
call fcn.14000ae00
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001ef90
add rsp, 0x78
ret