Function at 0x14003aa60
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x398
movaps xmmword [rsp + 0x380], xmm6
xor eax, eax
movdqu xmm6, xmmword [rdx]
mov r12, rcx
lea rdi, [rsp + 0x2f0]
mov ecx, 0x12
mov rbx, r8
mov qword [rsp + 0x30], rdi
rep stosq qword [rdi], rax
mov rcx, r12
mov qword [rsp + 0x3f8], r9
call dbg.stack_if_datalink
cmp eax, 0xc
je 0x14003b670
mov r9d, dword [rbx]
movzx r8d, word [rbx + 4]
mov edx, 0x200
mov dword [rsp + 0x270], 0x3333
mov word [rsp + 0x274], dx
mov dword [rsp + 0x276], r9d
mov word [rsp + 0x27a], r8w
test byte [r12 + 0x18], 2
jne 0x14003b448
mov qword [rsp + 0xc0], 0x3a
mov r15d, 0x39
mov eax, 0x1d
mov edx, 0x1e
mov qword [rsp + 0xc8], 0x3b
mov r10d, 0x11
mov edi, 0x13
mov r14d, 0xd
mov qword [rsp + 0xd0], 0x3c
mov r13d, 0xe
mov ebp, 0xf
mov r11d, 0x10
mov qword [rsp + 0xd8], 0x3d
mov ecx, 0x40
mov esi, 0xc
mov qword [rsp + 0xe0], 0x17
mov qword [rsp + 0xe8], 0x18
mov qword [rsp + 0xf0], 0x19
mov qword [rsp + 0xf8], 0x1a
mov qword [rsp + 0x100], 0x1b
mov qword [rsp + 0x108], 0x1c
mov qword [rsp + 0x110], 0x21
mov qword [rsp + 0x130], 0x22
mov qword [rsp + 0x138], 0x23
mov qword [rsp + 0x158], 0x26
mov qword [rsp + 0x160], 0x27
mov qword [rsp + 0x168], 0x28
mov qword [rsp + 0xb8], 0x29
mov qword [rsp + 0xb0], 0x2a
mov qword [rsp + 0x70], 0x2b
mov qword [rsp + 0x78], 0x2c
mov qword [rsp + 0x50], 0x2d
mov qword [rsp + 0x58], 0x2e
mov qword [rsp + 0x118], 0x2f
mov qword [rsp + 0x68], 0x30
mov qword [rsp + 0x120], 0x31
mov qword [rsp + 0xa0], 0x32
mov qword [rsp + 0xa8], 0x33
mov qword [rsp + 0x80], 0x34
mov qword [rsp + 0x88], 0x35
mov qword [rsp + 0x60], 0x12
mov qword [rsp + 0x128], 0x14
mov qword [rsp + 0x148], 0x15
mov qword [rsp + 0x140], 0x16
mov qword [rsp + 0x150], 0x36
mov qword [rsp + 0x48], 0x37
mov qword [rsp + 0x38], 0x38
mov qword [rsp + 0x40], 0x3f
mov dword [rsp + 0x90], 0x3e
mov qword [rsp + 0x98], 0x3e
mov dword [rsp + 0x94], 0x46
mov byte [rsp + rsi + 0x270], 0x86
mov rsi, qword [rsp + 0x128]
mov byte [rsp + r14 + 0x270], 0xdd
lea r14, [rsp + 0x270]
mov byte [rsp + r13 + 0x270], 0x60
mov byte [rsp + rbp + 0x270], 0
mov rbp, qword [rsp + 0x140]
mov byte [rsp + r11 + 0x270], 0
mov r11, qword [rsp + 0x60]
mov byte [rsp + r10 + 0x270], 0
add rbp, r14
movzx r10d, word [rbx]
mov byte [rsp + r11 + 0x270], 0
mov byte [rsp + rdi + 0x270], 0
mov byte [rsp + rsi + 0x270], 0x3a
mov rsi, qword [rsp + 0x148]
mov byte [rsp + rsi + 0x270], 0xff
mov rsi, qword [rsp + 0xe0]
mov byte [rbp], 0xfe
mov byte [rsp + rsi + 0x270], pe_nt_image_headers64
mov rsi, qword [rsp + 0xe8]
mov byte [rsp + rsi + 0x270], 0
mov rsi, qword [rsp + 0xf0]
mov byte [rsp + rsi + 0x270], 0
mov rsi, qword [rsp + 0xf8]
mov byte [rsp + rsi + 0x270], 0
mov rsi, qword [rsp + 0x100]
mov byte [rsp + rsi + 0x270], 0
mov rsi, qword [rsp + 0x108]
mov byte [rsp + rsi + 0x270], 0
mov rsi, r11
mov byte [rsp + rax + 0x270], 0
lea rax, [r14 + rdx]
mov word [rax], r10w
movzx r10d, byte [rbx + 2]
mov byte [rax + 2], r10b
or byte [rsp + rdx + 0x270], 2
mov rax, qword [rsp + 0x110]
movzx edx, word [rbx + 3]
mov byte [rsp + rax + 0x270], 0xff
mov rax, qword [rsp + 0x130]
mov byte [rsp + rax + 0x270], 0xfe
mov rax, qword [rsp + 0x138]
add rax, r14
mov word [rax], dx
movzx edx, byte [rbx + 5]
mov rbx, qword [rsp + 0x158]
mov byte [rax + 2], dl
mov rax, qword [rsp + 0x160]
add rbx, r14
mov byte [rbx], 0xff
mov rdx, rbx
mov byte [rsp + rax + 0x270], 2
mov rax, qword [rsp + 0x168]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0xb8]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0xb0]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0x70]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0x78]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0x50]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0x58]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0x118]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0x68]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0x120]
mov r13, qword [rsp + 0x150]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0xa0]
add r13, r14
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0xa8]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0x80]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0x88]
mov byte [rsp + rax + 0x270], 2
mov rax, qword [rsp + 0x48]
mov byte [r13], 0x85
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0x38]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0xc0]
mov byte [rsp + r15 + 0x270], 0
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0xc8]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0xd0]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0xd8]
mov byte [rsp + rax + 0x270], 0
mov rax, qword [rsp + 0x98]
mov byte [rsp + rax + 0x270], 1
mov rax, qword [rsp + 0x40]
mov byte [rsp + rax + 0x270], 1
mov dword [rsp + rcx + 0x270], r9d
mov r9d, 0x10
mov word [rsp + rcx + 0x274], r8w
mov rcx, rbp
mov r8d, 0x3a
mov byte [rsp + r11 + 0x270], 0
mov byte [rsp + rdi + 0x270], 0x10
mov qword [rsp + 0x20], r13
call dbg.checksum_ipv6
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x94]
mov rdx, r14
mov r9d, 1
mov byte [rsp + rcx + 0x270], ah
mov rcx, r12
mov byte [rsp + r15 + 0x270], al
call dbg.rawsock_send_packet
mov byte [rsp + rsi + 0x270], 0
mov rdx, rbx
mov rcx, rbp
mov byte [rsp + rdi + 0x270], 8
mov r9d, 8
mov r8d, 0x3a
xor ebp, ebp
mov qword [rsp + 0x20], r13
xor r13d, r13d
call dbg.checksum_ipv6
mov rdi, qword [rsp + 0x38]
mov rcx, r12
mov rdx, r14
mov r8d, dword [rsp + 0x90]
mov r9d, 1
mov byte [rsp + rdi + 0x270], ah
mov byte [rsp + r15 + 0x270], al
xor r15d, r15d
call dbg.rawsock_send_packet
xor ecx, ecx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
mov qword [rsp + 0x3e0], r12
mov r12d, r13d
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r13, qword [rsp + 0x3e0]
mov rbx, rax
nop word cs:[rax + rax]
nop dword [rax]
xor ecx, ecx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
cmp rax, rbx
je 0x14003b0fa
xor ecx, ecx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
mov r8d, dword [rsp + 0x90]
mov rdx, r14
mov rcx, r13
mov r9d, 1
mov rbx, rax
call dbg.rawsock_send_packet
cmp ebp, 9
ja 0x14003b420
test r12d, r12d
je 0x14003b3c0
add ebp, 1
mov r12d, 1
xor ecx, ecx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
mov rdx, rax
lea rax, [rbx + 1]
cmp rdx, rax
jle 0x14003b11c
test r15d, r15d
je 0x14003b3f0
mov r15d, 1
lea rax, [rsp + 0x1d8]
lea rdx, [rsp + 0x1cc]
mov rcx, r13
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1d4]
lea r8, [rsp + 0x1d0]
call dbg.rawsock_recv_packet
mov esi, eax
test eax, eax
jne 0x14003b0b0
mov r9, qword [rsp + 0x30]
mov edx, dword [rsp + 0x1cc]
mov r8d, 1
mov rcx, qword [rsp + 0x1d8]
call dbg.preprocess_frame
cmp eax, 1
jne 0x14003b0b0
cmp dword [rsp + 0x378], 0x15
jne 0x14003b0b0
cmp dword [rsp + 0x30c], 6
mov eax, dword [rsp + 0x1cc]
mov r11, qword [rsp + 0x1d8]
jne 0x14003b0b0
cmp dword [rsp + 0x310], 0x3a
jne 0x14003b0b0
mov edx, dword [rsp + 0x360]
mov r9d, eax
lea rax, [rdx + 1]
cmp rax, r9
jae 0x14003b0b0
cmp byte [r11 + rdx], 0x86
jne 0x14003b0b0
lea r10, [rdx + 2]
cmp r10, r9
jae 0x14003b0b0
cmp byte [r11 + rdx + 1], 0
jne 0x14003b0b0
lea rax, [rdx + 4]
cmp r9, rax
jb 0x14003b811
lea rcx, [rdx + 5]
lea r8, [rdx + 6]
cmp rcx, r9
jae 0x14003b886
cmp r8, r9
jae 0x14003b81e
lea r10, [rdx + 8]
cmp r9, r10
cmovb r10, r8
lea rdx, [r10 + 4]
cmp r9, rdx
jb 0x14003b237
add r10, 8
cmp r9, r10
jb 0x14003b87e
lea rdx, [r10 + 8]
cmp r9, rdx
jb 0x14003b85b
lea rcx, [rsp + 0x190]
mov qword [rsp + 0x60], rbx
mov eax, 1
mov rbx, r10
mov dword [rsp + 0x68], r15d
mov r10, r9
mov r15, r11
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x3e0], r13
mov qword [rsp + 0x78], r14
jmp 0x14003b2b0
cmp cl, 0x19
je 0x14003b68e
cmp cl, 1
jne 0x14003b2a0
cmp r8b, 1
je 0x14003b7eb
add rbx, rbp
lea rdx, [rbx + 8]
cmp r10, rdx
jb 0x14003b71a
movzx edx, byte [r15 + rbx + 1]
lea r12, [r15 + rbx]
movzx ecx, byte [r12]
mov r8d, edx
shl edx, 3
movsxd rbp, edx
cmp cl, 3
jne 0x14003b288
cmp edx, 3
jle 0x14003b755
movzx eax, byte [r12 + 2]
mov dword [rsp + 0x38], eax
cmp edx, 0x1f
jle 0x14003b851
mov rax, qword [r12 + 0x10]
mov r12, qword [r12 + 0x18]
bswap rax
bswap r12
mov rcx, qword [rsp + 0x48]
lea r14, [rsp + 0x180]
mov r13, r12
mov qword [rsp + 0x40], r10
mov rdx, r14
mov r12, rax
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x188], r13
call dbg.ipv6address_fmt
mov esi, dword [rsp + 0x38]
mov ecx, 1
movdqu xmm0, xmmword [rsp + 0x190]
movdqu xmm1, xmmword [rsp + 0x1a0]
lea r8, [rsp + 0x1e0]
movdqu xmm2, xmmword [rsp + 0x1b0]
lea rdx, str.___IPv6.prefix___s__u_n
mov r9d, esi
movaps xmmword [rsp + 0x1e0], xmm0
movaps xmmword [rsp + 0x1f0], xmm1
movaps xmmword [rsp + 0x200], xmm2
call dbg.LOG
lea rdx, [rsp + 0x170]
mov r8d, esi
mov rcx, r14
mov qword [rsp + 0x170], r12
mov qword [rsp + 0x178], r13
movaps xmmword [rsp + 0x180], xmm6
call dbg.ipv6address_is_equal_prefixed
mov r10, qword [rsp + 0x40]
test eax, eax
je 0x14003b767
mov eax, 1
jmp 0x14003b2a0
mov ecx, 2
call rdi
mov r8d, 0x3e
mov edx, 1
lea rcx, str.____resolving_IPv6_router_MAC_address__may_take_some_time_..._n
mov r9, rax
call sym.fwrite
jmp 0x14003b0f1
mov ecx, 2
call rdi
mov r8d, 0x20
mov edx, 1
lea rcx, str.____resolving_local_IPv6_router_n
mov r9, rax
call sym.fwrite
jmp 0x14003b116
mov eax, 1
movaps xmm6, xmmword [rsp + 0x380]
add rsp, 0x398
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 0x81
mov qword [rsp + 0xc0], 0x3e
mov r15d, 0x3d
mov edx, 0x22
mov word [rsp + 0x27c], ax
movzx eax, word [r12 + 0x1c]
mov r10d, 0x15
mov edi, 0x17
mov qword [rsp + 0xc8], 0x3f
mov r14d, 0x11
mov r13d, 0x12
mov ebp, 0x13
rol ax, 8
mov qword [rsp + 0xd0], 0x40
mov r11d, 0x14
mov ecx, 0x44
mov word [rsp + 0x27e], ax
mov esi, 0x10
mov eax, 0x21
mov qword [rsp + 0xd8], 0x41
mov qword [rsp + 0xe0], 0x1b
mov qword [rsp + 0xe8], 0x1c
mov qword [rsp + 0xf0], 0x1d
mov qword [rsp + 0xf8], 0x1e
mov qword [rsp + 0x100], 0x1f
mov qword [rsp + 0x108], 0x20
mov qword [rsp + 0x110], 0x25
mov qword [rsp + 0x130], 0x26
mov qword [rsp + 0x138], 0x27
mov qword [rsp + 0x158], 0x2a
mov qword [rsp + 0x160], 0x2b
mov qword [rsp + 0x168], 0x2c
mov qword [rsp + 0xb8], 0x2d
mov qword [rsp + 0xb0], 0x2e
mov qword [rsp + 0x70], 0x2f
mov qword [rsp + 0x78], 0x30
mov qword [rsp + 0x50], 0x31
mov qword [rsp + 0x58], 0x32
mov qword [rsp + 0x118], 0x33
mov qword [rsp + 0x68], 0x34
mov qword [rsp + 0x120], 0x35
mov qword [rsp + 0xa0], 0x36
mov qword [rsp + 0xa8], 0x37
mov qword [rsp + 0x80], 0x38
mov qword [rsp + 0x88], 0x39
mov qword [rsp + 0x60], 0x16
mov qword [rsp + 0x128], 0x18
mov qword [rsp + 0x148], 0x19
mov qword [rsp + 0x140], 0x1a
mov qword [rsp + 0x150], 0x3a
mov qword [rsp + 0x48], 0x3b
mov qword [rsp + 0x38], 0x3c
mov qword [rsp + 0x40], 0x43
mov dword [rsp + 0x90], 0x42
mov qword [rsp + 0x98], 0x42
mov dword [rsp + 0x94], 0x4a
jmp 0x14003acf1
mov rax, qword [rsp + 0x3f8]
mov ecx, 0x200
mov dword [rax], 0
mov word [rax + 4], cx
xor eax, eax
jmp 0x14003b425
cmp edx, 0x17
jle 0x14003b2a0
mov qword [rsp + 0x38], r10
mov r13d, 0x18
lea r14, [rsp + 0x180]
lea rsi, [rsp + 0x240]
mov qword [rsp + 0x40], rbx
mov rbx, r12
mov r12, r13
mov r13d, eax
mov rdx, qword [rbx + r12 - 0x10]
mov rcx, qword [rbx + r12 - 8]
add r12, 0x10
bswap rdx
bswap rcx
mov qword [rsp + 0x180], rdx
mov rdx, r14
mov qword [rsp + 0x188], rcx
mov rcx, rsi
call dbg.ipv6address_fmt
mov r8, rsi
mov ecx, 1
lea rdx, str.___IPv6.DNS___s_n
call dbg.LOG
cmp rbp, r12
jae 0x14003b6c0
mov r10, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov eax, r13d
jmp 0x14003b2a0
mov esi, dword [rsp + 0x50]
mov ebp, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov r15d, dword [rsp + 0x68]
mov r12d, dword [rsp + 0x70]
mov r13, qword [rsp + 0x3e0]
mov r14, qword [rsp + 0x78]
test esi, esi
je 0x14003b830
test eax, eax
je 0x14003b0b0
xor eax, eax
jmp 0x14003b425
mov dword [rsp + 0x38], 0xffffffff
xor r12d, r12d
xor eax, eax
jmp 0x14003b2f9
lea r8, [rsp + 0x210]
mov rdx, r14
lea rsi, [rsp + 0x240]
mov qword [rsp + 0x80], r10
mov rcx, r8
mov dword [rsp + 0x88], eax
mov qword [rsp + 0x40], r8
movaps xmmword [rsp + 0x180], xmm6
call dbg.ipv6address_fmt
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x180], r12
mov qword [rsp + 0x188], r13
call dbg.ipv6address_fmt
mov eax, dword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
xor ecx, ecx
mov r9, rsi
lea rdx, str.____WARNING:_our_source_ip_is__s__but_router_prefix_announces__s__u_n
mov dword [rsp + 0x20], eax
call dbg.LOG
mov r10, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
jmp 0x14003b2a0
mov edx, dword [r12 + 2]
mov rsi, qword [rsp + 0x3f8]
mov dword [rsp + 0x50], 1
mov dword [rsi], edx
movzx edx, word [r12 + 6]
mov word [rsi + 4], dx
jmp 0x14003b2a0
lea rcx, [rdx + 3]
cmp rcx, r9
jae 0x14003b221
lea r10, [rcx + 2]
mov r8, rcx
jmp 0x14003b21a
mov rdx, qword [rsp + 0x2f0]
mov rsi, qword [rsp + 0x3f8]
mov ecx, dword [rdx]
mov dword [rsi], ecx
movzx edx, word [rdx + 4]
mov word [rsi + 4], dx
jmp 0x14003b746
xor r12d, r12d
xor eax, eax
jmp 0x14003b2f9
mov rax, qword [rsp + 0x2f0]
mov rdi, qword [rsp + 0x3f8]
mov edx, dword [rax]
mov dword [rdi], edx
movzx eax, word [rax + 4]
mov word [rdi + 4], ax
xor eax, eax
jmp 0x14003b425
mov r10, rdx
jmp 0x14003b237
mov r10, r8
mov r8, rax
jmp 0x14003b21a