Function at 0x140047310
Capabilities:
Create thread
Get system information on windows
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x308
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x82
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x328]
mov rax, qword [0x140201180]
xor rax, rbp
mov qword [rbp + 0x2b8], rax
lea rcx, [0x14024c061]
call fcn.1400b51d0
nop
mov dword [rbp + 0x124], reloc.WS2_32.dll_recv
mov qword [rbp + 0x148], 0
mov dword [rbp + 0x184], 0
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop
mov eax, dword [rbp + 0x28]
shl eax, 1
mov rcx, qword [rbp + 0x2e0]
mov dword [rcx + 0xc0], eax
mov rax, qword [rbp + 0x2e0]
cmp dword [rax + 0xc0], 0x10
jb 0x1400473d5
mov rax, qword [rbp + 0x2e0]
mov dword [rax + 0xc0], reloc.WS2_32.dll_recv
lea r8, str._NOTICE_:_IOCP_Thread_Handles_set_to_16
mov edx, 0xa5ff
lea rcx, [0x14022f400]
call fcn.14004c6a0
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov rcx, qword [rbp + 0x2e0]
mov qword [rcx + 0xc8], rax
mov rax, qword [rbp + 0x2e0]
cmp qword [rax + 0xc8], 0
jne 0x140047430
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CreateIoCompletionPort_failed_with_error:__d
mov edx, 0xff
lea rcx, [0x14022f400]
call fcn.14004c6a0
nop
jmp 0x140047b9d
mov dword [rbp + 0x1a4], 0
jmp 0x14004744a
mov eax, dword [rbp + 0x1a4]
inc eax
mov dword [rbp + 0x1a4], eax
mov rax, qword [rbp + 0x2e0]
mov eax, dword [rax + 0xc0]
cmp dword [rbp + 0x1a4], eax
jae 0x1400474f1
lea rax, [rbp + 0x54]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0x2e0]
lea r8, [0x1400487b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0
jne 0x1400474c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CreateThread___failed_with_error__d
mov edx, 0xff
lea rcx, [0x14022f400]
call fcn.14004c6a0
nop
jmp 0x140047b9d
movsxd rax, dword [rbp + 0x1a4]
mov rcx, qword [rbp + 0x2e0]
mov rdx, qword [rbp + 0x1c8]
mov qword [rcx + rax*8 + 0x18], rdx
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14004743c
mov rcx, qword [rbp + 0x2e0]
call fcn.1400462d0
movzx eax, al
test eax, eax
jne 0x140047509
jmp 0x140047b9d
xor eax, eax
cmp eax, 1
je 0x140047b9d
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x124]
lea rdx, [rbp + 0xd8]
mov rax, qword [rbp + 0x2e0]
mov rcx, qword [rax + 0xd0]
call qword [sym.imp.WS2_32.dll_WSAAccept]
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0xffffffffffffffff
jne 0x1400475a2
mov rax, qword [rbp + 0x2e0]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, str.WSAAccept___failed_with_error__d
mov edx, 0xff
lea rcx, [0x14022f400]
call fcn.14004c6a0
nop
mov rax, qword [rbp + 0x2e0]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x140047509
mov rax, qword [rbp + 0x2e0]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8d, 4
lea rdx, [rbp + 0xdc]
lea rcx, [rbp + 0x104]
call fcn.14019ead0
nop
mov ecx, dword [rbp + 0x104]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
mov rcx, qword [rbp + 0x78]
call fcn.140044e10
cwde
mov dword [rbp + 0xb4], eax
cmp dword [rbp + 0xb4], 0xffffffff
jne 0x140047622
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, qword [rbp + 0x2e0]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x140047509
mov r9d, 1
mov r8d, dword [rbp + 0xb4]
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x2e0]
call fcn.1400487f0
movzx eax, al
test eax, eax
jne 0x14004769e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0xb4]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0x78]
lea r8, str.error_L1:__d__d_CreateIoCompletionPort_failed_with_error__d
mov edx, 0xff
lea rcx, [0x14022f400]
call fcn.14004c6a0
nop
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, qword [rbp + 0x2e0]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x140047509
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
lea rax, [rax + rcx + 0x10]
mov r8d, 0x20
xor edx, edx
mov rcx, rax
call fcn.14019f170
nop
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 1
lea rax, [rax + rcx + 0x10]
mov r8d, 0x20
xor edx, edx
mov rcx, rax
call fcn.14019f170
nop
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
lea rax, [rax + rcx + 0x40]
movsxd rcx, dword [rbp + 0xb4]
imul rcx, rcx, 0x48
lea rdx, [0x1402030f0]
mov rcx, qword [rdx + rcx + 0x30]
mov edx, 0x8048
imul rdx, rdx, 0
mov qword [rcx + rdx + 0x38], rax
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
mov dword [rax + rcx + 0x30], 0x4000
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
mov dword [rax + rcx + 0x8044], 0
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
mov dword [rax + rcx + 0x8048], 0
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
mov dword [rax + rcx + 0x8050], 0
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
mov dword [rax + rcx + 0x8040], 0
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
mov dword [rax + rcx + 0x804c], 0
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
lea rax, [rax + rcx + 0x40]
movsxd rcx, dword [rbp + 0xb4]
imul rcx, rcx, 0x48
lea rdx, [0x1402030f0]
mov rcx, qword [rdx + rcx + 0x30]
mov edx, 0x8048
imul rdx, rdx, 1
mov qword [rcx + rdx + 0x38], rax
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 1
mov dword [rax + rcx + 0x30], 0x4000
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 1
mov dword [rax + rcx + 0x8044], 0
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 1
mov dword [rax + rcx + 0x8048], 0
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 1
mov dword [rax + rcx + 0x8050], 0
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 1
mov dword [rax + rcx + 0x8040], 0
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 1
mov dword [rax + rcx + 0x804c], 1
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov rcx, qword [rbp + 0x78]
mov qword [rax], rcx
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, dword [rbp + 0xb4]
mov dword [rax + 8], ecx
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
lea rax, [rax + rcx + 0x10]
movsxd rcx, dword [rbp + 0xb4]
imul rcx, rcx, 0x48
lea rdx, [0x1402030f0]
mov rcx, qword [rdx + rcx + 0x30]
mov edx, 0x8048
imul rdx, rdx, 0
lea rcx, [rcx + rdx + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x184]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x164]
mov r8d, 1
mov rdx, rcx
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0xffffffff
jne 0x140047b0c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x140047b0c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, str.error_L1:_WSARecv___failed_with_error__d
mov edx, 0xff
lea rcx, [0x14022f400]
call fcn.14004c6a0
nop
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
mov dword [rax + rcx + 0x8050], 4
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
xor r8d, r8d
mov rdx, qword [rcx + rax + 0x30]
mov rcx, qword [rbp + 0x2e0]
call fcn.140046120
nop
mov rax, qword [rbp + 0x2e0]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x140047509
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov ecx, 0x8048
imul rcx, rcx, 0
mov dword [rax + rcx + 0x8050], 1
movsxd rax, dword [rbp + 0xb4]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
mov rax, qword [rcx + rax + 0x30]
mov eax, dword [rax + 0x100a0]
inc eax
movsxd rcx, dword [rbp + 0xb4]
imul rcx, rcx, 0x48
lea rdx, [0x1402030f0]
mov rcx, qword [rdx + rcx + 0x30]
mov dword [rcx + 0x100a0], eax
mov rax, qword [rbp + 0x2e0]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov dl, 1
mov ecx, dword [rbp + 0xb4]
call fcn.140049c90
nop
jmp 0x140047509
mov rax, qword [rbp + 0x2e0]
cmp qword [rax + 0xc8], 0
je 0x140047bfc
mov dword [rbp + 0x1e4], 0
jmp 0x140047bc8
mov eax, dword [rbp + 0x1e4]
inc eax
mov dword [rbp + 0x1e4], eax
mov rax, qword [rbp + 0x2e0]
mov eax, dword [rax + 0xc0]
cmp dword [rbp + 0x1e4], eax
jae 0x140047bfc
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rbp + 0x2e0]
mov rcx, qword [rax + 0xc8]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
nop
jmp 0x140047bba
mov rax, qword [rbp + 0x2e0]
cmp qword [rax + 0xc8], 0
je 0x140047c34
mov rax, qword [rbp + 0x2e0]
mov rcx, qword [rax + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x2e0]
mov qword [rax + 0xc8], 0
mov rax, qword [rbp + 0x2e0]
cmp qword [rax + 0xd0], 0xffffffffffffffff
je 0x140047c6c
mov rax, qword [rbp + 0x2e0]
mov rcx, qword [rax + 0xd0]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, qword [rbp + 0x2e0]
mov qword [rax + 0xd0], 0xffffffffffffffff
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1401b4f50]
call fcn.1400b4fa0
mov rax, rdi
mov rcx, qword [rbp + 0x2b8]
xor rcx, rbp
call fcn.1400b5470
lea rsp, [rbp + 0x2c8]
pop rdi
pop rbp
ret