Function at 0x140001a10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push r12
push r13
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov rax, rdx
xor edi, edi
mov r13, rcx
mov qword [rbp - 0x30], rdi
mov rcx, rax
mov qword [rbp - 0x40], rdi
lea rdx, [0x14001dbf4]
mov r15d, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r12, rax
test rax, rax
jne 0x140001a61
lea eax, [rdi - 1]
jmp 0x140001e90
xor edx, edx
mov qword [rsp + 0xa0], rbx
mov rcx, r12
mov qword [rsp + 0x58], rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
xor r8d, r8d
xor edx, edx
mov rcx, r12
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
call qword [sym.imp.plist.dll_plist_new_dict]
mov ecx, 1
mov rsi, rax
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, str.Port
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, str.Size
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
call qword [sym.imp.plist.dll_plist_new_dict]
mov rbx, rax
cmp byte [r13 + 8], dil
je 0x140001afe
mov ecx, 0x20000
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, str.Checksum_Chunk_Size
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov ecx, 0x28
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, str.FEC_Slice_Stride
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov ecx, 0x5aa
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, str.Packet_Payload_Size
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov ecx, 0x19
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, str.Packets_Per_FEC
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov r8, rsi
lea rdx, str.Payload
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov ecx, 1
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, str.Stream_ID
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov ecx, 1
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, str.Version
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
lea r8, [rbp - 0x38]
mov dword [rbp - 0x38], edi
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x20], rdi
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_to_xml]
mov esi, dword [rbp - 0x38]
lea r9, [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov r8d, esi
mov rcx, qword [r13]
mov dword [rbp - 0x28], edi
call qword [sym.imp.imobiledevice.dll_idevice_connection_send]
mov edx, dword [rbp - 0x28]
test eax, eax
jne 0x140001f03
cmp edx, esi
jne 0x140001f03
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140001bfc
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
mov qword [rsp + 0x50], r14
call qword [sym.imp.plist.dll_plist_free]
lea rdx, [rbp - 0x40]
mov rcx, r13
call fcn.1400018c0
test eax, eax
js 0x140001e6d
lea rsi, str.OOBData
mov r14, qword [rbp - 0x40]
test r14, r14
jne 0x140001c56
cmp r15d, 5
jge 0x140001c56
mov edx, r15d
lea rcx, str.Retrying_to_receive_validation_packet...__d_n
call fcn.140002320
mov ecx, 0x3e8
inc r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001e59
lea rdx, str.Command
mov rcx, r14
mov r15d, edi
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x140001ef7
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 3
jne 0x140001ef7
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_string_val]
mov rdx, qword [rbp - 0x30]
mov rax, rdi
nop dword [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rsi + rax - 1]
jne 0x140001ead
cmp rax, 8
jne 0x140001ca0
lea rdx, str.OOB_Length
mov qword [rbp - 0x20], rdi
mov rcx, r14
mov qword [rbp - 0x38], rdi
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x140001e3b
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 1
jne 0x140001e3b
lea rdx, [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_uint_val]
lea rdx, str.OOB_Offset
mov rcx, r14
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x140001e32
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 1
jne 0x140001e32
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_uint_val]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140001d53
lea rcx, str.ERROR:_Out_of_memory_n
jmp 0x140001e42
mov rdx, qword [rbp - 0x20]
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
je 0x140001d92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rdx, rax
lea rcx, str.ERROR:_Unable_to_read_seek_to_offset:__s_n
call fcn.1400023a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140001e47
mov r8, qword [rbp - 0x38]
mov r9, r12
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rsi, qword [rbp - 0x38]
cmp rax, rsi
je 0x140001ddf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rdx, rax
lea rcx, str.ERROR:_Unable_to_read_OOB_data_from_filesystem_offset:__s_n
call fcn.1400023a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rsi, str.OOBData
jmp 0x140001e47
mov rcx, qword [r13]
lea r9, [rbp - 0x28]
mov r8d, esi
mov dword [rbp - 0x28], edi
mov rdx, rbx
call qword [sym.imp.imobiledevice.dll_idevice_connection_send]
mov edx, dword [rbp - 0x28]
test eax, eax
jne 0x140001e15
cmp edx, esi
jne 0x140001e15
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, edi
lea rsi, str.OOBData
jmp 0x140001e4c
mov r8d, esi
lea rcx, str.ERROR:_Unable_to_send_data_to_ASR._Sent__u_of__u_bytes._n
call fcn.1400023a0
lea rcx, str.ERROR:_Unable_to_send_OOB_data_to_ASR_n
call fcn.1400023a0
jmp 0x140001dcd
lea rcx, str.ERROR:_Unable_to_find_OOB_data_offset_n
jmp 0x140001e42
lea rcx, str.ERROR:_Unable_to_find_OOB_data_length_n
call fcn.1400023a0
mov ebx, 0xffffffff
mov rcx, r14
call qword [sym.imp.plist.dll_plist_free]
test ebx, ebx
js 0x140001ea9
lea rdx, [rbp - 0x40]
mov rcx, r13
call fcn.1400018c0
test eax, eax
jns 0x140001c25
lea rcx, str.ERROR:_Unable_to_receive_validation_packet_n
call fcn.1400023a0
mov eax, 0xffffffff
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.14001bfa0
add rsp, 0x60
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
mov eax, ebx
jmp 0x140001e7e
lea rcx, str.Payload
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + rdi]
inc rdi
cmp al, byte [rcx + rdi - 1]
jne 0x140001ee0
cmp rdi, 8
jne 0x140001ec0
mov rcx, r14
call qword [sym.imp.plist.dll_plist_free]
xor eax, eax
jmp 0x140001e7e
lea rcx, str.ERROR:_Unknown_command_received_from_ASR_n
call fcn.1400023a0
mov rcx, r14
call qword [sym.imp.plist.dll_plist_free]
jmp 0x140001e79
lea rcx, str.ERROR:_Unable_to_find_command_node_in_validation_request_n
jmp 0x140001e74
mov r8d, esi
lea rcx, str.ERROR:_Unable_to_send_data_to_ASR._Sent__u_of__u_bytes._n
call fcn.1400023a0
lea rcx, str.ERROR:_Unable_to_send_plist_to_ASR_n
call fcn.1400023a0
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, str.ERROR:_Unable_to_sent_packet_information_to_ASR_n
call fcn.1400023a0
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_free]
mov eax, 0xffffffff
jmp 0x140001e83