Function at 0x140082190
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r14
sub rsp, 0x58
mov rax, qword [rcx + 0x10]
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
cmp qword [rcx + 8], rax
jne 0x1400821c3
call fcn.140041540
mov qword [rsp + 0x50], rsi
cmp r14, 4
jb 0x140082500
mov rcx, r14
mov qword [rsp + 0x48], r12
shr rcx, 2
imul rax, rcx, 0xfffffffffffffffc
mov qword [rsp + 0x40], r13
add r14, rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x28], rcx
nop dword [rax]
mov eax, dword [rdi + 0x1c]
mov ebx, reloc.WS2_32.dll_recvfrom
mov r10d, dword [rdi]
mov r15d, dword [rdi + 4]
mov r11d, dword [rdi + 8]
mov r12d, dword [rdi + 0xc]
mov esi, dword [rdi + 0x10]
mov r13d, dword [rdi + 0x14]
mov r14d, dword [rdi + 0x18]
mov rdi, qword [rbp + 0x20]
mov r9, qword [rbp + 8]
bswap eax
mov dword [rsp + 0x20], eax
mov ebp, eax
bswap r10d
bswap r15d
bswap r11d
bswap r12d
bswap esi
bswap r13d
bswap r14d
nop word [rax + rax]
mov eax, dword [rdi + rbx*4]
xor r10d, eax
xor r11d, eax
mov r8d, dword [rdi + rbx*4 - 4]
xor esi, eax
xor r14d, eax
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r11d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r15d, edx
mov eax, r11d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r11d
shr eax, 8
movzx ecx, al
movzx eax, r11b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, esi
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r12d, edx
mov eax, esi
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, esi
shr eax, 8
movzx ecx, al
movzx eax, sil
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r14d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r13d, edx
mov eax, r14d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r14d
shr eax, 8
movzx ecx, al
movzx eax, r14b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r15d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor ebp, edx
mov eax, r15d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r15d
shr eax, 8
movzx ecx, al
movzx eax, r15b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r12d
xor r10d, edx
shr eax, 0x10
sub rbx, 2
movzx ecx, al
mov eax, r12d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r12d
shr eax, 8
movzx ecx, al
movzx eax, r12b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r13d
shr eax, 0x10
xor r11d, edx
movzx ecx, al
mov eax, r13d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r13d
shr eax, 8
movzx ecx, al
movzx eax, r13b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, ebp
shr eax, 0x10
xor esi, edx
movzx ecx, al
mov eax, ebp
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, ebp
shr eax, 8
movzx ecx, al
movzx eax, bpl
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
xor r14d, edx
cmp rbx, 1
jne 0x140082250
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov dword [rsp + 0x20], ebp
add rdi, 0x20
mov rbp, qword [rsp + 0x80]
mov qword [rsp + 0x88], rdi
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 4]
mov ecx, dword [rax]
mov eax, ecx
xor eax, r15d
bswap eax
mov dword [rbx], eax
mov eax, edx
xor eax, r10d
bswap eax
mov dword [rbx + 4], eax
mov eax, ecx
xor eax, r12d
bswap eax
mov dword [rbx + 8], eax
mov eax, edx
xor eax, r11d
bswap eax
mov dword [rbx + 0xc], eax
mov eax, ecx
xor ecx, dword [rsp + 0x20]
xor eax, r13d
bswap eax
mov dword [rbx + 0x10], eax
mov eax, edx
xor eax, esi
xor edx, r14d
bswap eax
bswap ecx
bswap edx
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x18], ecx
mov dword [rbx + 0x1c], edx
add rbx, 0x20
sub qword [rsp + 0x28], 1
mov qword [rsp + 0x90], rbx
jne 0x140082200
mov r14, qword [rsp + 0x98]
mov r15, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
test r14, r14
je 0x1400825d9
sub rdi, rbx
nop dword [rax]
mov eax, dword [rdi + rbx]
mov r11d, reloc.WS2_32.dll_recvfrom
mov r9d, dword [rdi + rbx + 4]
mov rsi, qword [rbp + 0x20]
mov r10, qword [rbp + 8]
bswap eax
bswap r9d
nop dword [rax + rax]
xor eax, dword [rsi + r11*4]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [r10 + rdx*4 + 0x400]
add r8d, dword [r10 + rcx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [r10 + rdx*4 + 0x800]
add r8d, dword [r10 + rcx*4 + 0xc00]
xor r8d, dword [rsi + r11*4 - 4]
sub r11, 2
xor r9d, r8d
mov ecx, r9d
shr ecx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 0x18
mov r8d, dword [r10 + rdx*4 + 0x400]
add r8d, dword [r10 + rcx*4]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
xor r8d, dword [r10 + rdx*4 + 0x800]
add r8d, dword [r10 + rcx*4 + 0xc00]
xor eax, r8d
cmp r11, 1
jne 0x140082530
xor eax, dword [rsi + 4]
xor r9d, dword [rsi]
bswap r9d
bswap eax
mov dword [rbx], r9d
mov dword [rbx + 4], eax
add rbx, 8
sub r14, r11
jne 0x140082510
mov rsi, qword [rsp + 0x50]
add rsp, 0x58
pop r14
pop rdi
pop rbp
pop rbx
ret