Function at 0x140005830
Capabilities:
Create thread
Encode data using xor
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400680a0]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ecx, 0x202
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140005bbf
xor esi, esi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], sil
mov dword [rsp + 0x30], 0x1e1a181c
mov dword [rsp + 0x34], 0x565c1f02
mov word [rsp + 0x38], 0x40
mov byte [rsp + 0x3a], 1
mov ecx, esi
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx + 0x2c]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x1400058c0
mov byte [rsp + 0x3a], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdi, rax
test rax, rax
jne 0x140005a49
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140005a85
mov qword [rsp + 0x28], rsi
xor r9d, r9d
lea r8, [0x140005810]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
cmp eax, 0x2af9
jne 0x140005974
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, [0x140068e00]
call fcn.14000b960
mov r8, rax
movdqa xmm0, xmmword [0x14005f730]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xdd8483d4
mov dword [rsp + 0x44], 0xaff78b8e
mov word [rsp + 0x48], 0x100
lea rcx, [rsp + 0x30]
call fcn.140005c10
lea r9d, [rdi + 0x10]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0x2afc
jne 0x1400059d5
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, [0x140068e00]
call fcn.14000b960
mov r8, rax
movdqa xmm0, xmmword [0x14005f740]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x14005f240]
movdqu xmmword [rsp + 0x60], xmm1
mov byte [rsp + 0x70], 1
lea rcx, [rsp + 0x50]
call fcn.140005c40
mov r9d, 0x10
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, [0x140068e00]
call fcn.14000b960
mov r8, rax
movdqa xmm0, xmmword [0x14005f6c0]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x14005f4c0]
movdqu xmmword [rsp + 0x60], xmm1
mov dword [rsp + 0x70], 0xa6ec988d
mov dword [rsp + 0x74], 0xe786ed9d
mov dword [rsp + 0x78], 0xe38490ea
mov word [rsp + 0x7c], 0x100
lea rcx, [rsp + 0x50]
call fcn.140005c70
mov r9d, 0x10
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x140005a85
mov rbx, rsi
nop dword [rax + rax]
lea rbx, [rbx + 1]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
mov qword [0x14006b398], rax
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + rbx*8]
test rcx, rcx
jne 0x140005a60
jmp 0x140005a8c
mov rdx, qword [0x14006b398]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x140005a96
lea rcx, [rbp - 0x80]
call fcn.1400046a0
movdqa xmm0, xmmword [0x14005f210]
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x40], 1
mov rcx, rsi
nop
lea eax, [rcx + 0x2c]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0xf
jb 0x140005ac0
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 0xf
lea rax, [rsp + 0x30]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140005af0
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400046a0
lea rdx, [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
cmp rsi, 0x10
setae r15b
mov rdi, qword [rsp + 0x50]
cmovae rdx, rdi
lea rcx, [rbp - 0x80]
mov r14, qword [rbp - 0x68]
cmp r14, 0x10
setae r12b
mov rbx, qword [rbp - 0x80]
cmovae rcx, rbx
mov r8, qword [rbp - 0x70]
cmp r8, qword [rsp + 0x60]
jne 0x140005bf5
call fcn.140024f90
test eax, eax
jne 0x140005bf5
test r15b, r15b
je 0x140005b8d
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140005b84
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005bfd
mov rcx, rdi
call fcn.140022660
nop
test r12b, r12b
je 0x140005bbf
lea rdx, [r14 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140005bb7
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005bef
mov rcx, rbx
call fcn.140022660
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140022640
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140031a6c
nop
xor ecx, ecx
call fcn.140028c84
int3
call fcn.140031a6c
int3