Function at 0x140138170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x180
mov rax, qword [0x14030a100]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor r8d, r8d
lea rax, [rsp + 0xe0]
xor edx, edx
mov qword [rsp + 0x38], rax
test ecx, ecx
je 0x140138288
lea rax, [0x1402f0260]
mov dword [rsp + 0x30], 0x20
mov qword [rsp + 0x28], rax
lea r9, [0x1402f0128]
mov ecx, 1
mov dword [rsp + 0x20], 0x30
call fcn.140137fe0
mov ecx, eax
test eax, eax
jne 0x1401384f8
xorps xmm4, xmm4
lea rbp, [0x140000000]
xorps xmm3, xmm3
xor ebx, ebx
movd xmm2, dword [rbx + rbp + 0x2f0160]
xorps xmm0, xmm0
movd xmm1, dword [rsp + rbx + 0xe0]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rsp + rbx + 0xe4]
orps xmm4, xmm2
punpcklbw xmm1, xmm0
movd xmm2, dword [rbx + rbp + 0x2f0164]
add rbx, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp rbx, 0x80
jl 0x1401381f4
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
test eax, eax
je 0x140138281
mov eax, 0xffffffff
jmp 0x1401384f8
mov eax, ecx
jmp 0x1401384f8
xor ebx, ebx
lea r9, [0x1402f00f8]
mov dword [rsp + 0x30], ebx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x30
call fcn.140137fe0
test eax, eax
jne 0x1401384f8
movaps xmmword [rsp + 0x170], xmm6
lea rbp, [0x140000000]
xorps xmm6, xmm6
xorps xmm4, xmm4
xorps xmm3, xmm3
mov eax, ebx
nop dword [rax + rax]
movd xmm2, dword [rax + rbp + 0x2f01e0]
xorps xmm0, xmm0
movd xmm1, dword [rsp + rax + 0xe0]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rsp + rax + 0xe4]
orps xmm4, xmm2
punpcklbw xmm1, xmm0
movd xmm2, dword [rax + rbp + 0x2f01e4]
add rax, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp rax, 0x80
jl 0x1401382d0
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
test eax, eax
je 0x14013835c
mov eax, 0xffffffff
jmp 0x1401384f0
mov esi, 0xffffffff
mov qword [rsp + 0x190], rdi
lea r9, [0x1402f0118]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov r8d, 0x20
lea rdx, [0x1402f00f8]
lea rcx, [rsp + 0x60]
mov edi, esi
call fcn.140137920
test eax, eax
jne 0x1401383ce
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x60]
call fcn.1401372e0
test eax, eax
jne 0x1401383ce
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x60]
call fcn.1401372e0
test eax, eax
cmove edi, ebx
mov eax, 0x78
lea rcx, [rsp + 0x60]
nop dword [rax + rax]
mov byte [rcx], bl
lea rcx, [rcx + 1]
add eax, 0xffffffff
jne 0x1401383e0
movdqa xmm3, xmm6
lea rax, [rsp + 0x60]
movdqa xmm2, xmm6
mov ecx, recv
nop dword [rax]
movd xmm1, dword [rax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea rax, [rax + 8]
punpcklwd xmm1, xmm0
orps xmm3, xmm1
movd xmm1, dword [rax - 4]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
orps xmm2, xmm1
sub rcx, 1
jne 0x140138400
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd ecx, xmm2
test ecx, ecx
je 0x140138456
mov eax, esi
jmp 0x1401384e8
test edi, edi
jne 0x1401384e6
movdqa xmm3, xmm6
movd xmm2, dword [rbx + rbp + 0x2f01e0]
xorps xmm0, xmm0
movd xmm1, dword [rsp + rbx + 0xe0]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rsp + rbx + 0xe4]
orps xmm6, xmm2
punpcklbw xmm1, xmm0
movd xmm2, dword [rbx + rbp + 0x2f01e4]
add rbx, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp rbx, 0x80
jl 0x140138462
orps xmm3, xmm6
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd ecx, xmm3
test ecx, ecx
cmovne edi, esi
mov eax, edi
mov rdi, qword [rsp + 0x190]
movaps xmm6, xmmword [rsp + 0x170]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14013d5b0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret