Function at 0x140039f10
Capabilities:
Read file on windows
Terminate process

Disassembly:
push rbp
push rdi
push r13
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140068008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
mov r13d, 0xffffffff
test rcx, rcx
jne 0x140039f44
xor eax, eax
jmp 0x14003a2e3
lea rdx, [0x140055114]
mov qword [rsp + 0xd0], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
jne 0x140039f8c
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str._s:_could_not_open_capture_file_n
mov rcx, rax
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
xor eax, eax
jmp 0x14003a2db
xorps xmm0, xmm0
lea rdx, [rbp - 0x29]
mov rcx, rdi
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x140039fb0
movsxd r13, dword [rbp - 0x15]
mov edx, 1
lea rcx, [rbp + 7]
mov r9, rsi
lea r8d, [rdx + 0x17]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 0x18
jae 0x14003a02f
mov ecx, 2
test rax, rax
jne 0x14003a007
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str._s:_could_not_read_PCAP_header_n
mov rcx, rax
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
jmp 0x14003a2db
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str._s:_file_too_short_n
mov rcx, rax
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
jmp 0x14003a2db
movzx eax, byte [rbp + 8]
movzx ecx, byte [rbp + 7]
shl ecx, 8
or ecx, eax
mov qword [rsp + 0xc8], rbx
movzx eax, byte [rbp + 9]
mov ebx, 0xa3a3
shl ecx, 8
or ecx, eax
mov qword [rsp + 0xd8], r12
movzx eax, byte [rbp + 0xa]
shl ecx, 8
or ecx, eax
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
cmp ecx, 0xa1b2c3d4
je 0x14003a0cf
cmp ecx, 0xd4c3b2a1
je 0x14003a0ae
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str._s:_unknown_byte_order_in_cap_file_n
mov rcx, rax
call fcn.140001010
mov r12d, 3
mov r14d, ebx
mov r15d, ebx
jmp 0x14003a101
movzx eax, byte [rbp + 0xb]
mov r12d, 2
movzx r15d, byte [rbp + 0xc]
movzx r14d, byte [rbp + 0xe]
shl r15d, 8
add r15d, eax
movzx eax, byte [rbp + 0xd]
jmp 0x14003a0ee
movzx eax, byte [rbp + 0xc]
mov r12d, 1
movzx r15d, byte [rbp + 0xb]
movzx r14d, byte [rbp + 0xd]
shl r15d, 8
add r15d, eax
movzx eax, byte [rbp + 0xe]
shl r14d, 8
add r14d, eax
cmp r15d, 2
jne 0x14003a101
cmp r14d, 4
je 0x14003a126
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r15d
mov dword [rsp + 0x20], r14d
mov rcx, rax
lea rdx, str._s:_unknown_version__d._d_n
mov r8, rdi
call fcn.140001010
mov r15, qword [rsp + 0x90]
mov eax, r12d
sub eax, 1
je 0x14003a15b
cmp eax, 1
jne 0x14003a1bf
movzx eax, byte [rbp + 0x1d]
movzx ebx, byte [rbp + 0x1e]
shl ebx, 8
or ebx, eax
movzx eax, byte [rbp + 0x1c]
shl ebx, 8
or ebx, eax
movzx eax, byte [rbp + 0x1b]
jmp 0x14003a175
movzx eax, byte [rbp + 0x1c]
movzx ebx, byte [rbp + 0x1b]
shl ebx, 8
or ebx, eax
movzx eax, byte [rbp + 0x1d]
shl ebx, 8
or ebx, eax
movzx eax, byte [rbp + 0x1e]
shl ebx, 8
or ebx, eax
test ebx, ebx
jne 0x14003a1a9
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x14003a1ef
lea ecx, [rax + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_ftell_failed__file_system_error__seen_with_VMware_HGFS_bug__n
jmp 0x14003a230
mov eax, ebx
sub eax, 1
je 0x14003a183
sub eax, 0x68
je 0x14003a183
sub eax, 0xe
je 0x14003a183
cmp eax, 8
je 0x14003a183
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebx
lea rdx, str._s:_unknown_cap_file_linktype___d__expected_Ethernet_or_wifi__n
mov rcx, rax
mov r8, rdi
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
jmp 0x14003a2c3
mov edx, 1
lea rcx, [rbp + 0x1f]
mov r9, rsi
lea r8d, [rdx + 7]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 8
jne 0x14003a23b
xor r8d, r8d
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x14003a251
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_fseek_failed__file_system_error___n
mov r8, rdi
mov rcx, rax
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
jmp 0x14003a2c3
mov ecx, 0x150
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x14003a26e
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor edx, edx
mov r8d, 0x150
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
lea rcx, [r14 + 0x1c]
mov dword [r14 + 0x11c], r12d
mov r9, rdi
lea r8, [0x1400550f4]
mov edx, pe_nt_image_headers64
call fcn.140039520
mov rax, r14
mov qword [r14], rsi
mov dword [r14 + 0x11c], r12d
mov dword [r14 + 0x120], ebx
mov qword [r14 + 0x130], r13
mov qword [r14 + 0x138], 0x18
mov r12, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xc8]
mov r14, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14004da00
add rsp, 0xa0
pop r13
pop rdi
pop rbp
ret