Function at 0x200007100
Capabilities:
Create thread
Receive data
Receive data on socket
Terminate thread

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x170
cmp dword [0x20001b540], 1
mov r12, r9
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
jne 0x2000071b4
lea rax, [rsp + 0x30]
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea r8, [0x2000070a0]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
mov dword [0x20001d240], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0x493e0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x20000719e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
add rsp, 0x170
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
mov eax, dword [0x20001d240]
add rsp, 0x170
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
cmp dword [rcx + 0x430], 1
jne 0x20000739a
mov qword [rsp + 0x1a8], rsi
mov qword [rsp + 0x1b0], r13
lea r13, [rcx + 0x434]
mov r8d, dword [r13]
xor ebx, ebx
test r8d, r8d
jns 0x2000072ea
mov rax, qword [rcx + 8]
mov qword [rsp + 0x1a0], rbp
mov esi, ebx
mov rcx, qword [rax + 0x10]
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rcx
nop word [rax + rax]
movsxd rax, esi
xor r9d, r9d
lea rdx, [rsp + rax + 0x60]
lea r8d, [r9 + 1]
call qword [0x20001e230]
test eax, eax
jle 0x200007251
cmp byte [rbp], 0xa
je 0x20000724a
mov rcx, qword [rsp + 0x30]
inc esi
inc rbp
cmp esi, 0x100
jl 0x200007210
mov byte [rsp + 0x160], bl
jmp 0x200007251
movsxd rax, esi
mov byte [rsp + rax + 0x61], bl
lea rdx, [0x200017aac]
lea rcx, [rsp + 0x60]
mov r8, r13
call fcn.2000093c8
mov r8d, dword [r13]
mov rbp, qword [rsp + 0x1a0]
test r8d, r8d
jne 0x2000072ea
mov rax, qword [rdi + 8]
lea rdi, [rsp + 0x60]
mov rsi, qword [rax + 0x10]
nop word [rax + rax]
movsxd rax, ebx
xor r9d, r9d
mov rcx, rsi
lea rdx, [rsp + rax + 0x60]
lea r8d, [r9 + 1]
call qword [0x20001e230]
test eax, eax
jle 0x2000072c8
cmp byte [rdi], 0xa
je 0x2000072c0
inc ebx
inc rdi
cmp ebx, 0x100
jl 0x200007290
jmp 0x2000072c8
movsxd rax, ebx
mov byte [rsp + rax + 0x61], 0
xor eax, eax
mov rsi, qword [rsp + 0x1a8]
mov r13, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
test r8d, r8d
jle 0x2000072c8
cmp r8d, r14d
jle 0x20000730d
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, r14d
mov rcx, qword [rcx + 0x10]
mov rdx, r15
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x200007321
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov rdx, r15
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x2000072c8
mov dword [r12], eax
sub dword [r13], eax
jne 0x200007390
mov rax, qword [rdi + 8]
lea rdi, [rsp + 0x60]
mov rsi, qword [rax + 0x10]
nop dword [rax]
movsxd rax, ebx
xor r9d, r9d
mov rcx, rsi
lea rdx, [rsp + rax + 0x60]
lea r8d, [r9 + 1]
call qword [0x20001e230]
test eax, eax
jle 0x200007388
cmp byte [rdi], 0xa
je 0x200007380
inc ebx
inc rdi
cmp ebx, 0x100
jl 0x200007340
mov dword [r13], 0xffffffff
mov eax, 1
jmp 0x2000072ca
movsxd rcx, ebx
mov byte [rsp + rcx + 0x61], 0
mov dword [r13], 0xffffffff
mov eax, 1
jmp 0x2000072ca
mov eax, dword [rcx + 0x434]
test eax, eax
jle 0x2000073f7
cmp eax, r8d
jle 0x2000073bc
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x2000073d0
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov r8d, eax
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x20000718c
mov dword [r12], eax
sub dword [rdi + 0x434], eax
mov eax, 1
add rsp, 0x170
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
test eax, eax
jns 0x20000742d
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x20000718c
mov dword [r12], eax
mov eax, 1
add rsp, 0x170
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
xor ebx, ebx
mov dword [r9], ebx
lea eax, [rbx + 1]
add rsp, 0x170
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret