Function at 0x140005610
Capabilities:
Connect socket
Encode data using xor
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x280
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x40], rdx
xor ebx, ebx
call qword [sym.imp.SecureEngineSDK64.dll_Ordinal_105]
lea r8d, [rbx + 1]
lea rdx, [0x1402f9154]
mov rcx, rsi
call fcn.1400046b0
mov ecx, 0x202
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400056e5
lea rdx, [rsp + 0x40]
call fcn.1400055d0
movzx ecx, byte [rax + 9]
test cl, cl
je 0x1400056c7
xor byte [rax], 0x38
xor byte [rax + 1], 0x39
xor byte [rax + 2], 0x3a
xor byte [rax + 3], 0x3b
xor byte [rax + 4], 0x3c
xor byte [rax + 5], 0x3d
xor byte [rax + 6], 0x3e
xor byte [rax + 7], 0x3f
xor byte [rax + 8], 0x40
xor cl, 0x41
mov byte [rax + 9], cl
xor r9d, r9d
lea r8, [0x1402f9106]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 1
mov edi, 2
lea r8d, [rdx + 5]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x14035a9c8], rax
cmp rax, 0xffffffffffffffff
jne 0x1400057fd
mov eax, dword [str.XVHY]
mov dword [rsp + 0x30], eax
movzx eax, word [0x1402f91b0]
mov word [rsp + 0x34], ax
mov byte [rsp + 0x30], Ordinal_105
xor byte [rsp + 0x31], 0x39
xor byte [rsp + 0x32], 0x3a
xor byte [rsp + 0x33], 0x3b
xor al, 0x3c
mov byte [rsp + 0x34], al
xor byte [rsp + 0x35], 0x3d
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140005760
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140002ef0
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1400057b2
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x1400057ad
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005ccc
mov rcx, r8
call fcn.140247544
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov rax, r15
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1402474e0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x68]
mov edx, 0xffff
mov r8d, 8
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14000589f
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [str.XVHY]
mov dword [rsp + 0x30], eax
movzx eax, word [0x1402f91b0]
mov word [rsp + 0x34], ax
mov byte [rsp + 0x30], Ordinal_105
xor byte [rsp + 0x31], 0x39
xor byte [rsp + 0x32], 0x3a
xor byte [rsp + 0x33], 0x3b
xor al, 0x3c
mov byte [rsp + 0x34], al
xor byte [rsp + 0x35], 0x3d
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140005890
jmp 0x14000576a
mov ecx, 0x6959
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x6e], ax
mov word [rbp - 0x70], di
lea rcx, [0x140353cd0]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x140353cd0]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x6c], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x70]
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000595f
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [str.XVHY]
mov dword [rsp + 0x30], eax
movzx eax, word [0x1402f91b0]
mov word [rsp + 0x34], ax
mov byte [rsp + 0x30], Ordinal_105
xor byte [rsp + 0x31], 0x39
xor byte [rsp + 0x32], 0x3a
xor byte [rsp + 0x33], 0x3b
xor al, 0x3c
mov byte [rsp + 0x34], al
xor byte [rsp + 0x35], 0x3d
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140005950
jmp 0x14000576a
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14000596c
mov rdx, qword [rsi]
xor r9d, r9d
mov r8d, dword [rsi + 0x10]
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140005b5e
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdx, [rsp + 0x70]
call fcn.140005eb0
mov r10, rax
cmp byte [rax + 0x17], 0
je 0x140005b40
cmp dword [0x140353c80], edi
jl 0x140005b07
movdqa xmm5, xmmword [0x140304160]
movdqa xmm4, xmmword [0x1403042e0]
mov eax, 5
movd xmm6, eax
movdqa xmm7, xmmword [0x1403041d0]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x140304260]
movdqa xmmword [rsp + 0x40], xmm0
mov rcx, r10
mov edx, dword [rsp + 0x40]
nop dword [rax]
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140304200]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
lea eax, [rbx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140304200]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx + 4]
pxor xmm2, xmm0
movd dword [rcx + 4], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x18
jl 0x140005a00
jmp 0x140005b40
mov r8, r10
nop word [rax + rax]
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x38
add cl, bl
xor byte [r8], cl
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x18
jl 0x140005b10
xor r9d, r9d
lea r8, [0x1402f9106]
mov rdx, r10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x60], rbx
mov ecx, 0x401
call fcn.140247500
mov qword [rsp + 0x50], rax
lea rdi, [rax + 0x401]
mov qword [rsp + 0x60], rdi
xor edx, edx
mov r8d, 0x401
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x58], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov rdi, rbx
mov qword [rbp - 0x80], rbx
mov r13d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x78], r13
mov byte [rsp + 0x70], bl
nop dword [rax]
xor r9d, r9d
mov r8d, 0x400
mov rdx, qword [rsp + 0x50]
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_recv]
movsxd r12, eax
test eax, eax
jle 0x140005c4b
mov rcx, r13
sub rcx, rdi
cmp r12, rcx
ja 0x140005c1e
lea rcx, [r12 + rdi]
mov qword [rbp - 0x80], rcx
lea rax, [rsp + 0x70]
cmp r13, 0x10
cmovae rax, qword [rsp + 0x70]
add rdi, rax
mov r8, r12
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + r12], 0
jmp 0x140005c35
mov qword [rsp + 0x20], r12
mov r9, qword [rsp + 0x50]
mov rdx, r12
lea rcx, [rsp + 0x70]
call fcn.140004730
cmp r12d, 0x400
jne 0x140005c51
mov r13, qword [rbp - 0x78]
mov rdi, qword [rbp - 0x80]
jmp 0x140005bc0
jne 0x140005cd3
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.SecureEngineSDK64.dll_Ordinal_505]
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [r15 + 0x10], xmm1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140005778
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005cb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005cb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140247544
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
jmp 0x140005778
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [0x14035a9c8]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdx, [rsp + 0x70]
call fcn.140005ed0
mov r10, rax
cmp byte [rax + 0x1b], 0
je 0x140005e92
cmp dword [0x140353c80], 2
jl 0x140005e5c
movdqa xmm5, xmmword [0x140304160]
movdqa xmm4, xmmword [0x1403042e0]
mov eax, 5
movd xmm6, eax
movdqa xmm7, xmmword [0x1403041d0]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x140304260]
movdqa xmmword [rsp + 0x40], xmm0
mov rcx, r10
mov edx, dword [rsp + 0x40]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140304200]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
lea eax, [rbx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140304200]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx + 4]
pxor xmm2, xmm0
movd dword [rcx + 4], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x18
jl 0x140005d50
cmp eax, 0x1c
jge 0x140005e92
movsxd r8, ebx
add r8, r10
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x38
add cl, bl
xor byte [r8], cl
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x1c
jl 0x140005e62
xor r9d, r9d
lea r8, [0x1402f9106]
mov rdx, r10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3