joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401305e0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1403054c0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140130603
lea rax, [0x1403054c8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14013064b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140130648
lea rax, [0x140305500]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14013067b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140130678
xor ecx, ecx
mov byte [0x140305519], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140305522], rdx
lea r8, [0x1403054c0]
lea rbx, [0x14030551a]
mov qword [0x140305532], rdx
mov qword [0x140305542], rdx
mov qword [0x140305552], rdx
xor edx, edx
mov qword [0x14030551a], rax
mov qword [0x14030552a], rax
mov qword [0x14030553a], rax
mov qword [0x14030554a], rax
mov byte [0x14030555a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140130856
lea rcx, [0x140305500]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1401307a1
lea rsi, [0x140305400]
lea r8, [0x14030555a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14013074d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140130740
lea rcx, [0x140305500]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140130843
lea rcx, [0x1401304f0]
mov qword [0x140305400], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140305400]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140305500]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14030555a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140130876
nop dword [rax]
cmp byte [rax], 0x41
jne 0x1401307f3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x1401307e0
mov rax, rdx
mov qword [0x140305400], rax
lea rsi, [0x140305400]
jmp 0x140130819
cmp rdx, rsi
je 0x14013077f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140130810
cmp rdx, rsi
je 0x14013077f
mov qword [rdx + 8], rsi
lea rcx, [0x1401304f0]
call sub.msvcrt.dll__onexit
jmp 0x14013077f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140130460
xor eax, eax
jmp 0x140130798
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140130460
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140130460
xor eax, eax
jmp 0x1401307ff
Function at 0x180036280
Capabilities:
Write file on windows

Disassembly:
jmp 0x180071f70
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x1800ea138]
xor rax, rbp
mov qword [rbp + 0x180], rax
lea rcx, [0x1800fd3aa]
call fcn.180037c84
lea rcx, [rbp + 8]
call fcn.180037c66
nop
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x1b0]
call fcn.180036424
lea rdx, str._VOICE_V2__command:_PASSTHROUGH__data:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180036302
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.18003792d
lea rdx, [0x180036127]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
mov rax, qword [rbp + 0x1b0]
movzx eax, byte [rax + 0x18]
test eax, eax
je 0x18007201f
lea rcx, [rbp + 8]
call fcn.180036523
jmp 0x18007210f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, str..pipeVoiceV2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
je 0x1800720a4
lea rcx, [rbp + 8]
call fcn.180037833
mov qword [rbp + 0x178], rax
lea rcx, [rbp + 8]
call fcn.180036299
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x64]
mov rcx, qword [rbp + 0x178]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180072106
lea rcx, str._VoiceV2__Failed_to_open_named_pipe_in_child_process_n
call fcn.180036de3
cmp dword [0x1800ebbc8], 0x32
jle 0x1800720f8
lea rdx, str.__h1custom___03pipeerror
lea rcx, [rbp + 0x88]
call fcn.180036d5c
nop
lea rcx, [rbp + 0x88]
call fcn.180036299
mov rcx, rax
call qword [0x1800ebdf8]
mov dword [0x1800ebbc8], 0
lea rcx, [rbp + 0x88]
call fcn.180036523
mov eax, dword [0x1800ebbc8]
inc eax
mov dword [0x1800ebbc8], eax
lea rcx, [rbp + 8]
call fcn.180036523
lea rcx, [rbp - 0x40]
lea rdx, [0x1800b0a80]
call fcn.1800377a7
mov rcx, qword [rbp + 0x180]
xor rcx, rbp
call fcn.180036e4c
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret
Function at 0x1800362bc
Capabilities:
Write file on windows

Disassembly:
jmp 0x180069dd0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1800fd404]
call fcn.180037c84
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x180069e27
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.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 0x180069f33
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x180069ecc
cmp qword [rbp + 0x28], 0
jle 0x180069ecc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x180069e6c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.180037a9a
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x180069f22
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x180069f22
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1800362e9
Capabilities:
Get common file path

Disassembly:
jmp 0x18004b620
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x288]
mov rax, qword [0x1800ea138]
xor rax, rbp
mov qword [rbp + 0x228], rax
lea rcx, [0x1800fd119]
call fcn.180037c84
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x1800ac518]
mov edx, 0x104
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_strcat_s]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp + 0x138], rax
cmp qword [rbp + 0x138], 0
je 0x18004b719
lea rdx, [0x1800ac528]
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x158], 0
je 0x18004b719
mov rax, qword [rbp + 0x270]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x268]
mov r8, qword [rbp + 0x260]
mov edx, dword [rbp + 0x258]
mov rcx, qword [rbp + 0x250]
call qword [rbp + 0x158]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1800ac4f0]
call fcn.1800377a7
mov rax, rdi
mov rcx, qword [rbp + 0x228]
xor rcx, rbp
call fcn.180036e4c
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret

Function at 0x18003659b
Capabilities:
Create thread

Disassembly:
jmp 0x18005e070
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
lea rcx, [0x1800fd383]
call fcn.180037c84
mov rcx, qword [rbp + 0x148]
call fcn.18003642e
mov rdx, rax
lea rcx, [rbp + 0x108]
call fcn.180036eab
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.1800365fa
nop
lea rcx, [rbp + 0x108]
call fcn.180036bfe
lea rax, [0x1800372f2]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x140]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.180037379
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x140]
mov qword [rcx], rax
mov rax, qword [rbp + 0x140]
cmp qword [rax], 0
je 0x18005e159
lea rcx, [rbp + 8]
call fcn.180036ca3
jmp 0x18005e172
mov rax, qword [rbp + 0x140]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.180036636
nop
lea rcx, [rbp + 8]
call fcn.180036bfe
lea rcx, [rbp - 0x30]
lea rdx, [0x1800b4270]
call fcn.1800377a7
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x180036965
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x18005e400
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
lea rcx, [0x1800fd3a7]
call fcn.180037c84
lea rcx, [rbp + 0x100]
call fcn.1800369c4
lea r9, [rbp + 4]
mov r8d, 0x40
mov edx, 1
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 1
lea rdx, [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call fcn.180036e5b
lea r9, [rbp + 4]
mov r8d, dword [rbp + 4]
mov edx, 1
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [rbp - 0x20]
lea rdx, [0x1800b45f0]
call fcn.1800377a7
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x180036a0a
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
jmp 0x18006f920
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1800ea138]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x1800fd3aa]
call fcn.180037c84
mov dword [rbp + 0x44], 0x4e20
mov dword [rbp + 0x64], 0x4e20
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x64]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 6
mov edx, 3
lea rcx, str..pipeAssetValidator
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x18006f9c4
lea rcx, str.Failed_to_create_named_pipe_for_AssetValidator_n
call fcn.180036de3
jmp 0x18006fb6c
lea rcx, str.Waiting_for_the_child_process_to_connect_to_the_named_pipe_AssetValidator..._n
call fcn.180036de3
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006fa53
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x64], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x64]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 6
mov edx, 3
lea rcx, str..pipeAssetValidator
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbp + 8], rax
mov eax, dword [rbp + 0x44]
mov ecx, eax
call fcn.180036cd0
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x1e8]
mov qword [rbp + 0x88], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006fb35
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x88]
mov byte [rcx + rax], 0
mov rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0xa8]
call fcn.180036d5c
nop
lea rcx, str._AssetValidator__Finished_with_file_hashes_n
call fcn.180036de3
lea rdx, [rbp + 0xa8]
lea rcx, [0x1800ebc60]
call fcn.180037766
lea rdx, str.__h1custom___01
lea rcx, [rbp + 0xe8]
call fcn.180036d5c
nop
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0xe8]
call fcn.180036d1b
lea rcx, [rbp + 0xe8]
call fcn.180036299
mov rcx, rax
call qword [0x1800ebdf8]
nop
lea rcx, [rbp + 0xe8]
call fcn.180036523
nop
lea rcx, [rbp + 0xa8]
call fcn.180036523
jmp 0x18006fb41
lea rcx, str.ReadFile_failed_for_AssetValidator_n
call fcn.180036de3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x208], rax
mov rcx, qword [rbp + 0x208]
call fcn.180036e2e
mov byte [0x1800ebbb8], 0
lea rcx, [rbp - 0x40]
lea rdx, [0x1800b01a0]
call fcn.1800377a7
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.180036e4c
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret
Function at 0x180036f37
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x18005d2b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
lea rcx, [0x1800fd3a7]
call fcn.180037c84
lea rcx, [rbp + 0x100]
call fcn.180037d51
lea r9, [rbp + 4]
mov r8d, 0x40
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rbp + 0x108]
mov edx, 0x90
mov rcx, qword [rbp + 0x100]
call fcn.18003758b
lea r9, [rbp + 4]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [rbp - 0x20]
lea rdx, [0x1800b0450]
call fcn.1800377a7
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1800373ec
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x180066140
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, WSACleanup
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2c8]
mov rax, qword [0x1800ea138]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x1800fd347]
call fcn.180037c84
mov rax, qword [rbp + 0x2a0]
mov byte [rax], 0
lea rdx, [rbp + 0x10]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1800661af
mov rax, qword [rbp + 0x2a0]
mov byte [rax], 1
mov rax, qword [rbp + 0x2a0]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1800b2900]
call fcn.1800377a7
mov rax, rdi
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.180036e4c
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret
Function at 0x180037923
Capabilities:
Read file on windows

Disassembly:
jmp 0x1800741f0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
lea rcx, [0x1800fd404]
call fcn.180037c84
cmp qword [rbp + 0x1b0], 0
jg 0x180074243
xor eax, eax
jmp 0x180074409
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x180074271
mov r8, qword [rbp + 0x1b0]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x180074409
mov rax, qword [rbp + 0x1b0]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x1b0]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jbe 0x18007430d
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 8]
call fcn.180036168
mov rax, qword [rax]
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rbp + 0x68]
mov rdx, rax
mov rcx, qword [rbp + 0x1a8]
call fcn.180037a9a
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x1a8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov edx, dword [rbp + 0x68]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x80], 0
je 0x1800743fb
mov rcx, qword [rbp + 0x1a0]
call fcn.180037cc5
mov qword [rbp + 0x88], 0xfff
cmp qword [rbp + 8], 0xfff
jbe 0x1800743c2
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ucrtbased.dll_fread]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x1a8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
cmp qword [rbp + 0xa8], 0xfff
je 0x1800743bd
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x28]
sub rcx, rax
mov rax, rcx
jmp 0x180074409
jmp 0x180074339
cmp qword [rbp + 8], 0
jbe 0x1800743fb
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 8]
mov edx, 1
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ucrtbased.dll_fread]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x28]
sub rcx, rax
mov rax, rcx
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1800b1950]
call fcn.1800377a7
mov rax, rdi
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x180037c2a
Capabilities:
Write file on windows

Disassembly:
jmp 0x180068e90
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x1800ea138]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1800fd404]
call fcn.180037c84
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x180068ef6
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180068efd
mov al, 1
jmp 0x180069057
call fcn.1800367d5
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.1800367d5
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.1800377e3
movzx eax, al
test eax, eax
je 0x180068f58
xor al, al
jmp 0x180069057
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.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 [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x180068fbd
cmp dword [rbp + 0x194], 1
je 0x180068fc8
cmp dword [rbp + 0x194], 3
je 0x180069046
jmp 0x180069055
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x180069018
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x180069018
xor al, al
jmp 0x180069057
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180069033
mov dword [rbp + 0x194], 1
jmp 0x18006903d
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x180069057
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x180069057
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1800afad0]
call fcn.1800377a7
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.180036e4c
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret