Function at 0x1800e49a0
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]
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
call qword [rax + 0x20]
test al, al
jne 0x1800e49d6
mov rcx, r14
call fcn.1800a53c0
mov qword [rsp + 0x50], rsi
cmp rbp, 4
jb 0x1800e4d0f
mov rcx, rbp
mov qword [rsp + 0x48], r12
shr rcx, 2
imul rax, rcx, 0xfffffffffffffffc
mov qword [rsp + 0x40], r13
add rbp, rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x28], rcx
nop
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 ebp, dword [rdi + 0x18]
mov rdi, qword [r14 + 0x20]
mov r9, qword [r14 + 8]
bswap eax
mov dword [rsp + 0x20], eax
mov r14d, eax
bswap r10d
bswap r15d
bswap r11d
bswap r12d
bswap esi
bswap r13d
bswap ebp
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 ebp, 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, ebp
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r13d, edx
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]
mov eax, r15d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r14d, 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, r14d
shr eax, 0x10
xor esi, edx
movzx ecx, al
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]
xor ebp, edx
cmp rbx, 1
jne 0x1800e4a60
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov dword [rsp + 0x20], r14d
add rdi, 0x20
mov r14, qword [rsp + 0x80]
mov qword [rsp + 0x88], rdi
mov rax, qword [r14 + 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, ebp
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 0x1800e4a10
mov r15, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x98]
test rbp, rbp
je 0x1800e4dec
sub rdi, rbx
nop dword [rax + rax]
mov eax, dword [rdi + rbx]
mov r11d, reloc.WS2_32.dll_recvfrom
mov r9d, dword [rdi + rbx + 4]
mov rsi, qword [r14 + 0x20]
mov r10, qword [r14 + 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 0x1800e4d40
xor r9d, dword [rsi]
mov edx, dword [rsi + 4]
xor edx, eax
bswap edx
bswap r9d
mov dword [rbx + 4], edx
mov dword [rbx], r9d
add rbx, 8
sub rbp, 1
jne 0x1800e4d20
mov rsi, qword [rsp + 0x50]
add rsp, 0x58
pop r14
pop rdi
pop rbp
pop rbx
ret