Function at 0x1803fff70
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x18040038e
mov r11, rsp
push rdi
push r12
push r13
push r15
sub rsp, 0x188
mov rax, qword [0x1805770f0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov edi, dword [rcx + 0x48]
lea rax, [rcx + 8]
mov qword [r11 + 0x20], rbx
mov r12, r8
mov qword [r11 - 0x28], rbp
mov r13, rdx
mov qword [r11 - 0x30], rsi
mov r15, rcx
mov qword [r11 - 0x38], r14
and edi, 0x3f
nop
mov ebx, 0x40
lea rcx, [rax + rdi]
sub rbx, rdi
mov rdx, r13
cmp rbx, r12
cmova rbx, r12
mov r8, rbx
call fcn.1803d2410
add qword [r15 + 0x48], rbx
add rdi, rbx
add r13, rbx
sub r12, rbx
cmp rdi, 0x40
jne 0x180400343
mov r14d, dword [r15 + 0x50]
lea r8, [r15 + 8]
mov ebp, dword [r15 + 0x54]
lea rcx, [rsp + 0x20]
mov ebx, dword [r15 + 0x58]
mov edx, 0x10
mov edi, dword [r15 + 0x5c]
mov esi, dword [r15 + 0x60]
call fcn.180401ad0
lea rax, [rsp + 0x28]
mov edx, 0x40
nop word [rax + rax]
mov ecx, dword [rax + 0x2c]
xor ecx, dword [rax + 0x18]
xor ecx, dword [rax - 8]
xor ecx, dword [rax]
lea rax, [rax + 4]
rol ecx, 1
mov dword [rax + 0x34], ecx
sub rdx, 1
jne 0x180400030
lea rdx, [rsp + 0x28]
mov r8d, 4
nop word [rax + rax]
mov ecx, r14d
lea rdx, [rdx + 0x14]
rol ecx, 5
mov eax, edi
xor eax, ebx
and eax, ebp
ror ebp, 2
xor eax, edi
add eax, 0x5a827999
add ecx, eax
mov eax, ebx
add ecx, dword [rdx - 0x1c]
xor eax, ebp
and eax, r14d
add esi, ecx
xor eax, ebx
ror r14d, 2
add eax, 0x5a827999
mov ecx, esi
rol ecx, 5
add ecx, eax
mov eax, ebp
add ecx, dword [rdx - 0x18]
xor eax, r14d
add edi, ecx
and eax, esi
xor eax, ebp
ror esi, 2
add eax, 0x5a827999
mov ecx, edi
rol ecx, 5
add ecx, eax
mov eax, esi
add ecx, dword [rdx - 0x14]
xor eax, r14d
add ebx, ecx
and eax, edi
xor eax, r14d
ror edi, 2
add eax, 0x5a827999
mov ecx, ebx
rol ecx, 5
add r14d, 0x5a827999
add ecx, eax
mov eax, esi
add ecx, dword [rdx - 0x10]
xor eax, edi
add ebp, ecx
and eax, ebx
xor eax, esi
ror ebx, 2
mov ecx, ebp
rol ecx, 5
add ecx, eax
add ecx, dword [rdx - 0xc]
add r14d, ecx
sub r8, 1
jne 0x180400060
lea rdx, [rsp + 0x78]
mov r8d, 4
nop
mov ecx, r14d
lea rdx, [rdx + 0x14]
rol ecx, 5
mov eax, edi
xor eax, ebx
xor eax, ebp
ror ebp, 2
add eax, 0x6ed9eba1
add ecx, eax
mov eax, ebx
add ecx, dword [rdx - 0x1c]
xor eax, ebp
add esi, ecx
xor eax, r14d
add eax, 0x6ed9eba1
ror r14d, 2
mov ecx, esi
rol ecx, 5
add ecx, eax
mov eax, esi
add ecx, dword [rdx - 0x18]
xor eax, ebp
add edi, ecx
ror esi, 2
xor eax, r14d
mov ecx, edi
rol ecx, 5
add eax, 0x6ed9eba1
add ecx, eax
mov eax, esi
add ecx, dword [rdx - 0x14]
xor eax, edi
add ebx, ecx
ror edi, 2
xor eax, r14d
mov ecx, ebx
rol ecx, 5
add eax, 0x6ed9eba1
add ecx, eax
add r14d, 0x6ed9eba1
add ecx, dword [rdx - 0x10]
mov eax, esi
add ebp, ecx
xor eax, edi
xor eax, ebx
mov ecx, ebp
rol ecx, 5
add ecx, eax
ror ebx, 2
add ecx, dword [rdx - 0xc]
add r14d, ecx
sub r8, 1
jne 0x180400110
lea r8, [rsp + 0xc8]
mov r9d, 4
nop word [rax + rax]
mov ecx, edi
lea r8, [r8 + 0x14]
or ecx, ebx
mov eax, edi
and ecx, ebp
and eax, ebx
or ecx, eax
ror ebp, 2
add ecx, dword [r8 - 0x1c]
mov edx, r14d
add ecx, esi
rol edx, 5
mov eax, ebx
and eax, ebp
lea esi, [rdx - 0x70e44324]
add esi, ecx
mov ecx, ebx
or ecx, ebp
mov edx, esi
and ecx, r14d
rol edx, 5
or ecx, eax
ror r14d, 2
add ecx, dword [r8 - 0x18]
mov eax, ebp
add ecx, edi
and eax, r14d
lea edi, [rdx - 0x70e44324]
add edi, ecx
mov ecx, ebp
or ecx, r14d
mov edx, edi
and ecx, esi
rol edx, 5
or ecx, eax
ror esi, 2
add ecx, dword [r8 - 0x14]
mov eax, esi
add ecx, ebx
and eax, r14d
lea ebx, [rdx - 0x70e44324]
add ebx, ecx
mov ecx, esi
or ecx, r14d
mov edx, ebx
and ecx, edi
rol edx, 5
or ecx, eax
ror edi, 2
add ecx, dword [r8 - 0x10]
mov eax, esi
add ecx, ebp
and eax, edi
lea ebp, [rdx - 0x70e44324]
add ebp, ecx
mov ecx, esi
or ecx, edi
mov edx, ebp
and ecx, ebx
rol edx, 5
or ecx, eax
ror ebx, 2
add ecx, dword [r8 - 0xc]
add ecx, r14d
lea r14d, [rdx - 0x70e44324]
add r14d, ecx
sub r9, 1
jne 0x1804001c0
lea rdx, [rsp + 0x118]
lea r8d, [r9 + 4]
nop
mov eax, edi
lea rdx, [rdx + 0x14]
xor eax, ebx
mov ecx, r14d
xor eax, ebp
rol ecx, 5
add eax, dword [rdx - 0x1c]
add eax, esi
ror ebp, 2
lea esi, [rcx - 0x359d3e2a]
add esi, eax
mov eax, ebx
xor eax, ebp
mov ecx, esi
xor eax, r14d
rol ecx, 5
add eax, dword [rdx - 0x18]
add eax, edi
ror r14d, 2
lea edi, [rcx - 0x359d3e2a]
add edi, eax
mov eax, esi
xor eax, ebp
ror esi, 2
xor eax, r14d
mov ecx, edi
add eax, dword [rdx - 0x14]
add eax, ebx
rol ecx, 5
lea ebx, [rcx - 0x359d3e2a]
add ebx, eax
mov eax, esi
xor eax, edi
mov ecx, ebx
xor eax, r14d
rol ecx, 5
add eax, dword [rdx - 0x10]
add eax, ebp
ror edi, 2
lea ebp, [rcx - 0x359d3e2a]
add ebp, eax
mov eax, esi
xor eax, edi
mov ecx, ebp
xor eax, ebx
rol ecx, 5
add eax, dword [rdx - 0xc]
add eax, r14d
ror ebx, 2
lea r14d, [rcx - 0x359d3e2a]
add r14d, eax
sub r8, 1
jne 0x180400290
add dword [r15 + 0x50], r14d
add dword [r15 + 0x54], ebp
add dword [r15 + 0x58], ebx
add dword [r15 + 0x5c], edi
add dword [r15 + 0x60], esi
xor edi, edi
lea rax, [r15 + 8]
test r12, r12
jne 0x1803fffc0
mov r14, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x178]
mov rbp, qword [rsp + 0x180]
mov rbx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1803d0210
add rsp, 0x188
pop r15
pop r13
pop r12
pop rdi
ret