Function at 0x18003a2e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rcx + 0x60]
xor edi, edi
mov r9, rdx
mov r12, qword [rcx + 0x10]
mov rsi, rcx
cmp dword [rcx + 0x48], edi
jne 0x18003a4d0
mov rdx, qword [rcx + 0x50]
mov r13d, 0x1770
cmp dword [rbp + 4], r13d
mov rcx, r9
cmovb r13d, dword [rbp + 4]
mov r14d, dword [rdx + 4]
add rdx, 8
mov r8d, r14d
lea r15d, [r13 + 0xe]
call fcn.1800a2a90
mov rcx, qword [rsp + 0x68]
lea rdx, str.Content_Length:__d_r_n_r_n
add rcx, r14
mov r8d, r15d
call fcn.18001dbe0
add r14d, eax
mov ebx, r14d
add r14d, 0xe
add rbx, qword [rsp + 0x68]
mov dword [rbx + 1], r13d
mov rax, qword [rsi + 8]
mov qword [rbx + 5], rax
call fcn.1800a4480
and eax, 0x800000ff
jge 0x18003a383
dec eax
or eax, 0xffffff00
inc eax
mov edx, 1
mov byte [rbx], al
mov ecx, edx
mov byte [rbx + 0xd], dil
movzx eax, byte [rbx]
add edx, 0xc
xor byte [rcx + rbx], al
movzx eax, byte [rcx + rbx + 1]
lea rcx, [rcx + 0xc]
xor al, byte [rbx]
mov byte [rbx + rcx - 0xb], al
movzx eax, byte [rbx]
xor byte [rbx + rcx - 0xa], al
movzx eax, byte [rbx]
xor byte [rbx + rcx - 9], al
movzx eax, byte [rbx]
xor byte [rbx + rcx - 8], al
movzx eax, byte [rbx]
xor byte [rbx + rcx - 7], al
movzx eax, byte [rbx]
xor byte [rbx + rcx - 6], al
movzx eax, byte [rbx]
xor byte [rbx + rcx - 5], al
movzx eax, byte [rbx]
xor byte [rbx + rcx - 4], al
movzx eax, byte [rbx]
xor byte [rbx + rcx - 3], al
movzx eax, byte [rbx]
xor byte [rbx + rcx - 2], al
movzx eax, byte [rbx]
xor byte [rbx + rcx - 1], al
cmp edx, 0xd
jb 0x18003a390
movzx eax, byte [rbx + 0xd]
mov rcx, rdi
nop word [rax + rax]
xor al, byte [rcx + rbx]
lea rcx, [rcx + 0xd]
mov byte [rbx + 0xd], al
add edi, 0xd
xor al, byte [rbx + rcx - 0xc]
mov byte [rbx + 0xd], al
xor al, byte [rbx + rcx - 0xb]
mov byte [rbx + 0xd], al
xor al, byte [rbx + rcx - 0xa]
mov byte [rbx + 0xd], al
xor al, byte [rbx + rcx - 9]
mov byte [rbx + 0xd], al
xor al, byte [rbx + rcx - 8]
mov byte [rbx + 0xd], al
xor al, byte [rbx + rcx - 7]
mov byte [rbx + 0xd], al
xor al, byte [rbx + rcx - 6]
mov byte [rbx + 0xd], al
xor al, byte [rbx + rcx - 5]
mov byte [rbx + 0xd], al
xor al, byte [rbx + rcx - 4]
mov byte [rbx + 0xd], al
xor al, byte [rbx + rcx - 3]
mov byte [rbx + 0xd], al
xor al, byte [rbx + rcx - 2]
mov byte [rbx + 0xd], al
xor al, byte [rbx + rcx - 1]
mov byte [rbx + 0xd], al
cmp edi, 0xd
jb 0x18003a400
mov r8d, dword [rbp + 4]
lea rcx, [rbx + 0xe]
lea rdx, [rbp + 8]
call fcn.1800a2a90
mov rdx, qword [rsp + 0x68]
lea r8d, [r14 + r13]
mov rcx, r12
call qword [r12 + 0x48]
mov edi, eax
mov eax, 0x80000000
lea ecx, [rdi + rax]
test eax, ecx
jne 0x18003a49f
cmp edi, 0xfffffff5
jne 0x18003a52f
cmp edi, r14d
jb 0x18003a4d0
mov r8d, dword [rbp + 4]
lea rdx, [rbp + 8]
mov ebx, edi
lea rcx, [rbp + 8]
sub ebx, r14d
mov eax, ebx
sub r8d, ebx
add rdx, rax
call fcn.1800a2a90
sub dword [rbp + 4], ebx
sub r15d, ebx
sub r15d, 0xe
mov dword [rsi + 0x48], r15d
mov r8d, dword [rsi + 0x48]
test r8d, r8d
jle 0x18003a509
lea rdx, [rbp + 8]
mov rcx, r12
call qword [r12 + 0x48]
movsxd rdi, eax
test eax, eax
jle 0x18003a509
sub dword [rsi + 0x48], edi
lea rdx, [rbp + 8]
mov r8d, dword [rbp + 4]
lea rcx, [rbp + 8]
sub r8d, edi
add rdx, rdi
call fcn.1800a2a90
sub dword [rbp + 4], edi
cmp dword [rsi + 0x48], 0
jne 0x18003a52f
mov rax, qword [rsi + 0x40]
cmp dword [rax + 0x24], 0
je 0x18003a528
cmp dword [rsi + 0x38], 0
jne 0x18003a528
mov dword [rsi + 0x58], 6
jmp 0x18003a52f
mov dword [rsi + 0x58], 5
mov rbx, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret