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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbx, rcx
test rcx, rcx
je 0x140032da0
lea rdx, [0x14006e5d0]
call sym.fopen
mov rsi, rax
test rax, rax
je 0x140033000
pxor xmm0, xmm0
lea rdi, [rsp + 0x40]
mov rcx, rbx
mov ebp, 0xffffffff
mov qword [rsp + 0x70], 0
mov rdx, rdi
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm0
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64]
test eax, eax
je 0x140032db8
mov r9, rsi
mov r8d, 0x18
mov edx, 1
mov rcx, rdi
call sym.fread
cmp rax, 0x17
jbe 0x140032fd0
mov eax, dword [rsp + 0x40]
mov edx, eax
bswap edx
cmp eax, 0xd4c3b2a1
je 0x140032dc8
cmp edx, 0xd4c3b2a1
je 0x140032e20
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
mov r12d, 0xa3a3
call rdi
mov r8, rbx
lea rdx, str._s:_unknown_byte_order_in_cap_file_n
mov rcx, rax
call sym.fprintf_1
mov ecx, 2
call rdi
mov dword [rsp + 0x20], 0xa3a3
mov r9d, 0xa3a3
mov r8, rbx
mov rcx, rax
lea rdx, str._s:_unknown_version__d._d_n
call sym.fprintf_1
mov ecx, 2
call rdi
mov r9d, r12d
mov r8, rbx
lea rdx, str._s:_unknown_cap_file_linktype___d__expected_Ethernet_or_wifi__n
mov rcx, rax
call sym.fprintf_1
mov rcx, rsi
call sym.fclose
nop dword [rax]
xor edi, edi
mov rax, rdi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rbp, qword [rsp + 0x58]
jmp 0x140032ced
movzx r12d, byte [rsp + 0x44]
movzx eax, byte [rsp + 0x45]
movzx edi, byte [rsp + 0x46]
shl r12d, 8
add r12d, eax
movzx eax, byte [rsp + 0x47]
shl edi, 8
add edi, eax
cmp edi, 4
jne 0x140032f68
cmp r12d, 2
jne 0x140032f68
mov r12d, dword [rsp + 0x54]
mov r13d, 1
bswap r12d
test r12d, r12d
jne 0x140032e64
mov r12d, 1
jmp 0x140032e87
movzx edi, byte [rsp + 0x45]
movzx eax, byte [rsp + 0x44]
movzx r12d, byte [rsp + 0x47]
shl edi, 8
add edi, eax
movzx eax, byte [rsp + 0x46]
shl r12d, 8
add r12d, eax
cmp edi, 2
jne 0x140032f38
cmp r12d, 4
jne 0x140032f38
mov r12d, dword [rsp + 0x54]
mov r13d, 2
test r12d, r12d
je 0x140032e0f
cmp r12d, 1
je 0x140032e87
lea eax, [r12 - 0x69]
cmp eax, 0x16
ja 0x14003306d
mov edx, 0x404001
bt rdx, rax
jae 0x14003306d
mov rcx, rsi
call sym.ftell
mov edi, eax
cmp eax, 0xffffffff
je 0x140033050
lea rcx, [rsp + 0x38]
mov r9, rsi
mov r8d, 8
mov edx, 1
call sym.fread
cmp rax, 8
jne 0x140032fb5
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call sym.fseek
test eax, eax
jne 0x140032f98
mov edx, 1
mov ecx, 0x150
call sym.calloc
mov rdi, rax
test rax, rax
je 0x140033079
mov dword [rax + 0x11c], r13d
lea rcx, [rax + 0x1c]
mov r9, rbx
lea r8, [0x14006e727]
mov edx, 0x100
call sym.snprintf
mov qword [rdi], rsi
mov dword [rdi + 0x11c], r13d
mov dword [rdi + 0x120], r12d
mov qword [rdi + 0x130], rbp
mov qword [rdi + 0x138], 0x18
jmp 0x140032da2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], r12d
mov r9d, edi
mov r8, rbx
mov rcx, rax
lea rdx, str._s:_unknown_version__d._d_n
call sym.fprintf_1
jmp 0x140032e54
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], edi
mov r9d, r12d
mov r8, rbx
mov rcx, rax
lea rdx, str._s:_unknown_version__d._d_n
call sym.fprintf_1
jmp 0x140032dfc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str._s:_fseek_failed__file_system_error___n
mov rcx, rax
call sym.fprintf_1
mov rcx, rbx
call sym.perror
mov rcx, rsi
call sym.fclose
jmp 0x140032da0
mov ecx, 2
test rax, rax
jne 0x140033030
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str._s:_could_not_read_PCAP_header_n
mov rcx, rax
call sym.fprintf_1
mov rcx, rbx
call sym.perror
jmp 0x140032fbd
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str._s:_could_not_open_capture_file_n
mov rcx, rax
call sym.fprintf_1
mov rcx, rbx
call sym.perror
jmp 0x140032da0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str._s:_file_too_short_n
mov rcx, rax
call sym.fprintf_1
jmp 0x140032fbd
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str._s:_ftell_failed__file_system_error__seen_with_VMware_HGFS_bug__n
mov rcx, rax
jmp 0x140032fb0
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x140032d79
mov ecx, 1
call sym.exit
nop
nop word cs:[rax + rax]
nop