Function at 0x1400812c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov ebx, dword [rcx + 0x2b0]
xor r14d, r14d
cmp dword [rcx + 0x2b4], 1
movzx esi, r8b
mov rdi, rdx
mov qword [rsp + 0x78], rdx
mov r13, rcx
mov qword [rbp - 0x80], r14
mov r12d, r14d
mov qword [rbp - 0x78], r14
mov r15d, r14d
mov dword [rsp + 0x50], ebx
jne 0x1400816f0
cmp ebx, 0xffffffff
je 0x1400816f0
mov rbx, qword [rcx + 0x18]
test rbx, rbx
je 0x140081534
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x70]
xorps xmm0, xmm0
mov dword [rbp - 0x34], r8d
xorps xmm1, xmm1
mov dword [rbp - 0x50], 9
mov eax, 2
mov qword [rbp - 0x48], pe_nt_image_headers64
mov r8d, pe_nt_image_headers64
mov dword [rbp - 0x40], r14d
lea rdx, [rbp - 0x50]
mov word [rbp - 0x38], ax
mov rcx, rbx
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp], xmm1
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp + 0x20], xmm1
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm1
movdqa xmmword [rbp + 0x50], xmm0
movdqa xmmword [rbp + 0x60], xmm1
movdqa xmmword [rbp + 0x70], xmm0
movdqa xmmword [rbp + 0x80], xmm1
movdqa xmmword [rbp + 0x90], xmm0
movdqa xmmword [rbp + 0xa0], xmm1
movdqa xmmword [rbp + 0xb0], xmm0
movdqa xmmword [rbp + 0xc0], xmm1
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140081419
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r14
lea r8d, [r14 + 0x20]
mov rcx, rbx
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140081419
mov ebx, dword [rbp - 0x58]
jmp 0x140081540
mov ecx, 0x40
call fcn.14000e3d0
test al, al
je 0x1400814ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rsp + 0x58]
call fcn.14000ebf0
mov r9, rax
mov dword [rsp + 0x20], ebx
lea r8, [0x1400b6430]
mov ecx, 0x40
lea rdx, str._s:_could_not_talk_to_service:__s___lu_
call fcn.14000e000
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140081481
nop
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
test rbx, rbx
jne 0x140081470
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x1400814ab
nop dword [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rbx, qword [rdi]
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140081490
mov ebx, dword [rsp + 0x50]
test sil, sil
je 0x1400815e5
mov ecx, ebx
call fcn.14007df60
cmp eax, 2
jne 0x1400814e1
lea ecx, [rax + 0x3e]
call fcn.14000e3d0
test al, al
je 0x1400814e1
lea rdx, str.WARNING:_You_have_selected___ip_win32_dynamic__which_will_not_work_unless_the_TAP_Windows_TCP_IP_properties_are_set_to_Obtain_an_IP_address_automatically
mov ecx, 0x40
call fcn.14000e000
cmp byte [r13 + 0xf6], r14b
je 0x140081502
cmp dword [r13 + 0x14], 3
jne 0x140081502
mov ecx, dword [r13 + 0x2b0]
cmp ecx, 0xffffffff
je 0x140081502
call fcn.14007ebd0
cmp byte [r13 + 0xf5], r14b
je 0x1400816f0
cmp dword [r13 + 0x14], 3
jne 0x1400816f0
mov ecx, dword [r13 + 0x2b0]
cmp ecx, 0xffffffff
je 0x1400816f0
call fcn.14007ecc0
jmp 0x1400816f0
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.IPHLPAPI.DLL_FlushIpNetTable]
mov ebx, eax
test ebx, ebx
jne 0x140081581
cmp dword [0x1400cfe94], 1
jb 0x1400814ab
lea ecx, [rbx + 1]
call fcn.14000e3d0
mov ebx, dword [rsp + 0x50]
test al, al
je 0x1400814af
mov r9, rdi
lea rdx, str.Successful_ARP_Flush_on_interface___lu___s
mov r8d, ebx
mov ecx, 1
call fcn.14000e000
jmp 0x1400814af
cmp ebx, 0xffffffff
je 0x1400814ab
cmp dword [0x1400cfe94], 3
jb 0x1400814ab
mov ecx, 0x20000003
call fcn.14000e3d0
test al, al
je 0x1400814ab
lea rdx, [rbp - 0x80]
mov ecx, ebx
call fcn.14000ebf0
mov qword [rsp + 0x28], rax
lea rdx, str.NOTE:_FlushIpNetTable_failed_on_interface___lu___s__status_lu__:__s
mov dword [rsp + 0x20], ebx
mov r9, rdi
mov ebx, dword [rsp + 0x50]
mov ecx, 0x20000003
mov r8d, ebx
call fcn.14000e000
mov r15, qword [rbp - 0x78]
mov r12, qword [rbp - 0x80]
jmp 0x1400814af
cmp byte [r13 + 0xf6], r14b
jne 0x1400815fb
cmp byte [r13 + 0xf5], r14b
je 0x1400816f0
mov ecx, 0x108
mov qword [rbp - 0x70], 0x100
mov dword [rbp - 0x68], r14d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140081c4f
movups xmm0, xmmword [rbp - 0x70]
add rax, 8
mov qword [rdi], r14
mov r9d, 1
mov qword [rbp - 0x60], rax
movsd xmm1, qword [rbp - 0x60]
lea rdx, str.openvpn___verb__d___tap_sleep__d
lea rcx, [rsp + 0x58]
movsd qword [rsp + 0x68], xmm1
mov byte [rax], r14b
lea r8d, [r9 + 2]
movups xmmword [rsp + 0x58], xmm0
call fcn.140002e40
cmp byte [r13 + 0xf6], r14b
je 0x140081675
lea rdx, str.___dhcp_pre_release
lea rcx, [rsp + 0x58]
call fcn.140002e40
cmp byte [r13 + 0xf5], r14b
je 0x14008168f
lea rdx, str.___dhcp_renew
lea rcx, [rsp + 0x58]
call fcn.140002e40
mov r8d, dword [r13 + 0x2b0]
lea rdx, str.___dhcp_internal__lu
lea rcx, [rsp + 0x58]
call fcn.140002e40
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400816c2
cmp dword [rsp + 0x60], r14d
jl 0x1400816c2
movsxd rcx, dword [rsp + 0x5c]
add rcx, rax
jmp 0x1400816c5
mov rcx, r14
call fcn.1400858e0
nop word [rax + rax]
mov rbx, qword [rdi]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x1400816d0
mov ebx, dword [rsp + 0x50]
nop dword [rax + rax]
cmp byte [r13 + 8], r14b
je 0x140081a5f
cmp dword [r13 + 0x14], 2
jne 0x140081a5f
cmp ebx, 0xffffffff
jne 0x140081741
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000e3d0
test al, al
je 0x140081735
mov r8, qword [rsp + 0x78]
lea r9, str.I_am_having_trouble_using_the_Windows_IP_helper_API_to_automatically_set_the_IP_address____consider_using_other___ip_win32_methods__not_ipapi_
lea rdx, str.ERROR:_unable_to_get_adapter_index_for_interface__s_____s
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000e000
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
mov ecx, ebx
call fcn.14007df60
cmp eax, 2
jne 0x14008176a
lea ecx, [rax + 0x3e]
call fcn.14000e3d0
test al, al
je 0x14008176a
lea rdx, str.NOTE:_You_have_selected__explicitly_or_by_default____ip_win32_ipapi__which_has_a_better_chance_of_working_correctly_if_the_TAP_Windows_TCP_IP_properties_are_set_to_Obtain_an_IP_address_automatically
mov ecx, 0x40
call fcn.14000e000
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
call fcn.14007d870
test rax, rax
je 0x140081876
cmp dword [rax + 0x1a0], ebx
je 0x14008179c
mov rax, qword [rax]
test rax, rax
jne 0x140081787
jmp 0x140081876
lea rbx, [rax + 0x1b8]
test rbx, rbx
je 0x140081876
nop dword [rax]
mov ecx, dword [rbx + 0x28]
call qword [sym.imp.IPHLPAPI.DLL_DeleteIPAddress]
mov esi, eax
test eax, eax
jne 0x1400817f5
cmp dword [0x1400cfe94], 1
jb 0x14008186a
lea ecx, [rax + 1]
call fcn.14000e3d0
test al, al
je 0x14008186a
lea r9, [rbx + 0x18]
lea r8, [rbx + 8]
lea rdx, str.Successfully_deleted_previously_set_dynamic_IP_netmask:__s__s
lea ecx, [rsi + 1]
call fcn.14000e000
jmp 0x14008186a
mov rcx, r14
lea rdx, str.0.0.0.0
nop
movzx eax, byte [rbx + rcx + 8]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140081836
cmp rcx, 8
jne 0x140081800
mov rax, r14
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [rdx + rax - 1]
jne 0x140081836
cmp rax, 8
jne 0x140081820
jmp 0x14008186a
cmp dword [0x1400cfe94], 1
jb 0x14008186a
mov ecx, 1
call fcn.14000e3d0
test al, al
je 0x14008186a
lea r9, [rbx + 0x18]
mov dword [rsp + 0x20], esi
lea r8, [rbx + 8]
mov ecx, 1
lea rdx, str.NOTE:_could_not_delete_previously_set_dynamic_IP_netmask:__s__s__status_u_
call fcn.14000e000
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400817b0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140081891
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
test rbx, rbx
jne 0x140081880
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x1400818bb
nop dword [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rbx, qword [rdi]
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x1400818a0
mov ecx, dword [r13 + 0x2ac]
lea rdi, [r13 + 0x2a8]
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [r13 + 0x14c]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov r8d, dword [rsp + 0x50]
lea r9, [r13 + 0x2a4]
mov ecx, eax
mov qword [rsp + 0x20], rdi
mov edx, ebx
call qword [sym.imp.IPHLPAPI.DLL_AddIPAddress]
mov esi, eax
test eax, eax
jne 0x140081ad6
cmp dword [0x1400cfe94], 1
jb 0x140081a57
lea ecx, [rax + 1]
call fcn.14000e3d0
test al, al
je 0x140081a57
mov ebx, dword [r13 + 0x2ac]
lea ecx, [rsi + 0x48]
mov qword [rbp - 0x70], 0x40
mov dword [rbp - 0x68], r14d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140081c4f
movups xmm0, xmmword [rbp - 0x70]
lea rdx, [rax + 8]
mov qword [rax], r12
mov qword [rbp - 0x60], rdx
mov ecx, ebx
movsd xmm1, qword [rbp - 0x60]
movsd qword [rsp + 0x68], xmm1
mov byte [rdx], r14b
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
lea rdx, [0x14008b3dc]
lea rcx, [rsp + 0x58]
call fcn.140002e40
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400819a9
cmp dword [rsp + 0x60], r14d
jl 0x1400819a9
movsxd rbx, dword [rsp + 0x5c]
add rbx, rax
jmp 0x1400819ac
mov rbx, r14
mov esi, dword [r13 + 0x14c]
mov ecx, 0x48
mov qword [rbp - 0x70], 0x40
mov dword [rbp - 0x68], r14d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
test rax, rax
je 0x140081c4f
movups xmm0, xmmword [rbp - 0x70]
add rax, 8
mov qword [r12], rdi
mov qword [rbp - 0x60], rax
mov ecx, esi
movsd xmm1, qword [rbp - 0x60]
movsd qword [rsp + 0x68], xmm1
mov byte [rax], r14b
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
lea rdx, [0x14008b3dc]
lea rcx, [rsp + 0x58]
call fcn.140002e40
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140081a36
cmp dword [rsp + 0x60], r14d
jl 0x140081a36
movsxd r14, dword [rsp + 0x5c]
add r14, rax
mov rax, qword [rsp + 0x78]
lea rdx, str.Succeeded_in_adding_a_temporary_IP_netmask_of__s__s_to_interface__s_using_the_Win32_IP_Helper_API
mov r9, rbx
mov qword [rsp + 0x20], rax
mov r8, r14
mov ecx, 1
call fcn.14000e000
mov byte [r13 + 0x2a0], 1
test r12, r12
je 0x140081a85
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [r12]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r12, rbx
test rbx, rbx
jne 0x140081a70
test r15, r15
je 0x140081aac
nop word [rax + rax]
mov rcx, qword [r15 + 0x10]
mov rbx, qword [r15]
call qword [r15 + reloc.WS2_32.dll_htonl]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r15, rbx
test rbx, rbx
jne 0x140081a90
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140088150
mov rbx, qword [rsp + 0x230]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000e3d0
test al, al
je 0x140081735
mov ebx, dword [r13 + 0x2ac]
mov ecx, 0x48
mov qword [rbp - 0x70], 0x40
mov dword [rbp - 0x68], r14d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140081c4f
movups xmm0, xmmword [rbp - 0x70]
lea rdx, [rax + 8]
mov qword [rax], r12
mov qword [rbp - 0x60], rdx
mov ecx, ebx
movsd xmm1, qword [rbp - 0x60]
movsd qword [rsp + 0x68], xmm1
mov byte [rdx], r14b
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
lea rdx, [0x14008b3dc]
lea rcx, [rsp + 0x58]
call fcn.140002e40
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140081b73
cmp dword [rsp + 0x60], r14d
jl 0x140081b73
movsxd rbx, dword [rsp + 0x5c]
add rbx, rax
jmp 0x140081b76
mov rbx, r14
mov r15d, dword [r13 + 0x14c]
mov ecx, 0x48
mov qword [rbp - 0x70], 0x40
mov dword [rbp - 0x68], r14d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140081c4f
movups xmm0, xmmword [rbp - 0x70]
lea rdx, [rax + 8]
mov qword [rax], rdi
mov qword [rbp - 0x60], rdx
mov ecx, r15d
movsd xmm1, qword [rbp - 0x60]
movsd qword [rsp + 0x68], xmm1
mov qword [rbp - 0x80], rax
mov byte [rdx], r14b
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
lea rdx, [0x14008b3dc]
lea rcx, [rsp + 0x58]
call fcn.140002e40
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140081c01
cmp dword [rsp + 0x60], r14d
jl 0x140081c01
movsxd r14, dword [rsp + 0x5c]
add r14, rax
lea rdx, [rbp - 0x80]
mov ecx, esi
call fcn.14000ebf0
lea rcx, str.I_am_having_trouble_using_the_Windows_IP_helper_API_to_automatically_set_the_IP_address____consider_using_other___ip_win32_methods__not_ipapi_
mov r9, rbx
mov qword [rsp + 0x40], rcx
lea rdx, str.ERROR:_AddIPAddress__s__s_failed_on_interface__s__index_lu__status_lu__windows_error:__s______s
mov qword [rsp + 0x38], rax
mov r8, r14
mov eax, dword [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_recv
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.14000e000
jmp 0x140081735
call fcn.14000e540
int3