Function at 0x180038cc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x50], 1
lea r9, [rsp + 0x20]
mov dword [rsp + 0x48], 2
xor ebx, ebx
mov edx, dword [rsp + 0x48]
mov rdi, rcx
mov eax, dword [rsp + 0x50]
mov r8d, ebx
add edx, eax
mov dword [rsp + 0x48], edx
mov eax, dword [rsp + 0x48]
nop dword [rax]
mov dword [rsp + 0x50], 0xd
lea r9, [r9 + 4]
mov dword [rsp + 0x48], ebx
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov edx, dword [rsp + 0x48]
mov dword [rsp + 0x50], 2
mov dword [rsp + 0x48], 0xa
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x48]
imul edx, r8d
inc r8d
add edx, eax
mov ecx, dword [rdi + rdx*4 + 0x50]
mov dword [r9 - 4], ecx
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 r8d, eax
jb 0x180038d00
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], 0xc
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov r10d, dword [rsp + 0x48]
nop dword [rax + rax]
mov dword [rsp + 0x50], 3
mov r11d, ebx
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]
lea r9d, [r10 - 1]
test r9d, r9d
jns 0x180038de9
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], 0xc
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov r9d, dword [rsp + 0x48]
mov dword [rsp + 0x50], 5
mov dword [rsp + 0x48], 8
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], 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, r11d
imul r8d, r11d
inc r11d
add eax, r10d
lea rdx, [rdi + rax*4]
add r8d, r9d
mov ecx, dword [rdi + r8*4 + 0x50]
mov dword [rdx + 0x50], ecx
mov dword [rsp + 0x50], 3
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]
cmp r11d, eax
jb 0x180038dc1
dec r10d
test r10d, r10d
jg 0x180038da0
mov dword [rsp + 0x50], 3
lea r8, [rsp + 0x20]
mov dword [rsp + 0x48], ebx
mov edx, 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], 3
lea r8, [r8 + 4]
mov dword [rsp + 0x48], 0xa
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add ecx, eax
mov dword [rsp + 0x48], ecx
mov ecx, dword [rsp + 0x48]
mov eax, dword [r8 - 4]
imul ecx, edx
inc edx
mov dword [rdi + rcx*4 + 0x50], eax
mov dword [rsp + 0x50], 3
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]
cmp edx, eax
jb 0x180038ea3
mov dword [rsp + 0x50], 0xa
lea r9, [rdi + 4]
mov dword [rsp + 0x48], 2
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], 9
lea r9, [r9 + 4]
mov dword [rsp + 0x48], 4
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], 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 eax, dword [rsp + 0x48]
cmp r8d, eax
jb 0x180038f21
mov rcx, rdi
call fcn.180038a20
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], 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 + 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 0x180038fd0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret