Function at 0x180034f70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x50], 2
xor ebx, ebx
mov dword [rsp + 0x48], 1
mov rdi, rcx
mov edx, dword [rsp + 0x48]
mov r8d, ebx
mov eax, dword [rsp + 0x50]
add edx, eax
mov dword [rsp + 0x48], edx
lea rdx, [rsp + 0x20]
mov eax, dword [rsp + 0x48]
nop dword [rax]
mov dword [rsp + 0x50], 2
lea rdx, [rdx + 4]
mov dword [rsp + 0x48], 0xb
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], 5
mov dword [rsp + 0x48], 7
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov ecx, dword [rsp + 0x58]
mov eax, dword [rsp + 0x48]
imul ecx, r8d
inc r8d
add eax, ecx
mov ecx, dword [rdi + rax*4 + 0x50]
mov dword [rdx - 4], ecx
mov dword [rsp + 0x50], 2
mov dword [rsp + 0x48], 1
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
cmp r8d, eax
jb 0x180034fb0
mov dword [rsp + 0x50], 0xa
mov dword [rsp + 0x48], 2
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov r8d, dword [rsp + 0x48]
mov dword [rsp + 0x50], 1
mov r9d, ebx
mov dword [rsp + 0x48], 2
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
lea eax, [r8 - 1]
test eax, eax
jns 0x18003509d
mov dword [rsp + 0x50], 0xc
mov dword [rsp + 0x48], ebx
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], 0xd
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
add edx, ecx
mov dword [rsp + 0x48], edx
mov ecx, dword [rsp + 0x48]
imul ecx, r9d
add ecx, eax
mov edx, dword [rdi + rcx*4 + 0x50]
mov dword [rsp + 0x50], 7
mov dword [rsp + 0x48], 6
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
imul eax, r9d
inc r9d
add eax, r8d
mov dword [rdi + rax*4 + 0x50], edx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 2
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
cmp r9d, eax
jb 0x180035077
dec r8d
test r8d, r8d
jg 0x180035052
mov dword [rsp + 0x50], ebx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x48], 3
mov r8d, ebx
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r9]
lea r9, [r9 + 4]
mov dword [rsp + 0x50], 0xc
mov dword [rsp + 0x48], 1
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
imul eax, r8d
inc r8d
mov dword [rdi + rax*4 + 0x50], edx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], 3
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
cmp r8d, eax
jb 0x180035160
mov dword [rsp + 0x50], 6
lea r9, [rdi + 4]
mov dword [rsp + 0x48], 6
mov r8d, ebx
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], ebx
lea r9, [r9 + 4]
mov dword [rsp + 0x48], 0xd
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, 0x55555556
imul r8d
mov ecx, r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub ecx, eax
mov eax, dword [rsp + 0x48]
imul eax, ecx
add eax, r8d
inc r8d
cdqe
lea rcx, [rdi + rax*4]
mov eax, dword [r9 - 4]
xor dword [rcx + 0x54], eax
mov dword [rsp + 0x50], 6
mov dword [rsp + 0x48], 6
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
cmp r8d, eax
jb 0x1800351e0
mov rcx, rdi
call fcn.180034cc0
mov dword [rsp + 0x50], 2
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x48], 1
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
nop word [rax + rax]
mov dword [rsp + 0x50], 8
lea rdx, [rdx + 4]
mov dword [rsp + 0x48], 5
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
add eax, ebx
inc ebx
lea rcx, [rdi + rax*4]
mov eax, dword [rdx - 4]
xor dword [rcx], eax
mov dword [rsp + 0x50], 2
mov dword [rsp + 0x48], 1
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
cmp ebx, eax
jb 0x180035290
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret