joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034d40
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x1401114a8]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp qword [rcx + 0x18], 8
movzx edi, r8b
mov rbx, rcx
jb 0x140034d70
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140034f72
test dil, dil
je 0x140034e8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140034e8c
mov dl, 1
mov rcx, rbx
call fcn.140034aa0
test al, al
jne 0x140034f72
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x140034db9
mov rax, qword [rbx]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rax, qword [rbx + 0x10]
lea rcx, [rsp + 0x148]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14002c1f0
mov r9d, 0x5d
mov dword [rsp + 0x20], 2
lea r8, str..._.._.._util_file_filesystem_win.cc
mov rbx, rax
lea rdx, str.bool___cdecl_crashpad::LoggingCreateDirectory_const_class_base::FilePath__enum_crashpad::FilePermissions_bool_
lea rcx, [rsp + 0x40]
call fcn.14002d900
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140034e1a
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000a0e0
lea rdx, str._not_a_directory
mov rcx, rax
call fcn.140009610
lea rcx, [rsp + 0x40]
call fcn.14002dc50
mov rdx, qword [rsp + 0x160]
cmp rdx, 0x10
jb 0x140034f6e
mov rcx, qword [rsp + 0x148]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034f69
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140034f69
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x140034e99
mov rax, qword [rbx]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rax, qword [rbx + 0x10]
lea rcx, [rsp + 0x148]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14002c1f0
mov rbx, rax
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_file_filesystem_win.cc
mov r9d, 0x62
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::LoggingCreateDirectory_const_class_base::FilePath__enum_crashpad::FilePermissions_bool_
lea rcx, [rsp + 0x40]
call fcn.14002db60
mov rcx, rax
lea rdx, str.CreateDirectory
call fcn.140009610
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140034f12
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000a0e0
lea rcx, [rsp + 0x40]
call fcn.14002df10
mov rdx, qword [rsp + 0x160]
cmp rdx, 0x10
jb 0x140034f6e
mov rcx, qword [rsp + 0x148]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034f69
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140034f69
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d4a4c
xor al, al
jmp 0x140034f74
mov al, 1
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400d4b20
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
Function at 0x140035220
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1401114a8]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140035248
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14003533c
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x140035263
mov rax, qword [rbx]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rax, qword [rbx + 0x10]
lea rcx, [rsp + 0x148]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14002c1f0
mov rbx, rax
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_file_filesystem_win.cc
mov r9d, 0x30
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::LoggingRemoveDirectoryImpl_const_class_base::FilePath__
lea rcx, [rsp + 0x40]
call fcn.14002db60
mov rcx, rax
lea rdx, str.RemoveDirectory
call fcn.140009610
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x1400352dc
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000a0e0
lea rcx, [rsp + 0x40]
call fcn.14002df10
mov rdx, qword [rsp + 0x160]
cmp rdx, 0x10
jb 0x140035338
mov rcx, qword [rsp + 0x148]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035333
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035333
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d4a4c
xor al, al
jmp 0x14003533e
mov al, 1
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400d4b20
add rsp, 0x170
pop rbx
ret
Function at 0x140035360
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1401114a8]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140035388
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400353ac
and eax, 0x410
cmp eax, 0x410
jne 0x1400353ac
mov rcx, rbx
call fcn.140035220
jmp 0x1400354af
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400353b9
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400354ad
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x1400353d4
mov rax, qword [rbx]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rax, qword [rbx + 0x10]
lea rcx, [rsp + 0x148]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14002c1f0
mov rbx, rax
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_file_filesystem_win.cc
mov r9d, 0x95
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::LoggingRemoveFile_const_class_base::FilePath__
lea rcx, [rsp + 0x40]
call fcn.14002db60
mov rcx, rax
lea rdx, str.DeleteFile
call fcn.140009610
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x14003544d
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000a0e0
lea rcx, [rsp + 0x40]
call fcn.14002df10
mov rdx, qword [rsp + 0x160]
cmp rdx, 0x10
jb 0x1400354a9
mov rcx, qword [rsp + 0x148]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400354a4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400354a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d4a4c
xor al, al
jmp 0x1400354af
mov al, 1
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400d4b20
add rsp, 0x170
pop rbx
ret

Function at 0x140035db0
Capabilities:
Create process memory minidump

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, rdx
call fcn.140033b40
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140035df7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.failed_to_open_file___error_code__d
lea rcx, str.fulldmp
call fcn.1400700c0
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r9d, 0x69926
mov r8, rbx
mov edx, eax
mov rcx, rdi
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
jne 0x140035e51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Fail_to_write_fulldmp__s._Errcode:__d
lea rcx, str.fulldmp
call fcn.1400700c0
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov al, 1
add rsp, 0x40
pop rdi
ret
Function at 0x140036550
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401114a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140036623
cmp byte [rcx + 0x71], 0
je 0x140036623
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003661f
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 0x1400365e4
sub eax, 1
je 0x1400365e8
cmp eax, 2
jne 0x14003661f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d4b20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140036616
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 0x14003661f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400365cc
xor al, al
jmp 0x1400365cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d4b20
add rsp, 0x60
pop rbx
ret
Function at 0x140036780
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401114a8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400367ad
xor eax, eax
jmp 0x140036902
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400367d8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400367d8
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], dil
mov eax, edi
jmp 0x140036902
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400368f5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14003681b
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 0x140036846
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 0x1400368fa
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x1400368b5
sub eax, 1
je 0x1400368b5
cmp eax, 2
jne 0x1400368f5
movsx ecx, byte [rsp + 0x40]
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 0x1400368fa
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400368e3
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 0x1400368f5
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x1400368fa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400d4b20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140037030
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140037061
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14003707f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400370a0
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400370a2
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400370d4
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x140037171
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140037112
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 rdi, 0xfff
jbe 0x140037151
nop dword [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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140037192
cmp rdi, rax
ja 0x140037120
test rbx, rbx
je 0x140037171
mov r9, qword [rsi + 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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x140037174
Function at 0x1400371a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400371d7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400371f8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400371fa
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140037253
test ecx, ecx
jle 0x140037233
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140037253
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140037253
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
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140037320
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x140
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14003738d
call fcn.14003f9c0
test eax, eax
jns 0x14003738d
cmp byte [rbx + 8], 0
je 0x14003734a
cmp eax, 0xc000010a
je 0x14003738d
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_win_scoped_process_suspend.cc
mov r9d, 0x2a
mov dword [rsp + 0x20], 2
lea rdx, str.__cdecl_crashpad::ScopedProcessSuspend::ScopedProcessSuspend_void_
lea rcx, [rsp + 0x30]
call fcn.14003fb60
mov rcx, rax
lea rdx, str.NtResumeProcess
call fcn.140009610
lea rcx, [rsp + 0x30]
call fcn.14003fb90
lea rdx, str.Resume_process
lea rcx, str.server
add rsp, 0x140
pop rbx
jmp fcn.1400700c0
Function at 0x14003c700
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1401114a8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x1401476c0]
mov r8d, 0x80
mov rdx, qword [rax + rcx*8]
mov eax, dword [r8 + rdx]
cmp dword [0x140146fc0], eax
jg 0x14003c928
cmp byte [0x140146f68], 0
je 0x14003c76a
movzx eax, byte [0x14011109c]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400d4b20
add rsp, 0x168
ret
lea rcx, [0x140146f70]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14003c920
cmp byte [0x140146f68], al
mov qword [rsp + 0x170], rbx
je 0x14003c79a
movzx ebx, byte [0x14011109c]
jmp 0x14003c89e
lea rcx, str.ntdll.dll
mov qword [rsp + 0x178], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14003c8cd
mov qword [rsp + 0x160], rdi
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
xor dil, dil
xor sil, sil
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003c7fb
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x24]
call rax
movzx eax, word [rsp + 0x20]
mov dil, 1
mov dword [rsp + 0x20], eax
lea rdx, str.RtlGetVersion
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, 0xffffffffffffffff
mov rbx, rax
mov rdx, rcx
test rax, rax
je 0x14003c849
xor edx, edx
mov dword [rsp + 0x30], 0x114
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
call rbx
mov ecx, dword [rsp + 0x34]
mov sil, 1
mov edx, dword [rsp + 0x38]
test dil, dil
mov rdi, qword [rsp + 0x160]
je 0x14003c86d
cmp dword [rsp + 0x24], 6
jb 0x14003c913
jne 0x14003c888
cmp dword [rsp + 0x28], 3
jmp 0x14003c90d
test sil, sil
je 0x14003c8cd
cmp rcx, 6
jl 0x14003c913
jne 0x14003c888
cmp rdx, 3
jl 0x14003c913
movzx ebx, byte [0x14011109c]
mov rsi, qword [rsp + 0x178]
mov byte [0x140146f68], 1
lea rcx, [0x140146f70]
call fcn.1400d49a6
movzx eax, bl
mov rbx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400d4b20
add rsp, 0x168
ret
cmp byte [0x140146f68], 0
jne 0x14003c888
xor edx, edx
mov dword [rsp + 0x30], 0x11c
mov r8d, 0x118
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14003c888
cmp dword [rsp + 0x34], 6
jb 0x14003c913
jne 0x14003c888
cmp dword [rsp + 0x38], 3
jae 0x14003c888
xor bl, bl
mov byte [0x14011109c], bl
jmp 0x14003c88f
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
lea rcx, [0x140146fc0]
call fcn.1400d4f04
cmp dword [0x140146fc0], 0xffffffff
jne 0x14003c742
mov edx, 2
lea rcx, [0x140146f70]
call sub.MSVCP140.dll__Mtx_init_in_situ
lea rcx, [0x1400db540]
call fcn.1400d5338
lea rcx, [0x140146fc0]
call fcn.1400d4ea4
jmp 0x14003c742
Function at 0x14003e110
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x14003f340
push rbx
sub rsp, 0x130
mov ebx, 0xffffffff
mov qword [rsp + 0x20], 0
cmp r8, rbx
lea r9, [rsp + 0x150]
cmova r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003f380
mov rax, 0xffffffffffffffff
add rsp, 0x130
pop rbx
ret
mov dword [rsp + 0x158], ebx
cmp dword [rsp + 0x150], ebx
jne 0x14003f3de
lea r8, str.bytes_written___static_cast_DWORD___1_
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x150]
call fcn.14003ab90
test rax, rax
je 0x14003f3de
mov r9d, 0x65
mov qword [rsp + 0x20], rax
lea r8, str..._.._.._util_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::internal::NativeWriteFile_void__const_void__unsigned___int64_
lea rcx, [rsp + 0x30]
call fcn.14002d9e0
lea rcx, [rsp + 0x30]
call fcn.14002dc50
mov eax, dword [rsp + 0x150]
add rsp, 0x130
pop rbx
ret

Function at 0x14003e170
Capabilities:
Check os version
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
xor edi, edi
movzx esi, dl
mov rbx, rcx
test dl, dl
je 0x14003e1bb
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x14003e1bb
xor ecx, ecx
mov qword [rsp + 0x40], 0x18
mov dword [rsp + 0x54], edi
call fcn.14003e210
mov qword [rsp + 0x48], rax
lea rdi, [rsp + 0x40]
mov dword [rsp + 0x50], 1
cmp qword [rbx + 0x18], 8
jb 0x14003e1c5
mov rbx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov r9d, 2
mov edx, esi
mov dword [rsp + 0x30], 0
shl edx, 0x13
mov rcx, rbx
or edx, 3
mov dword [rsp + 0x28], 0x200
lea r8d, [r9 + 4]
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14003e950
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
xor edi, edi
lea r8, [0x14003ea10]
mov rbx, rcx
mov qword [rsp + 0x28], rdi
mov r9, rcx
mov dword [rsp + 0x20], edi
xor edx, edx
mov dword [rsp + 0x150], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14003e9ec
lea edi, [rax + 2]
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r9d, [rdi + 0x19]
lea r8, str..._.._.._util_thread_thread_win.cc
mov dword [rsp + 0x20], 4
lea rdx, str.void___cdecl_crashpad::Thread::Start_void_
lea rcx, [rsp + 0x30]
call fcn.14002db60
mov rcx, rax
lea rdx, str.Check_failed:_platform_thread_
call fcn.140009610
mov rcx, rax
lea rdx, [0x1400e1924]
call fcn.140009610
mov rcx, rax
lea rdx, [0x1400e4510]
call fcn.140009610
test dil, 2
je 0x14003e9fc
lea rcx, [rsp + 0x30]
call fcn.14002df10
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret

Function at 0x14003f1d0
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x140
xor r9d, r9d
lea r8, [rsp + 0x158]
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14003f22b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_file_file_io_win.cc
mov r9d, 0xf1
mov dword [rsp + 0x20], 2
lea rdx, str.__int64___cdecl_crashpad::LoggingSeekFile_void____int64_int_
lea rcx, [rsp + 0x30]
call fcn.14002db60
lea rdx, [0x1400e49d8]
jmp 0x14003f279
cmp qword [rsp + 0x158], 0
jne 0x14003f28b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003f296
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_file_file_io_win.cc
mov r9d, 0xfb
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::LoggingTruncateFile_void__
lea rcx, [rsp + 0x30]
call fcn.14002db60
lea rdx, [0x1400e49f0]
mov rcx, rax
call fcn.140009610
lea rcx, [rsp + 0x30]
call fcn.14002df10
xor al, al
add rsp, 0x140
pop rbx
ret
mov al, 1
add rsp, 0x140
pop rbx
ret

Function at 0x14003f340
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x14003f340
push rbx
sub rsp, 0x130
mov ebx, 0xffffffff
mov qword [rsp + 0x20], 0
cmp r8, rbx
lea r9, [rsp + 0x150]
cmova r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003f380
mov rax, 0xffffffffffffffff
add rsp, 0x130
pop rbx
ret
mov dword [rsp + 0x158], ebx
cmp dword [rsp + 0x150], ebx
jne 0x14003f3de
lea r8, str.bytes_written___static_cast_DWORD___1_
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x150]
call fcn.14003ab90
test rax, rax
je 0x14003f3de
mov r9d, 0x65
mov qword [rsp + 0x20], rax
lea r8, str..._.._.._util_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::internal::NativeWriteFile_void__const_void__unsigned___int64_
lea rcx, [rsp + 0x30]
call fcn.14002d9e0
lea rcx, [rsp + 0x30]
call fcn.14002dc50
mov eax, dword [rsp + 0x150]
add rsp, 0x130
pop rbx
ret