joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov rbx, rcx
jb 0x14003412a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
mov edx, eax
shr edx, 4
and edx, 1
cmp eax, 0xffffffff
cmove edx, ecx
shl edx, 0x19
add edx, 0x200000
cmp qword [rbx + 0x18], 8
jb 0x140034153
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov dword [rsp + 0x28], edx
mov rcx, rbx
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140034192
xor al, al
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1400341c3
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14003e3f0
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
mov dil, 1
jmp 0x1400341cc
xor dil, dil
cmp rbx, 0xffffffffffffffff
je 0x1400341d4
mov rcx, rbx
call fcn.14003d170
mov rbx, qword [rsp + 0x80]
movzx eax, dil
add rsp, 0x60
pop rdi
ret

Function at 0x1400341f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140034212
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034258
test eax, 0x410
jne 0x140034258
cmp qword [rbx + 0x18], 8
jb 0x14003422e
mov rbx, qword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64]
test eax, eax
jne 0x140034258
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400cebd0
add rsp, 0x60
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400cebd0
add rsp, 0x60
pop rbx
ret

Function at 0x140034270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
movzx ebx, dl
jb 0x140034283
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400342a3
test bl, bl
jne 0x140034298
bt eax, 0xa
jb 0x1400342a3
shr eax, 4
and al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400342b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400342be
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400342d7
test eax, 0x410
jne 0x1400342d7
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x1400342e0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x18], 8
movzx edi, r8b
mov rbx, rcx
jb 0x1400342fb
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140034345
test dil, dil
je 0x140034338
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140034338
cmp qword [rbx + 0x18], 8
jb 0x140034323
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034338
shr eax, 4
and al, 1
jne 0x140034345
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov al, 1
add rsp, 0x30
pop rdi
ret

Function at 0x140034360
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x280], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140034388
mov rcx, qword [rcx]
xor eax, eax
lea r8, [rsp + 0x30]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea edx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
cmp rax, 0xffffffffffffffff
je 0x1400343d2
test dword [rsp + 0x30], 0x400
je 0x1400343ca
cmp dword [rsp + 0x54], 0xa000000c
jne 0x1400343ca
mov rcx, rax
call fcn.14003d220
xor al, al
jmp 0x1400343ea
mov rcx, rax
call fcn.14003d220
cmp qword [rbx + 0x18], 8
jb 0x1400343dc
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400cebd0
add rsp, 0x290
pop rbx
ret

Function at 0x140034410
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140034423
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034458
and eax, 0x410
cmp eax, 0x410
jne 0x140034458
cmp qword [rbx + 0x18], 8
jb 0x140034444
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret
cmp qword [rbx + 0x18], 8
jb 0x140034462
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret
Function at 0x140034f90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140035063
cmp byte [rcx + 0x71], 0
je 0x140035063
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003505f
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 0x140035024
sub eax, 1
je 0x140035028
cmp eax, 2
jne 0x14003505f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400cebd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140035056
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 0x14003505f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003500c
xor al, al
jmp 0x14003500c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400cebd0
add rsp, 0x60
pop rbx
ret
Function at 0x1400351c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400351ed
xor eax, eax
jmp 0x140035342
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140035218
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140035218
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 0x140035342
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140035335
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14003525b
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 0x140035286
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 0x14003533a
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 0x1400352f5
sub eax, 1
je 0x1400352f5
cmp eax, 2
jne 0x140035335
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 0x14003533a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140035323
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 0x140035335
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14003533a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400cebd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140035a70
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 0x140035aa1
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 case.default.0x140035ab8
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 0x140035ae0
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140035ae2
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140035b14
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 0x140035bb1
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140035b52
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 0x140035b91
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 0x140035bd2
cmp rdi, rax
ja 0x140035b60
test rbx, rbx
je 0x140035bb1
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 0x140035bb4
Function at 0x140035be0
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 case.default.0x140035c10
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 0x140035c38
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140035c3a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140035c93
test ecx, ecx
jle 0x140035c73
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 0x140035c93
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140035c93
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 0x140035f50
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
test rcx, rcx
je 0x140035f61
call fcn.14003e830
lea rdx, str.Resume_process.
lea rcx, str.server
add rsp, 0x28
jmp fcn.14002f1b0
Function at 0x14003b630
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x140134780]
mov r8d, 0x80
mov rdx, qword [rax + rcx*8]
mov eax, dword [r8 + rdx]
cmp dword [0x140134070], eax
jg 0x14003b858
cmp byte [0x140134010], 0
je 0x14003b69a
movzx eax, byte [0x1400fe08d]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400cebd0
add rsp, 0x168
ret
lea rcx, [0x140134020]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14003b850
cmp byte [0x140134010], al
mov qword [rsp + 0x170], rbx
je 0x14003b6ca
movzx ebx, byte [0x1400fe08d]
jmp 0x14003b7ce
lea rcx, str.ntdll.dll
mov qword [rsp + 0x178], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14003b7fd
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 0x14003b72b
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 0x14003b779
xor edx, edx
mov dword [rsp + 0x30], 0x114
mov r8d, 0x110
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 0x14003b79d
cmp dword [rsp + 0x24], 6
jb 0x14003b843
jne 0x14003b7b8
cmp dword [rsp + 0x28], 3
jmp 0x14003b83d
test sil, sil
je 0x14003b7fd
cmp rcx, 6
jl 0x14003b843
jne 0x14003b7b8
cmp rdx, 3
jl 0x14003b843
movzx ebx, byte [0x1400fe08d]
mov rsi, qword [rsp + 0x178]
mov byte [0x140134010], 1
lea rcx, [0x140134020]
call fcn.1400cea50
movzx eax, bl
mov rbx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400cebd0
add rsp, 0x168
ret
cmp byte [0x140134010], 0
jne 0x14003b7b8
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 0x14003b7b8
cmp dword [rsp + 0x34], 6
jb 0x14003b843
jne 0x14003b7b8
cmp dword [rsp + 0x38], 3
jae 0x14003b7b8
xor bl, bl
mov byte [0x1400fe08d], bl
jmp 0x14003b7bf
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
lea rcx, [0x140134070]
call fcn.1400cefb4
cmp dword [0x140134070], 0xffffffff
jne 0x14003b672
mov edx, 2
lea rcx, [0x140134020]
call sub.MSVCP140.dll__Mtx_init_in_situ
lea rcx, [0x1400d3410]
call fcn.1400cf37c
lea rcx, [0x140134070]
call fcn.1400cef54
jmp 0x14003b672
Function at 0x14003d570
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x14003df20
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 0x14003df60
mov rax, 0xffffffffffffffff
add rsp, 0x130
pop rbx
ret
mov dword [rsp + 0x158], ebx
cmp dword [rsp + 0x150], ebx
jne 0x14003dfbe
lea r8, str.bytes_written___static_cast_DWORD___1_
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x150]
call fcn.14003a070
test rax, rax
je 0x14003dfbe
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.14002aba0
lea rcx, [rsp + 0x30]
call fcn.14002ae10
mov eax, dword [rsp + 0x150]
add rsp, 0x130
pop rbx
ret

Function at 0x14003d5d0
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 0x14003d61b
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x14003d61b
xor ecx, ecx
mov qword [rsp + 0x40], 0x18
mov dword [rsp + 0x54], edi
call fcn.14003d670
mov qword [rsp + 0x48], rax
lea rdi, [rsp + 0x40]
mov dword [rsp + 0x50], 1
cmp qword [rbx + 0x18], 8
jb 0x14003d625
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 0x14003d8e0
Capabilities:
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
xor r14d, r14d
nop
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14003d90d
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x110000
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14003d977
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x14003d96e
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14003d956
mov rcx, qword [rdi]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x14003d900
lea rdi, str.WaitNamedPipe_failed:__d
jmp 0x14003d9dc
lea rdi, str.CreateFile_failed:__d
jmp 0x14003d9dc
xor r9d, r9d
mov dword [rsp + 0x78], 2
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x14003d9a0
lea rdi, str.SetNamedPipeHandleState_failed:__d
jmp 0x14003d9dc
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov r9, rsi
mov r8d, 0x224
mov dword [rsp + 0x20], 0xc
mov rdx, rbp
mov dword [rsp + 0x60], r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x14003d9f6
lea rdi, str.TransactNamedPipe_failed:__d.
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rdi
lea rcx, str.client
mov r8d, eax
call fcn.14002f1b0
jmp 0x14003da1a
mov r9d, dword [rsp + 0x60]
cmp r9d, 0xc
je 0x14003da25
mov r8d, 0xc
lea rdx, str.TransactNamedPipe:_expected:__lld__observed__lld.
lea rcx, str.client
call fcn.14002f1b0
xor dil, dil
cmp rbx, 0xffffffffffffffff
jne 0x14003da28
jmp 0x14003da30
mov dil, 1
mov rcx, rbx
call fcn.14003d170
mov rbx, qword [rsp + 0x68]
movzx eax, dil
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14003db70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
xor edi, edi
lea r8, [0x14003dc30]
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 0x14003dc0c
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.14002ad20
mov rcx, rax
lea rdx, str.Check_failed:_platform_thread_
call fcn.140008bc0
mov rcx, rax
lea rdx, [0x1400d87ac]
call fcn.140008bc0
mov rcx, rax
lea rdx, [0x1400da0d0]
call fcn.140008bc0
test dil, 2
je 0x14003dc1c
lea rcx, [rsp + 0x30]
call fcn.14002b0d0
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret
Function at 0x14003de90
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003deca
cmp qword [rsp + 0x38], 0
jne 0x14003deca
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14003deca
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003df20
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x14003df20
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 0x14003df60
mov rax, 0xffffffffffffffff
add rsp, 0x130
pop rbx
ret
mov dword [rsp + 0x158], ebx
cmp dword [rsp + 0x150], ebx
jne 0x14003dfbe
lea r8, str.bytes_written___static_cast_DWORD___1_
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x150]
call fcn.14003a070
test rax, rax
je 0x14003dfbe
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.14002aba0
lea rcx, [rsp + 0x30]
call fcn.14002ae10
mov eax, dword [rsp + 0x150]
add rsp, 0x130
pop rbx
ret

Function at 0x14003dfd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rdi, r8
lea r9, [rsp + 0x160]
mov ebp, 0xffffffff
mov rsi, rdx
cmp r8, rbp
mov rbx, rcx
cmova edi, ebp
xor r14d, r14d
mov r8d, edi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003e0bf
nop word [rax + rax]
mov dword [rsp + 0x168], ebp
cmp dword [rsp + 0x160], ebp
je 0x14003e035
mov rax, r14
jmp 0x14003e051
lea r8, str.bytes_read___static_cast_DWORD___1_
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x160]
call fcn.14003a070
test rax, rax
je 0x14003e083
mov r9d, 0x7e
mov qword [rsp + 0x20], rax
lea r8, str..._.._.._util_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::ReadFile_void__void__unsigned___int64_
lea rcx, [rsp + 0x30]
call fcn.14002aba0
lea rcx, [rsp + 0x30]
call fcn.14002ae10
cmp dword [rsp + 0x160], r14d
jne 0x14003e0e5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x14003e0e5
lea r9, [rsp + 0x160]
mov qword [rsp + 0x20], r14
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003e020
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
neg eax
sbb rax, rax
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x160]
jmp 0x14003e0cd