Function at 0x47c9a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov esi, dword [r8 + 4]
mov ebx, dword [r8 + 8]
mov rax, rdx
mov rdi, rcx
mov qword [rsp + 0xa0], r8
and rax, 0xfffffffffffffffc
lea r14, [rcx + rax]
mov eax, dword [r8]
mov rcx, rdx
shr rcx, 0x20
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x34], eax
mov eax, dword [r8 + 0xc]
mov dword [rsp + 0x24], eax
mov eax, edx
add eax, dword [r8 + 0x10]
cmp rax, rdx
mov dword [r8 + 0x10], eax
adc dword [r8 + 0x14], ecx
cmp rdi, r14
jae 0x47d1d2
mov dword [rsp + 0x28], ebx
nop word [rax + rax]
mov r14d, dword [rdi]
mov ebx, dword [rsp + 0x24]
mov eax, dword [rsp + 0x34]
mov r11d, dword [rsp + 0x28]
mov ecx, dword [rdi + 4]
mov r10d, dword [rdi + 8]
lea edx, [r14 + rax - 0x28955b88]
mov eax, ebx
mov ebp, dword [rdi + 0x10]
xor eax, r11d
mov r12d, dword [rdi + 0x14]
and eax, esi
mov dword [rsp + 8], ecx
mov r15d, dword [rdi + 0x18]
lea ecx, [rcx + rbx - 0x173848aa]
xor eax, ebx
mov dword [rsp + 0xc], r10d
mov ebx, dword [rdi + 0x28]
lea r8d, [r10 + r11 + 0x242070db]
add eax, edx
mov edx, esi
mov r10d, dword [rdi + 0x20]
rol eax, 7
xor edx, r11d
mov dword [rsp + 0x2c], r12d
add eax, esi
mov dword [rsp + 0x14], ebp
and edx, eax
mov dword [rsp + 0x30], r15d
xor edx, r11d
mov r11d, eax
mov dword [rsp + 0x18], r10d
add edx, ecx
xor r11d, esi
rol edx, 0xc
mov ecx, r11d
mov r11d, dword [rdi + 0xc]
add edx, eax
and ecx, edx
xor ecx, esi
lea r9d, [r11 + rsi - 0x3e423112]
add ecx, r8d
mov r8d, eax
mov dword [rsp + 0x10], r11d
ror ecx, 0xf
xor r8d, edx
mov r11d, dword [rdi + 0x24]
add ecx, edx
and r8d, ecx
xor r8d, eax
add r8d, r9d
mov dword [rsp + 0x1c], r11d
lea r9d, [rbp + rax - 0xa83f051]
ror r8d, 0xa
mov eax, edx
mov ebp, dword [rdi + 0x30]
add r8d, ecx
xor eax, ecx
and eax, r8d
mov r13d, r8d
xor eax, edx
add eax, r9d
lea r9d, [r12 + rdx + 0x4787c62a]
rol eax, 7
mov edx, ecx
mov r12d, dword [rdi + 0x2c]
add eax, r8d
xor edx, r8d
and edx, eax
xor edx, ecx
xor r13d, eax
add edx, r9d
mov dword [rsp + 0x20], r12d
lea r9d, [r15 + rcx - 0x57cfb9ed]
rol edx, 0xc
mov ecx, r13d
mov r13d, dword [rdi + 0x1c]
add edx, eax
and ecx, edx
xor ecx, r8d
add ecx, r9d
lea r9d, [r13 + r8 - 0x2b96aff]
ror ecx, 0xf
mov r8d, eax
add ecx, edx
xor r8d, edx
and r8d, ecx
xor r8d, eax
add r8d, r9d
lea r9d, [r10 + rax + 0x698098d8]
ror r8d, 0xa
mov eax, edx
mov r10d, dword [rdi + 0x34]
add r8d, ecx
xor eax, ecx
and eax, r8d
xor eax, edx
add eax, r9d
lea r9d, [r11 + rdx - 0x74bb0851]
rol eax, 7
mov edx, ecx
mov r11d, dword [rdi + 0x3c]
add eax, r8d
xor edx, r8d
and edx, eax
xor edx, ecx
add edx, r9d
lea r9d, [rbx + rcx - 0xa44f]
rol edx, 0xc
mov ecx, r8d
add edx, eax
xor ecx, eax
and ecx, edx
xor ecx, r8d
add ecx, r9d
lea r9d, [r12 + r8 - 0x76a32842]
ror ecx, 0xf
mov r8d, eax
mov r12d, dword [rdi + 0x38]
add ecx, edx
xor r8d, edx
add rdi, 0x40
and r8d, ecx
xor r8d, eax
add r8d, r9d
lea r9d, [rbp + rax + 0x6b901122]
ror r8d, 0xa
mov eax, edx
add r8d, ecx
xor eax, ecx
and eax, r8d
xor eax, edx
add eax, r9d
lea r9d, [r10 + rdx - 0x2678e6d]
rol eax, 7
mov edx, ecx
add eax, r8d
xor edx, r8d
and edx, eax
xor edx, ecx
add edx, r9d
lea r9d, [r12 + rcx - 0x5986bc72]
rol edx, 0xc
mov ecx, r8d
add edx, eax
xor ecx, eax
and ecx, edx
xor ecx, r8d
add ecx, r9d
lea r9d, [r11 + r8 + 0x49b40821]
ror ecx, 0xf
mov r8d, eax
add ecx, edx
xor r8d, edx
and r8d, ecx
xor r8d, eax
add r8d, r9d
mov r9d, dword [rsp + 8]
ror r8d, 0xa
add r8d, ecx
lea r9d, [r9 + rax - 0x9e1da9e]
mov eax, ecx
xor eax, r8d
and eax, edx
xor eax, ecx
add eax, r9d
lea r9d, [r15 + rdx - 0x3fbf4cc0]
rol eax, 5
mov edx, r8d
mov r15d, dword [rsp + 0x20]
add eax, r8d
xor edx, eax
and edx, ecx
xor edx, r8d
add edx, r9d
lea r9d, [r15 + rcx + 0x265e5a51]
rol edx, 9
mov ecx, eax
add edx, eax
xor ecx, edx
and ecx, r8d
xor ecx, eax
add ecx, r9d
lea r9d, [r14 + r8 - 0x16493856]
rol ecx, 0xe
mov r8d, edx
add ecx, edx
xor r8d, ecx
and r8d, eax
xor r8d, edx
add r8d, r9d
mov r9d, dword [rsp + 0x2c]
ror r8d, 0xc
add r8d, ecx
lea r9d, [r9 + rax - 0x29d0efa3]
mov eax, ecx
xor eax, r8d
and eax, edx
xor eax, ecx
add eax, r9d
lea r9d, [rbx + rdx + 0x2441453]
rol eax, 5
mov edx, r8d
add eax, r8d
xor edx, eax
and edx, ecx
xor edx, r8d
add edx, r9d
lea r9d, [r11 + rcx - 0x275e197f]
rol edx, 9
mov ecx, eax
add edx, eax
xor ecx, edx
and ecx, r8d
xor ecx, eax
add ecx, r9d
mov r9d, dword [rsp + 0x14]
rol ecx, 0xe
mov r15d, dword [rsp + 0x1c]
add ecx, edx
lea r9d, [r9 + r8 - 0x182c0438]
mov r8d, edx
xor r8d, ecx
and r8d, eax
xor r8d, edx
add r8d, r9d
lea r9d, [r15 + rax + 0x21e1cde6]
ror r8d, 0xc
mov eax, ecx
mov r15d, dword [rsp + 0x18]
add r8d, ecx
xor eax, r8d
and eax, edx
xor eax, ecx
add eax, r9d
lea r9d, [r12 + rdx - 0x3cc8f82a]
rol eax, 5
mov edx, r8d
add eax, r8d
xor edx, eax
and edx, ecx
xor edx, r8d
add edx, r9d
mov r9d, dword [rsp + 0x10]
rol edx, 9
add edx, eax
lea r9d, [r9 + rcx - 0xb2af279]
mov ecx, eax
xor ecx, edx
and ecx, r8d
lea r8d, [r15 + r8 + 0x455a14ed]
xor ecx, eax
add ecx, r9d
mov r9d, edx
rol ecx, 0xe
add ecx, edx
xor r9d, ecx
and r9d, eax
xor r9d, edx
add r9d, r8d
lea r8d, [r10 + rax - 0x561c16fb]
ror r9d, 0xc
mov eax, ecx
add r9d, ecx
lea r15d, [rbp + r9 - 0x72d5b376]
xor eax, r9d
and eax, edx
xor eax, ecx
add eax, r8d
mov r8d, dword [rsp + 0xc]
rol eax, 5
add eax, r9d
lea r8d, [r8 + rdx - 0x3105c08]
mov edx, r9d
xor edx, eax
and edx, ecx
lea ecx, [r13 + rcx + 0x676f02d9]
xor edx, r9d
add edx, r8d
mov r8d, eax
rol edx, 9
add edx, eax
xor r8d, edx
and r8d, r9d
xor r8d, eax
add r8d, ecx
mov ecx, edx
rol r8d, 0xe
add r8d, edx
xor ecx, r8d
mov r9d, ecx
and r9d, eax
xor r9d, edx
add r9d, r15d
mov r15d, dword [rsp + 0x2c]
ror r9d, 0xc
add r9d, r8d
xor ecx, r9d
lea eax, [r15 + rax - 0x5c6be]
add ecx, eax
mov eax, dword [rsp + 0x18]
rol ecx, 4
add ecx, r9d
lea eax, [rax + rdx - 0x788e097f]
mov edx, r8d
xor edx, r9d
xor edx, ecx
add edx, eax
mov eax, dword [rsp + 0x20]
rol edx, 0xb
add edx, ecx
lea eax, [rax + r8 + 0x6d9d6122]
mov r8d, r9d
lea r9d, [r12 + r9 - 0x21ac7f4]
xor r8d, ecx
xor r8d, edx
add r8d, eax
mov eax, ecx
rol r8d, 0x10
xor eax, edx
add r8d, edx
xor eax, r8d
add eax, r9d
mov r9d, dword [rsp + 8]
ror eax, 9
add eax, r8d
lea r9d, [r9 + rcx - 0x5b4115bc]
mov ecx, edx
xor ecx, r8d
xor ecx, eax
add ecx, r9d
mov r9d, dword [rsp + 0x14]
rol ecx, 4
add ecx, eax
lea edx, [r9 + rdx + 0x4bdecfa9]
mov r9d, r8d
lea r8d, [r13 + r8 - 0x944b4a0]
xor r9d, eax
xor r9d, ecx
add r9d, edx
mov edx, eax
lea eax, [rbx + rax - 0x41404390]
rol r9d, 0xb
xor edx, ecx
add r9d, ecx
xor edx, r9d
add edx, r8d
mov r8d, ecx
rol edx, 0x10
xor r8d, r9d
add edx, r9d
xor r8d, edx
add r8d, eax
lea eax, [r10 + rcx + 0x289b7ec6]
ror r8d, 9
mov ecx, r9d
lea r9d, [r14 + r9 - 0x155ed806]
add r8d, edx
xor ecx, edx
xor ecx, r8d
add ecx, eax
mov eax, edx
rol ecx, 4
xor eax, r8d
add ecx, r8d
xor eax, ecx
add eax, r9d
mov r9d, dword [rsp + 0x10]
rol eax, 0xb
add eax, ecx
lea edx, [r9 + rdx - 0x2b10cf7b]
mov r9d, r8d
xor r9d, ecx
xor r9d, eax
add r9d, edx
mov edx, dword [rsp + 0x30]
rol r9d, 0x10
add r9d, eax
lea edx, [rdx + r8 + 0x4881d05]
mov r8d, ecx
xor r8d, eax
xor r8d, r9d
add r8d, edx
mov edx, dword [rsp + 0x1c]
ror r8d, 9
add r8d, r9d
lea ecx, [rdx + rcx - 0x262b2fc7]
mov edx, eax
lea eax, [rbp + rax - 0x1924661b]
xor edx, r9d
xor edx, r8d
add edx, ecx
mov ecx, r9d
rol edx, 4
add edx, r8d
xor ecx, r8d
xor ecx, edx
add ecx, eax
lea eax, [r11 + r9 + 0x1fa27cf8]
rol ecx, 0xb
mov r9d, r8d
add ecx, edx
xor r9d, edx
xor r9d, ecx
add r9d, eax
mov eax, dword [rsp + 0xc]
rol r9d, 0x10
add r9d, ecx
lea r8d, [rax + r8 - 0x3b53a99b]
mov eax, edx
xor eax, ecx
xor eax, r9d
add eax, r8d
lea r8d, [r14 + rdx - 0xbd6ddbc]
ror eax, 9
mov edx, ecx
mov r14d, dword [rsp + 0x10]
add eax, r9d
not edx
or edx, eax
xor edx, r9d
add edx, r8d
lea r8d, [r13 + rcx + 0x432aff97]
mov r13d, r9d
rol edx, 6
lea r9d, [r12 + r9 - 0x546bdc59]
not r13d
add edx, eax
mov ecx, r13d
mov r13d, edx
or ecx, edx
not r13d
xor ecx, eax
add ecx, r8d
mov r8d, eax
rol ecx, 0xa
not r8d
add ecx, edx
or r8d, ecx
xor r8d, edx
add r8d, r9d
lea r9d, [r15 + rax - 0x36c5fc7]
rol r8d, 0xf
mov eax, r13d
mov r15d, dword [rsp + 0x30]
add r8d, ecx
mov r13d, ecx
or eax, r8d
not r13d
mov r12d, r8d
xor eax, ecx
not r12d
add eax, r9d
lea r9d, [rbp + rdx + 0x655b59c3]
ror eax, 0xb
mov edx, r13d
mov ebp, dword [rsp + 0x14]
add eax, r8d
or edx, eax
xor edx, r8d
add edx, r9d
lea r9d, [r14 + rcx - 0x70f3336e]
rol edx, 6
mov ecx, r12d
mov r14d, dword [rsp + 0x18]
add edx, eax
or ecx, edx
mov r13d, edx
xor ecx, eax
not r13d
add ecx, r9d
lea r9d, [rbx + r8 - 0x100b83]
rol ecx, 0xa
mov r8d, eax
add ecx, edx
not r8d
or r8d, ecx
mov r12d, ecx
xor r8d, edx
not r12d
add r8d, r9d
mov r9d, dword [rsp + 8]
rol r8d, 0xf
add r8d, ecx
lea r9d, [r9 + rax - 0x7a7ba22f]
mov eax, r13d
or eax, r8d
xor eax, ecx
add eax, r9d
lea r9d, [r14 + rdx + 0x6fa87e4f]
ror eax, 0xb
mov edx, r12d
mov r14d, dword [rsp + 0x20]
add eax, r8d
or edx, eax
xor edx, r8d
add edx, r9d
lea r9d, [r11 + rcx - 0x1d31920]
rol edx, 6
mov ecx, r8d
add edx, eax
not ecx
or ecx, edx
xor ecx, eax
add ecx, r9d
lea r9d, [r15 + r8 - 0x5cfebcec]
rol ecx, 0xa
mov r8d, eax
mov r15d, dword [rsp + 0x1c]
lea eax, [r10 + rax + 0x4e0811a1]
add ecx, edx
not r8d
or r8d, ecx
mov r10d, edx
xor r8d, edx
not r10d
lea edx, [rbp + rdx - 0x8ac817e]
add r8d, r9d
mov r9d, r10d
rol r8d, 0xf
mov r10d, ecx
add r8d, ecx
not r10d
or r9d, r8d
xor r9d, ecx
lea ecx, [r14 + rcx - 0x42c50dcb]
add r9d, eax
mov eax, r10d
ror r9d, 0xb
add r9d, r8d
or eax, r9d
xor eax, r8d
add eax, edx
mov edx, r8d
rol eax, 6
not edx
add eax, r9d
or edx, eax
xor edx, r9d
add edx, ecx
mov ecx, dword [rsp + 0xc]
rol edx, 0xa
add edx, eax
lea r8d, [rcx + r8 + 0x2ad7d2bb]
mov ecx, r9d
lea r9d, [r15 + r9 - 0x14792c6f]
not ecx
or ecx, edx
xor ecx, eax
add ecx, r8d
mov r8d, eax
rol ecx, 0xf
not r8d
add ecx, edx
or r8d, ecx
xor r8d, edx
add r8d, r9d
ror r8d, 0xb
add r8d, ecx
add dword [rsp + 0x34], eax
add esi, r8d
add dword [rsp + 0x28], ecx
add dword [rsp + 0x24], edx
cmp qword [rsp + 0x38], rdi
ja 0x47ca10
mov ebx, dword [rsp + 0x28]
mov rax, qword [rsp + 0xa0]
mov edi, dword [rsp + 0x34]
mov dword [rax + 4], esi
mov esi, dword [rsp + 0x24]
mov dword [rax], edi
mov dword [rax + 8], ebx
mov dword [rax + 0xc], esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret