Function at 0x1800414a8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rdi, qword [r8]
mov r12, r8
xor r8d, r8d
mov r15, r9
mov r14, rdx
mov rbx, rcx
test rdi, rdi
je 0x18004178f
mov rsi, qword [r9]
test rsi, rsi
je 0x18004178f
mov eax, dword [rdi + 0x70]
mov dword [rbp - 0x48], eax
cmp eax, 8
jl 0x18004150a
call fcn.180034d4c
mov dword [r14], 7
jmp 0x18004179b
add rdi, 0x50
add rsi, 0x50
cmp eax, 1
jne 0x180041563
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
mov qword [rbp - 0x40], r8
jb 0x180041528
mov rcx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rdx, rdi
add r8, rcx
cmp qword [rdi + 0x18], 0x10
jb 0x18004153c
mov rdx, qword [rdi]
lea rcx, [rbp - 0x40]
call fcn.1800141f4
xor r8d, r8d
test al, al
je 0x180041552
cmp dword [rbp - 0x40], r8d
je 0x180041563
call fcn.180034d4c
mov dword [r14], 5
jmp 0x18004179b
mov rax, qword [r12]
mov r13b, byte [rbx + 9]
mov al, byte [rax + 0x75]
mov byte [rbp + 0x40], al
test r13b, r13b
jne 0x180041589
mov rcx, qword [rbx + 0x98]
call fcn.180021968
mov ebx, eax
xor r8d, r8d
jmp 0x18004158c
mov ebx, r8d
mov rdx, qword [rdi + 0x10]
lea rcx, [rsi + 0x10]
mov qword [rbp - 0x38], rcx
cmp rdx, qword [rcx]
ja 0x1800415b3
cmp qword [rsi + 0x18], 0x10
mov rax, rsi
jb 0x1800415aa
mov rax, qword [rsi]
mov qword [rcx], rdx
mov byte [rax + rdx], r8b
jmp 0x1800415c4
sub rdx, qword [rcx]
xor r8d, r8d
mov rcx, rsi
call fcn.18002a1d4
xor r8d, r8d
test r13b, r13b
jne 0x180041618
cmp qword [rsi + 0x18], 0x10
mov dword [rbp - 0x50], ebx
jb 0x1800415d6
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x1800415e3
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
add rax, rcx
cmp qword [rdi + 0x18], 0x10
jb 0x1800415f4
mov rdi, qword [rdi]
mov rdx, r8
cmp rdi, rax
je 0x180041651
sub rsi, rdi
mov cl, byte [rbp + rdx - 0x50]
xor cl, byte [rdi]
inc rdx
mov byte [rsi + rdi], cl
and edx, 3
inc rdi
cmp rdi, rax
jne 0x1800415ff
jmp 0x180041651
cmp qword [rsi + 0x18], 0x10
jb 0x180041622
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x18004162f
mov rcx, qword [rdi]
mov r8, qword [rdi + 0x10]
add r8, rcx
cmp qword [rdi + 0x18], 0x10
jb 0x180041640
mov rdi, qword [rdi]
sub r8, rdi
mov rdx, rdi
mov rcx, rsi
call fcn.180056680
xor r8d, r8d
cmp byte [rbp + 0x40], r8b
mov edx, 0x80
mov edi, dword [rbp - 0x48]
mov al, dil
movzx ecx, r8b
cmovne ecx, edx
and al, 0xf
or cl, al
mov byte [rbp + 0x40], cl
test r13b, r13b
movzx ecx, r8b
cmove ecx, edx
mov rdx, qword [rbp - 0x38]
cmp qword [rdx], 0x7d
ja 0x180041686
mov al, byte [rdx]
jmp 0x180041692
cmp qword [rdx], 0xffff
seta al
add al, 0x7e
mov rdx, qword [rdx]
or cl, al
xor eax, eax
mov byte [rbp + 0x41], cl
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
mov dword [rbp - 0x30], eax
test r13b, r13b
jne 0x180041714
call fcn.18002ecd0
movsxd rcx, eax
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0x40]
mov dword [rbp + rcx - 0x38], ebx
lea rcx, [rbp - 0x28]
mov rbx, qword [r15]
call fcn.180041830
lea rcx, [rbx + 0x10]
mov rdx, rax
call fcn.180020e28
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x180041774
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004176f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004182a
jmp 0x18004176f
call fcn.18002ecd0
mov rbx, qword [r15]
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x28]
call fcn.180041830
lea rcx, [rbx + 0x10]
mov rdx, rax
call fcn.180020e28
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x180041774
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004176f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180041824
call fcn.180054638
mov rax, qword [r15]
xor esi, esi
mov dword [r14], esi
mov byte [rax + 0x74], 1
mov rax, qword [r15]
mov dword [rax + 0x70], edi
lea rax, [0x1800c1050]
jmp 0x18004179b
call fcn.180034d4c
mov dword [r14], 6
mov rdi, qword [r12 + 8]
or ebx, 0xffffffff
mov qword [r14 + 8], rax
test rdi, rdi
je 0x1800417d3
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x1800417d3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x1800417d3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [r15 + 8]
test rdi, rdi
je 0x180041803
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x180041803
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x180041803
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0x70]
mov rax, r14
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18005affc
int3
call fcn.18005affc
int3