Function at 0x1400050e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [rbp - 0x69], rcx
lea r9, [rbp - 0x19]
lea r8, [rdx + 2]
mov r10d, reloc.WS2_32.dll_recv
nop word [rax + rax]
movzx eax, byte [r8 - 1]
movzx edx, byte [r8 - 2]
lea r9, [r9 + 4]
shl edx, 8
lea r8, [r8 + 4]
or edx, eax
movzx eax, byte [r8 - 4]
shl edx, 8
or edx, eax
movzx eax, byte [r8 - 3]
shl edx, 8
or edx, eax
mov dword [r9 - 4], edx
dec r10
jne 0x140005130
mov rax, qword [rcx]
mov esi, dword [rcx + 0x20]
mov r14d, dword [rcx + 0x24]
mov r15d, dword [rcx + 0x28]
mov r12d, dword [rcx + 0x2c]
mov qword [rbp - 0x59], rax
mov rax, qword [rcx + 8]
xor esi, 0x243f6a88
xor r14d, 0x85a308d3
mov qword [rbp - 0x51], rax
mov rax, qword [rcx + 0x10]
xor r15d, 0x13198a2e
mov qword [rbp - 0x49], rax
mov rax, qword [rcx + 0x18]
xor r12d, 0x3707344
cmp dword [rcx + 0x3c], 0
mov ebx, 0x299f31d0
mov r10d, 0xa4093822
mov qword [rbp - 0x41], rax
mov r13d, 0x82efa98
mov r11d, 0xec4e6c89
jne 0x1400051d9
xor r10d, dword [rcx + 0x30]
xor ebx, dword [rcx + 0x30]
xor r13d, dword [rcx + 0x34]
xor r11d, dword [rcx + 0x34]
mov eax, dword [rbp - 0x41]
mov edx, dword [rbp - 0x45]
mov r9d, dword [rbp - 0x4d]
mov ecx, dword [rbp - 0x3d]
mov edi, dword [rbp - 0x59]
mov dword [rsp + 8], eax
mov eax, dword [rbp - 0x51]
mov dword [rsp + 0x18], edx
mov edx, dword [rbp - 0x49]
mov dword [rsp + 4], r9d
mov r9d, dword [rbp - 0x55]
lea r8, [0x1400ca5e0]
mov dword [rsp + 0x10], edx
mov dword [rsp + 0xc], eax
mov qword [rbp - 0x79], r8
mov dword [rsp], r9d
mov qword [rbp - 0x71], reloc.WS2_32.dll_ntohl
nop
movzx eax, byte [r8 + 1]
lea r9, [rax*4]
movzx eax, byte [r8]
lea r8, [rax*4]
lea rax, [0x1400ca5a0]
mov eax, dword [r9 + rax]
xor eax, dword [rbp + r8 - 0x19]
add eax, edx
add edi, eax
mov eax, dword [rbp + r9 - 0x19]
lea r9, [0x1400ca5a0]
xor eax, dword [r8 + r9]
mov edx, edi
xor edx, r10d
mov r10d, dword [rsp + 0x10]
rol edx, 0x10
add esi, edx
xor r10d, esi
ror r10d, 0xc
add eax, r10d
add edi, eax
mov dword [rsp + 0x14], edi
xor edi, edx
mov rdx, qword [rbp - 0x79]
movzx eax, byte [rdx + 3]
ror edi, 8
lea r9, [rax*4]
movzx eax, byte [rdx + 2]
lea rdx, [0x1400ca5a0]
lea r8, [rax*4]
add esi, edi
mov eax, dword [rbp + r8 - 0x19]
xor r10d, esi
xor eax, dword [r9 + rdx]
mov edx, dword [rsp]
ror r10d, 7
mov dword [rsp + 0x10], r10d
mov r10d, dword [rsp + 0x18]
add eax, r10d
add edx, eax
lea rax, [0x1400ca5a0]
mov eax, dword [r8 + rax]
mov dword [rsp], edx
xor edx, ebx
xor eax, dword [rbp + r9 - 0x19]
mov r9d, dword [rsp]
rol edx, 0x10
add r14d, edx
xor r10d, r14d
ror r10d, 0xc
add eax, r10d
add r9d, eax
mov ebx, r9d
mov dword [rsp], r9d
xor ebx, edx
mov rdx, qword [rbp - 0x79]
movzx eax, byte [rdx + 5]
lea r9, [rax*4]
movzx eax, byte [rdx + 4]
lea rdx, [0x1400ca5a0]
ror ebx, 8
lea r8, [rax*4]
mov eax, dword [rbp + r8 - 0x19]
add r14d, ebx
xor eax, dword [r9 + rdx]
xor r10d, r14d
add eax, dword [rsp + 8]
ror r10d, 7
mov dword [rsp + 0x18], r10d
mov r10d, dword [rsp + 0xc]
add r10d, eax
lea rax, [0x1400ca5a0]
mov eax, dword [r8 + rax]
mov edx, r10d
xor edx, r13d
mov r13d, dword [rsp + 8]
rol edx, 0x10
add r15d, edx
xor r13d, r15d
ror r13d, 0xc
xor eax, dword [rbp + r9 - 0x19]
add eax, r13d
add r10d, eax
mov dword [rsp + 0xc], r10d
xor r10d, edx
lea rdx, [0x1400ca5a0]
ror r10d, 8
add r15d, r10d
xor r13d, r15d
ror r13d, 7
mov dword [rsp + 8], r13d
mov r13, qword [rbp - 0x79]
movzx eax, byte [r13 + 7]
lea r9, [rax*4]
movzx eax, byte [r13 + 6]
lea r8, [rax*4]
mov eax, dword [rbp + r8 - 0x19]
xor eax, dword [r9 + rdx]
mov edx, dword [rsp + 4]
add eax, ecx
add edx, eax
lea rax, [0x1400ca5a0]
mov eax, dword [r8 + rax]
mov dword [rsp + 4], edx
xor edx, r11d
xor eax, dword [rbp + r9 - 0x19]
mov r9d, dword [rsp + 4]
rol edx, 0x10
add r12d, edx
xor ecx, r12d
ror ecx, 0xc
add eax, ecx
add r9d, eax
movzx eax, byte [r13 + 0xf]
mov dword [rsp + 4], r9d
mov r11d, r9d
lea r9, [rax*4]
movzx eax, byte [r13 + 0xe]
mov r13d, dword [rsp + 4]
xor r11d, edx
lea rdx, [rax*4]
ror r11d, 8
lea rax, [0x1400ca5a0]
mov eax, dword [r9 + rax]
add r12d, r11d
xor eax, dword [rbp + rdx - 0x19]
xor ecx, r12d
add eax, dword [rsp + 0x10]
ror ecx, 7
add r13d, eax
mov eax, dword [rbp + r9 - 0x19]
lea r9, [0x1400ca5a0]
xor eax, dword [rdx + r9]
mov r8d, r13d
lea rdx, [0x1400ca5a0]
xor r8d, r10d
mov r10d, dword [rsp + 0x10]
rol r8d, 0x10
add r14d, r8d
xor r10d, r14d
ror r10d, 0xc
add eax, r10d
add r13d, eax
mov dword [rsp + 4], r13d
mov dword [rbp - 0x4d], r13d
xor r13d, r8d
ror r13d, 8
add r14d, r13d
xor r10d, r14d
ror r10d, 7
mov dword [rsp + 0x10], r10d
mov dword [rbp - 0x49], r10d
mov r10, qword [rbp - 0x79]
movzx eax, byte [r10 + 0xd]
lea r9, [rax*4]
movzx eax, byte [r10 + 0xc]
lea r8, [rax*4]
mov eax, dword [rbp + r8 - 0x19]
xor eax, dword [r9 + rdx]
mov edx, dword [rsp + 0xc]
add eax, ecx
add edx, eax
mov dword [rsp + 0xc], edx
xor edx, ebx
lea rax, [0x1400ca5a0]
mov eax, dword [r8 + rax]
mov r8d, dword [rsp + 0xc]
rol edx, 0x10
xor eax, dword [rbp + r9 - 0x19]
add esi, edx
xor ecx, esi
ror ecx, 0xc
add eax, ecx
add r8d, eax
movzx eax, byte [r10 + 8]
lea r9, [rax*4]
movzx eax, byte [r10 + 9]
mov r10d, dword [rsp + 0x18]
mov ebx, r8d
mov dword [rsp + 0xc], r8d
mov dword [rbp - 0x51], r8d
lea r8, [rax*4]
xor ebx, edx
mov edx, dword [rsp + 0x14]
lea rax, [0x1400ca5a0]
mov eax, dword [r8 + rax]
ror ebx, 8
xor eax, dword [rbp + r9 - 0x19]
add esi, ebx
add eax, r10d
xor ecx, esi
add edx, eax
mov eax, dword [rbp + r8 - 0x19]
lea r8, [0x1400ca5a0]
xor eax, dword [r9 + r8]
mov dword [rsp + 0x14], edx
mov r8d, dword [rsp + 0x14]
ror ecx, 7
xor edx, r11d
rol edx, 0x10
add r15d, edx
xor r10d, r15d
ror r10d, 0xc
add eax, r10d
add r8d, eax
mov r11d, r8d
mov dword [rsp + 0x14], r8d
mov dword [rbp - 0x59], r8d
xor r11d, edx
mov rdx, qword [rbp - 0x79]
movzx eax, byte [rdx + 0xb]
lea r9, [rax*4]
movzx eax, byte [rdx + 0xa]
ror r11d, 8
lea r8, [rax*4]
lea rdx, [0x1400ca5a0]
add r15d, r11d
mov eax, dword [rbp + r8 - 0x19]
xor r10d, r15d
xor eax, dword [r9 + rdx]
ror r10d, 7
add eax, dword [rsp + 8]
mov dword [rsp + 0x18], r10d
mov dword [rbp - 0x45], r10d
mov r10d, dword [rsp]
add r10d, eax
lea rax, [0x1400ca5a0]
mov eax, dword [r8 + rax]
mov edx, r10d
xor eax, dword [rbp + r9 - 0x19]
xor edx, edi
mov edi, dword [rsp + 8]
rol edx, 0x10
add r12d, edx
xor edi, r12d
ror edi, 0xc
add eax, edi
add r10d, eax
mov dword [rsp], r10d
mov dword [rbp - 0x55], r10d
xor r10d, edx
ror r10d, 8
add r12d, r10d
mov r8, qword [rbp - 0x79]
mov edx, dword [rsp + 0x10]
xor edi, r12d
ror edi, 7
add r8, 0x10
dec qword [rbp - 0x71]
mov dword [rsp + 8], edi
mov dword [rbp - 0x41], edi
mov edi, dword [rsp + 0x14]
mov qword [rbp - 0x79], r8
jne 0x140005220
mov r8d, 2
mov dword [rbp - 0x29], r10d
mov dword [rbp - 0x3d], ecx
mov rcx, qword [rbp - 0x69]
mov dword [rbp - 0x39], esi
mov dword [rbp - 0x35], r14d
lea r10d, [r8 + 2]
mov dword [rbp - 0x31], r15d
mov dword [rbp - 0x2d], r12d
mov dword [rbp - 0x25], ebx
mov dword [rbp - 0x21], r13d
mov dword [rbp - 0x1d], r11d
lea r9, [rbp - 0x55]
nop dword [rax + rax]
lea rax, [r8 - 2]
lea r9, [r9 + 0x10]
and eax, 7
lea rdx, [rcx + rax*4]
mov eax, dword [r9 - 0x14]
xor dword [rdx], eax
lea rax, [r8 - 1]
and eax, 7
lea rdx, [rcx + rax*4]
mov eax, dword [r9 - 0x10]
xor dword [rdx], eax
mov rax, r8
and eax, 7
lea rdx, [rcx + rax*4]
mov eax, dword [r9 - 0xc]
xor dword [rdx], eax
lea rax, [r8 + 1]
add r8, 4
and eax, 7
lea rdx, [rcx + rax*4]
mov eax, dword [r9 - 8]
xor dword [rdx], eax
dec r10
jne 0x140005670
mov eax, dword [rcx + 0x20]
xor dword [rcx], eax
mov eax, dword [rcx + 0x24]
xor dword [rcx + 4], eax
mov eax, dword [rcx + 0x28]
xor dword [rcx + 8], eax
mov eax, dword [rcx + 0x2c]
xor dword [rcx + 0xc], eax
mov eax, dword [rcx + 0x20]
xor dword [rcx + 0x10], eax
mov eax, dword [rcx + 0x24]
xor dword [rcx + 0x14], eax
mov eax, dword [rcx + 0x28]
xor dword [rcx + 0x18], eax
mov eax, dword [rcx + 0x2c]
xor dword [rcx + 0x1c], eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140084a30
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret