Function at 0x14006fac0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4d8
mov rsi, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
lea r15, [rcx + 8]
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 4]
test byte [rsi + rcx + 0x28], 5
je 0x14006fb13
movaps xmm0, xmmword [0x1401bc9b0]
movaps xmmword [rsp + 0xc0], xmm0
mov r12, 0xffffffffffffffff
jmp 0x14006fb42
mov rcx, qword [r15 + rcx + 0x28]
mov rax, qword [rcx]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0xc0]
xor r8d, r8d
mov r9d, 1
call qword [rax + 0x18]
mov r12, qword [rsp + 0xc8]
mov rax, qword [r15]
movsxd rcx, dword [rax + 4]
add rcx, r15
lea rdi, [rsp + 0xc0]
mov rdx, rdi
call fcn.14004c960
lea rdx, [0x140341b00]
mov rcx, rdi
call fcn.14006078c
mov rbp, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbp + 0x38]
mov ebx, eax
mov rcx, rdi
call fcn.14004f6ae
mov rcx, r15
mov edx, ebx
call fcn.14004d4de
mov rcx, r15
call fcn.14004c884
lea r14, [rsi + 0x10]
lea rbx, [rsp + 0xa0]
mov rcx, r14
mov rdx, rbx
call fcn.140009194
test byte [0x14030e9d0], 0x19
jne 0x14006ff27
mov rax, qword [0x140342890]
test rax, rax
je 0x14006fbf4
mov r9, qword [rsi + 0x110]
mov r8d, dword [rsi + 0x120]
mov rdx, qword [rsi + 0x118]
mov ecx, dword [rsi]
mov qword [rsp + 0x20], rbx
call rax
test al, al
je 0x14006fbf4
cmp byte [rsp + 0xb7], 0
jns 0x14006feac
jmp 0x14006fe9f
mov eax, dword [reloc.WS2_32.dll_accept]
test al, 2
je 0x14006fc1f
cmp byte [rsp + 0xb7], 0
jns 0x14006fc10
mov rbx, qword [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [reloc.WS2_32.dll_accept]
test al, 4
jne 0x14006fc2d
cmp eax, 1
ja 0x14006fc81
cmp dword [rsi], 2
jl 0x14006fc81
mov ecx, 2
call fcn.1401876c8
movzx edx, byte [rsp + 0xb7]
test dl, dl
cmovs rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0xa0]
cmovs rcx, qword [rsp + 0xa0]
mov r8d, 1
mov r9, rax
call fcn.1401a0f1c
mov ecx, 2
call fcn.1401876c8
mov rcx, rax
call fcn.14019fcbc
mov eax, dword [reloc.WS2_32.dll_accept]
test al, 1
je 0x14006fcd2
call fcn.14006f310
test al, al
je 0x14006fcd2
movzx r8d, byte [rsp + 0xb7]
test r8b, r8b
cmovs r8d, dword [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
cmovs rdx, qword [rsp + 0xa0]
mov rcx, qword [0x1403428a8]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x14006fd44
mov rcx, qword [0x140342858]
lea rdi, [rsp + 0xa0]
test rcx, rcx
je 0x14006fd1e
movzx eax, byte [rsp + 0xb7]
test al, al
mov rdx, qword [rsp + 0xa0]
cmovns rdx, rdi
mov qword [rsp + 0x70], rdx
cmovs rax, qword [rsp + 0xa8]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
call fcn.14006c660
mov dword [rsp + 0xc0], 0xbedead01
mov dword [rsp + 0x4c4], 0x5050dead
cmp byte [rdi + 0x17], 0
jns 0x14006fd51
mov rdx, qword [rsp + 0xa0]
jmp 0x14006fd59
lea rdi, [rsp + 0xa0]
jmp 0x14006fe99
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xc4]
mov r8d, 0x400
call fcn.14007de40
lea rcx, [rsp + 0xc0]
call sym.nacl64.exe__ovly_debug_event
mov eax, dword [0x1403428d0]
mov ecx, dword [0x1403488a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x140070078
mov rax, qword [0x1403428c0]
cmp rax, qword [0x1403428c8]
je 0x1400700ee
mov eax, dword [0x1403428d0]
mov ecx, dword [0x1403488a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x1400700b3
mov rdx, qword [0x1403428c8]
test rdx, rdx
mov rax, qword [0x1403428b8]
cmove rdx, rax
add rdx, 0xffffffffffffffff
cmp rax, rdx
jb 0x1400700f1
shl rdx, 3
add rdx, qword [0x1403428b0]
lea rcx, [rsp + 0x90]
call fcn.140068200
mov rbx, qword [rsp + 0x90]
test rbx, rbx
je 0x14006fe8c
cmp byte [rdi + 0x17], 0
jns 0x14006fe2e
mov rbp, qword [rsp + 0xa0]
jmp 0x14006fe36
lea rbp, [rsp + 0xa0]
lea rcx, [r12 + rbp]
mov qword [rsp + 0x60], rcx
test rbp, rbp
je 0x14006fe4b
call fcn.1401a6660
jmp 0x14006fe4d
xor eax, eax
mov qword [rsp + 0x68], rax
mov rax, qword [rsi + 0x110]
sub r12, rax
add rbp, rax
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], r12
mov r8d, dword [rsi + 0x120]
mov rdx, qword [rsi + 0x118]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_htonl]
lea rcx, [rsp + 0x90]
call fcn.1400681e0
cmp byte [rdi + 0x17], 0
jns 0x14006feac
mov rcx, qword [rsp + 0xa0]
call fcn.140183668
lea rcx, [rsi + 0x130]
call fcn.1400c3750
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x1401bb498]
mov qword [rsi + rax + 8], rcx
lea rax, [0x1401bb430]
mov qword [rsi + 0x10], rax
cmp byte [rsi + 0x67], 0
lea rsi, [rsi + 0x78]
jns 0x14006feea
mov rcx, qword [r15 + 0x48]
call fcn.140183668
mov rcx, r14
call fcn.14004c4ba
mov rcx, r14
call sym.nacl64.exe__ovly_debug_event
mov rcx, rsi
call fcn.14004c4b4
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140183a80
nop
add rsp, 0x4d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rsp + 0xb7]
test al, al
mov rcx, qword [rsp + 0xa0]
cmovns rcx, rbx
cmovs rax, qword [rsp + 0xa8]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
mov r8, qword [rsi + 0x110]
lea rcx, [rsp + 0x90]
lea rdx, [rsp + 0x80]
mov r9, 0xffffffffffffffff
call fcn.14007c440
mov ecx, gethostbyname
call fcn.14018360c
mov rdi, rax
mov r9d, dword [rsi + 0x120]
movups xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0xc0], xmm0
mov rdx, qword [rsi + 0x118]
lea r8, [rsp + 0xc0]
mov rcx, rax
call fcn.1400c37b0
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebp, eax
lea r13, [rsp + 0xb8]
mov rcx, r13
call fcn.140096de0
mov word [rsp + 0xc0], 0x801
lea rax, str.message
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd8], rdi
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], ebp
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0x8008
lea rdx, [0x14030e9d0]
lea r8, str.LogMessage
mov cl, 0x49
xor r9d, r9d
call fcn.1400898b0
mov al, byte [rsp + 0xc0]
test al, al
je 0x14006fbb3
xor edi, edi
jmp 0x14007004d
add rdi, 1
movzx ecx, al
cmp rdi, rcx
jae 0x14006fbb3
cmp byte [rsp + rdi + 0xc1], 8
jne 0x14007003d
mov rcx, qword [rsp + rdi*8 + 0xd8]
test rcx, rcx
je 0x14007003d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
movzx eax, byte [rsp + 0xc0]
jmp 0x14007003d
lea rcx, [0x1403428d0]
call fcn.140183810
cmp dword [0x1403428d0], 0xffffffff
jne 0x14006fd9e
xorps xmm0, xmm0
movups xmmword [0x1403428c0], xmm0
movups xmmword [0x1403428b0], xmm0
lea rcx, [0x1403428d0]
call fcn.1401838a8
jmp 0x14006fd9e
lea rcx, [0x1403428d0]
call fcn.140183810
cmp dword [0x1403428d0], 0xffffffff
jne 0x14006fdd7
xorps xmm0, xmm0
movups xmmword [0x1403428c0], xmm0
movups xmmword [0x1403428b0], xmm0
lea rcx, [0x1403428d0]
call fcn.1401838a8
jmp 0x14006fdd7
int3
int3