Function at 0x551350
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x160
mov rbp, rsp
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x48], r8
mov byte [rbp + 0x57], r9b
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x158], 0
mov qword [rbp + 0x150], 0
mov qword [rbp + 0x148], 0
mov qword [rbp + 0x140], 0
mov qword [rbp + 0x68], 0
nop
lea rcx, [rbp + 0x70]
movzx rdx, byte [rbp + 0x57]
call fcn.00552230
lea rcx, [rbp + 0x70]
call fcn.005520e0
mov ebx, eax
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x40]
mov r8, qword [0x004065f0]
call fcn.004155f0
lea rcx, [rbp + 0x148]
mov rdx, qword [rbp + 0x48]
mov r8, qword [0x004065f0]
call fcn.004155f0
mov rcx, qword [rbp + 0x148]
mov rax, rcx
test rax, rax
je 0x551401
mov rax, qword [rax - 8]
movsxd rsi, ebx
cmp rax, rsi
jle 0x55144c
mov rax, rcx
test rax, rax
je 0x551415
mov rax, qword [rax - 8]
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0x148]
mov r8d, eax
call fcn.00552580
lea rcx, [rbp + 0x70]
lea rdx, [rbp + 0x58]
call fcn.00552110
lea rcx, [rbp + 0x148]
mov rdx, qword [rbp + 0x58]
mov r8, qword [0x004065f0]
call fcn.004153e0
lea rcx, [rbp + 0x140]
mov rdx, qword [rbp + 0x148]
mov r8, qword [0x004065f0]
xor r9, r9
mov qword [rsp + 0x20], 0x7fffffff
call fcn.00415410
lea rcx, [rbp + 0x140]
mov rdx, qword [0x004065f0]
mov r8d, 1
movsxd r9, ebx
call fcn.004153a0
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x55149b
mov rax, qword [rax - 8]
lea rcx, [rbp + 0x158]
mov rdx, qword [0x004065f0]
mov r8d, 1
lea r9, [rsi + rax]
call fcn.004153a0
mov rax, qword [rbp + 0x140]
test rax, rax
je 0x5514c8
mov rax, qword [rax - 8]
xor ecx, ecx
lea rdx, [rax - 1]
mov eax, ecx
cmp eax, edx
jg 0x551504
sub edx, ecx
add edx, 1
movsxd rcx, eax
mov r8, qword [rbp + 0x158]
mov r9, qword [rbp + 0x140]
movzx r9, byte [r9 + rcx]
xor r9b, byte [0x008d03a0]
mov byte [r8 + rcx], r9b
add eax, 1
sub edx, 1
test edx, edx
jne 0x5514d9
nop
mov rcx, qword [rbp + 0x68]
mov rax, rcx
test rax, rax
je 0x551515
mov rax, qword [rax - 8]
test rax, rax
jle 0x551550
mov rax, qword [rbp + 0x140]
test rax, rax
je 0x55152a
mov rax, qword [rax - 8]
test rcx, rcx
je 0x551533
mov rcx, qword [rcx - 8]
mov rdx, qword [rbp + 0x68]
mov r8, qword [rbp + 0x158]
lea rax, [r8 + rax]
mov r8, rcx
mov rcx, rdx
mov rdx, rax
call fcn.00409ae0
lea rcx, [rbp + 0x70]
movzx rdx, byte [rbp + 0xfd]
call fcn.00552230
mov rax, qword [rbp + 0x158]
test rax, rax
je 0x551571
mov rax, qword [rax - 8]
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0x158]
mov r8d, eax
call fcn.00552580
lea rcx, [rbp + 0x70]
lea rdx, [rbp + 0x150]
call fcn.00552110
mov rax, qword [rbp + 0x150]
test rax, rax
je 0x5515a4
mov rax, qword [rax - 8]
lea rcx, [rbp + 0x158]
mov rdx, qword [0x004065f0]
mov r8d, 1
mov r9d, ebx
add r9d, eax
movsxd r9, r9d
call fcn.004153a0
mov rax, qword [rbp + 0x140]
test rax, rax
je 0x5515d6
mov rax, qword [rax - 8]
xor ecx, ecx
lea rdx, [rax - 1]
mov eax, ecx
cmp eax, edx
jg 0x551612
sub edx, ecx
add edx, 1
movsxd rcx, eax
mov r8, qword [rbp + 0x158]
mov r9, qword [rbp + 0x140]
movzx r9, byte [r9 + rcx]
xor r9b, byte [0x008d03a1]
mov byte [r8 + rcx], r9b
add eax, 1
sub edx, 1
test edx, edx
jne 0x5515e7
nop
mov rax, qword [rbp + 0x140]
test rax, rax
je 0x551623
mov rax, qword [rax - 8]
mov rcx, qword [rbp + 0x150]
test rcx, rcx
je 0x551633
mov rcx, qword [rcx - 8]
mov rdx, qword [rbp + 0x150]
mov r8, qword [rbp + 0x158]
lea rax, [r8 + rax]
mov r8, rcx
mov rcx, rdx
mov rdx, rax
call fcn.00409ae0
lea rcx, [rbp + 0x70]
movzx rdx, byte [rbp + 0xfd]
call fcn.00552230
mov rax, qword [rbp + 0x158]
test rax, rax
je 0x551674
mov rax, qword [rax - 8]
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0x158]
mov r8d, eax
call fcn.00552580
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0x38]
call fcn.00552110
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004065f0]
call fcn.00415570
lea rcx, [rbp + 0x68]
mov rdx, qword [0x004065f0]
call fcn.00415570
lea rcx, [rbp + 0x140]
mov rdx, qword [0x004065f0]
mov r8d, 4
call fcn.00413700
mov rax, qword [rbp + 0x38]
lea rsp, [rbp + 0x160]
pop rbx
pop rsi
pop rbp
ret