Function at 0x180004280
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov r13d, ebx
mov qword [rbp - 0x10], send
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], bl
xor r8d, r8d
lea rdx, [0x180364c6e]
lea rcx, [rbp - 0x28]
call fcn.1800081f0
nop
mov qword [rbp - 0x38], send
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x50], bl
xor r8d, r8d
lea rdx, [0x180364c6e]
lea rcx, [rbp - 0x50]
call fcn.1800081f0
nop
cmp qword [rdi + 0x18], 0x10
jb 0x180004311
mov rdi, qword [rdi]
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.180003f10
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov qword [rbp - 0x60], send
mov qword [rbp - 0x68], rbx
mov byte [rbp - 0x78], 0
mov qword [rsp + 0x48], send
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x30], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x30]
call fcn.1800086e0
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call fcn.18000b1e0
mov rdi, rax
lea rax, [rbp - 0x78]
cmp rax, rdi
je 0x1800043f9
cmp qword [rbp - 0x60], 0x10
jb 0x1800043ab
mov rcx, qword [rbp - 0x78]
call fcn.18000c5fc
mov qword [rbp - 0x60], send
mov qword [rbp - 0x68], rbx
mov byte [rbp - 0x78], 0
cmp qword [rdi + 0x18], 0x10
jae 0x1800043d7
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.180147850
jmp 0x1800043e1
mov rax, qword [rdi]
mov qword [rbp - 0x78], rax
mov qword [rdi], rbx
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x68], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x60], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
cmp qword [rbp + 0x18], 0x10
jb 0x180004409
mov rcx, qword [rbp]
call fcn.18000c5fc
mov qword [rsp + 0x78], send
mov qword [rsp + 0x70], rbx
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x48], send
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x30], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800086e0
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call fcn.18000b1e0
mov rdi, rax
lea rax, [rsp + 0x60]
cmp rax, rdi
je 0x1800044c6
cmp qword [rsp + 0x78], 0x10
jb 0x180004471
mov rcx, qword [rsp + 0x60]
call fcn.18000c5fc
mov qword [rsp + 0x78], send
mov qword [rsp + 0x70], rbx
mov byte [rsp + 0x60], 0
cmp qword [rdi + 0x18], 0x10
jae 0x1800044a1
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.180147850
jmp 0x1800044ac
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
mov qword [rdi], rbx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x78], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
cmp qword [rbp + 0x18], 0x10
jb 0x1800044d6
mov rcx, qword [rbp]
call fcn.18000c5fc
mov ecx, dword [rsp + 0x70]
mov eax, dword [rbp - 0x68]
lea r12d, [rax + rcx + 0x4a]
lea eax, [r12 + 8]
movsxd rdi, eax
mov rcx, rdi
call fcn.1801474a8
mov rbx, rax
test rax, rax
je 0x1800045f7
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.18014af80
lea ecx, [r12 - 0x48]
mov word [rbx + 2], cx
lea rcx, [rbx + 8]
mov r8d, 0x3f
mov rdx, rsi
call fcn.180147d90
mov edx, socket
mov word [rbx], dx
mov r8, qword [rbp - 0x68]
cmp r8, 1
jbe 0x180004552
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
dec r8
lea rcx, [rbx + 0x48]
call fcn.180147d90
lea rdi, [rbx + 0x48]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x180364678]
mov word [rdi - 1], ax
mov r8, qword [rsp + 0x70]
cmp r8, 1
jbe 0x180004591
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
dec r8
lea rcx, [rbx + 0x48]
call fcn.1801489a0
lea rcx, str.ReportFile_begin_sendto.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8d, r12d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1800045e1
lea rcx, str.ReportFile_sendto_success.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r13d, 1
jmp 0x1800045ee
lea rcx, str.ReportFile_sendto_error.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rbx
call fcn.18014777c
nop
cmp qword [rsp + 0x78], 0x10
jb 0x180004609
mov rcx, qword [rsp + 0x60]
call fcn.18000c5fc
mov qword [rsp + 0x78], send
xor edi, edi
mov qword [rsp + 0x70], rdi
mov byte [rsp + 0x60], dil
cmp qword [rbp - 0x60], 0x10
jb 0x18000462e
mov rcx, qword [rbp - 0x78]
call fcn.18000c5fc
mov qword [rbp - 0x60], send
mov qword [rbp - 0x68], rdi
mov byte [rbp - 0x78], 0
cmp qword [rbp - 0x38], 0x10
jb 0x18000464e
mov rcx, qword [rbp - 0x50]
call fcn.18000c5fc
mov qword [rbp - 0x38], send
mov qword [rbp - 0x40], rdi
mov byte [rbp - 0x50], 0
cmp qword [rbp - 0x10], 0x10
jb 0x18000466e
mov rcx, qword [rbp - 0x28]
call fcn.18000c5fc
mov eax, r13d
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.180146c80
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret