Function at 0x180400520
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x1805770f0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r14d, dword [rdx]
mov r15, rdx
mov ebp, dword [rdx + 4]
mov r8, rcx
mov ebx, dword [rdx + 8]
lea rcx, [rsp + 0x20]
mov edi, dword [rdx + 0xc]
mov esi, dword [rdx + 0x10]
mov edx, 0x10
call fcn.180401ad0
lea rax, [rsp + 0x28]
mov edx, 0x40
nop dword [rax]
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 0x180400580
mov r8d, 4
lea rdx, [rsp + 0x28]
mov r9d, r8d
nop dword [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 r9, 1
jne 0x1804005b0
lea rdx, [rsp + 0x78]
mov r9, r8
nop dword [rax + rax]
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 r9, 1
jne 0x180400660
lea r9, [rsp + 0xc8]
mov r10, r8
mov ecx, edi
lea r9, [r9 + 0x14]
or ecx, ebx
mov eax, edi
and ecx, ebp
and eax, ebx
or ecx, eax
ror ebp, 2
add ecx, dword [r9 - 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 [r9 - 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 [r9 - 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 [r9 - 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 [r9 - 0xc]
add ecx, r14d
lea r14d, [rdx - 0x70e44324]
add r14d, ecx
sub r10, 1
jne 0x180400703
lea rdx, [rsp + 0x118]
nop dword [rax]
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 0x1804007d0
add dword [r15], r14d
add dword [r15 + 4], ebp
add dword [r15 + 8], ebx
add dword [r15 + 0xc], edi
add dword [r15 + 0x10], esi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1803d0210
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret