Function at 0x180034960
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
sub rsp, 0x28
mov dword [rsp + 0x40], 0x14
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov rdi, rcx
mov r9d, dword [rsp + 0x50]
mov r10d, ebx
mov eax, dword [rsp + 0x40]
add r9d, eax
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], r9d
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x20], r14
mov r14, rdx
movsxd r11, r8d
mov rdx, rcx
nop dword [rax]
nop word [rax + rax]
mov dword [rdx], ebx
lea rdx, [rdx + 4]
mov dword [rsp + 0x40], 0x14
inc r10d
mov dword [rsp + 0x50], ebx
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
cmp r10d, eax
jb 0x1800349b0
mov dword [rsp + 0x40], 0xc
lea rdx, [rdi + 0x50]
mov dword [rsp + 0x50], 0x1c
mov r8d, ebx
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
nop word [rax + rax]
mov dword [rdx], ebx
lea rdx, [rdx + 4]
mov dword [rsp + 0x40], 0xc
inc r8d
mov dword [rsp + 0x50], 0x1c
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
cmp r8d, eax
jb 0x180034a10
mov dword [rsp + 0x40], 2
lea rdx, [rdi + 0xf4]
mov dword [rsp + 0x50], 1
mov r8d, ebx
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
nop dword [rax]
mov dword [rdx], ebx
lea rdx, [rdx + 4]
mov dword [rsp + 0x40], 2
inc r8d
mov dword [rsp + 0x50], 1
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
cmp r8d, eax
jb 0x180034a70
mov qword [rdi + 0x100], rbx
mov rbp, r11
mov dword [rdi + 0xf0], ebx
mov dword [rdi + 0x108], ebx
test r11d, r11d
jle 0x180034add
mov qword [rsp + 0x58], rsi
mov rsi, rbx
movzx edx, byte [rsi + r14]
mov rcx, rdi
call fcn.180035300
inc rsi
cmp rsi, rbp
jl 0x180034ac3
mov rsi, qword [rsp + 0x58]
mov dl, 1
mov rcx, rdi
call fcn.180035300
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x48]
cmp dword [rdi + 0x108], ebx
jne 0x180034b5d
cmp dword [rdi + 0xf0], ebx
jne 0x180034b5d
mov dword [rsp + 0x40], 0xf
mov dword [rsp + 0x50], 1
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
mov rcx, rdi
call fcn.180034f70
mov dword [rsp + 0x40], 0xf
inc ebx
mov dword [rsp + 0x50], 1
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
cmp ebx, eax
jb 0x180034b23
mov rax, rdi
add rsp, 0x28
pop rdi
pop rbx
ret
mov r8d, dword [rdi + 0xf0]
lea r9, [rdi + 0xf4]
mov dword [rsp + 0x40], 1
xor edx, edx
mov dword [rsp + 0x50], 2
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov ecx, dword [rsp + 0x50]
mov eax, dword [rdi + 0x108]
div ecx
mov dword [rdi + rdx*4 + 0xf4], r8d
mov r8d, ebx
mov dword [rsp + 0x40], 2
mov dword [rsp + 0x50], 1
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r9]
lea r9, [r9 + 4]
mov dword [rsp + 0x40], 7
mov dword [rsp + 0x50], 6
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
imul eax, r8d
xor dword [rdi + rax*4 + 0x50], edx
mov edx, dword [r9 - 4]
mov dword [rsp + 0x40], 7
mov dword [rsp + 0x50], 9
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
add eax, r8d
inc r8d
xor dword [rdi + rax*4], edx
mov dword [rsp + 0x40], 2
mov dword [rsp + 0x50], 1
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
cmp r8d, eax
jb 0x180034bd0
mov dword [rsp + 0x40], 0xe
mov dword [rsp + 0x50], 3
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
nop dword [rax]
mov rcx, rdi
call fcn.180034f70
mov dword [rsp + 0x40], 0xe
inc ebx
mov dword [rsp + 0x50], 3
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add ecx, eax
mov dword [rsp + 0x50], ecx
mov eax, dword [rsp + 0x50]
cmp ebx, eax
jb 0x180034c80
mov rax, rdi
add rsp, 0x28
pop rdi
pop rbx
ret