Function at 0x4d9800
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
movdqu xmm1, xmmword [r8]
mov r10d, dword [r8 + 4]
mov rax, rdx
mov r9, r8
mov r11, rcx
movd dword [rsp + 0x30], xmm1
and rax, 0xfffffffffffffffc
lea rsi, [rcx + rax]
mov eax, dword [r8 + 8]
mov rcx, rdx
shr rcx, 0x20
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x24], eax
mov eax, dword [r8 + 0xc]
mov dword [rsp + 0x28], eax
mov eax, dword [r8 + 0x10]
add eax, edx
mov r8d, eax
movd xmm0, eax
cmp r8, rdx
adc ecx, dword [r9 + 0x14]
cmp r11, rsi
movd xmm2, ecx
punpckldq xmm0, xmm2
movq qword [r9 + 0x10], xmm0
jae 0x4da078
mov qword [rsp + 0xa0], r9
nop
mov r14d, dword [r11]
mov ebx, dword [rsp + 0x24]
mov eax, dword [rsp + 0x30]
mov esi, dword [rsp + 0x28]
mov edi, dword [r11 + 4]
mov ebp, dword [r11 + 0x10]
lea edx, [r14 + rax - 0x28955b88]
mov eax, ebx
mov r12d, dword [r11 + 0x14]
xor eax, esi
mov r13d, dword [r11 + 0x18]
lea ecx, [rdi + rsi - 0x173848aa]
and eax, r10d
mov dword [rsp + 4], edi
mov edi, dword [r11 + 0x20]
xor eax, esi
mov dword [rsp + 0x10], ebp
mov esi, dword [r11 + 0x3c]
add eax, edx
mov edx, ebx
mov dword [rsp + 0x14], r12d
rol eax, 7
xor edx, r10d
add eax, r10d
mov dword [rsp + 0x18], edi
and edx, eax
mov r15d, eax
xor edx, ebx
xor r15d, r10d
add edx, ecx
mov ecx, dword [r11 + 8]
rol edx, 0xc
add edx, eax
lea r8d, [rcx + rbx + 0x242070db]
mov dword [rsp + 8], ecx
mov ecx, r15d
mov r15d, dword [r11 + 0xc]
and ecx, edx
mov ebx, dword [r11 + 0x34]
xor ecx, r10d
add ecx, r8d
mov r8d, eax
ror ecx, 0xf
xor r8d, edx
mov dword [rsp + 0xc], r15d
lea r9d, [r15 + r10 - 0x3e423112]
add ecx, edx
mov r15d, dword [r11 + 0x24]
and r8d, ecx
xor r8d, eax
add r8d, r9d
lea r9d, [rbp + rax - 0xa83f051]
ror r8d, 0xa
mov eax, edx
mov ebp, dword [r11 + 0x2c]
add r8d, ecx
xor eax, ecx
and eax, r8d
xor eax, edx
add eax, r9d
mov dword [rsp + 0x1c], ebp
lea r9d, [r12 + rdx + 0x4787c62a]
rol eax, 7
mov edx, ecx
add eax, r8d
xor edx, r8d
mov r12d, r13d
and edx, eax
mov dword [rsp + 0x2c], r12d
xor edx, ecx
add edx, r9d
lea r9d, [r13 + rcx - 0x57cfb9ed]
mov r13d, r8d
rol edx, 0xc
xor r13d, eax
add edx, eax
mov ecx, r13d
mov r13d, dword [r11 + 0x1c]
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, [rdi + rax + 0x698098d8]
ror r8d, 0xa
mov eax, edx
mov edi, dword [r11 + 0x28]
add r8d, ecx
xor eax, ecx
and eax, r8d
xor eax, edx
add eax, r9d
lea r9d, [r15 + rdx - 0x74bb0851]
rol eax, 7
mov edx, ecx
add eax, r8d
xor edx, r8d
and edx, eax
xor edx, ecx
add edx, r9d
lea r9d, [rdi + 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, [rbp + r8 - 0x76a32842]
ror ecx, 0xf
mov r8d, eax
mov ebp, dword [r11 + 0x30]
add ecx, edx
xor r8d, edx
add r11, 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, [rbx + rdx - 0x2678e6d]
rol eax, 7
mov edx, ecx
add eax, r8d
xor edx, r8d
and edx, eax
xor edx, ecx
add edx, r9d
mov r9d, dword [r11 - 8]
rol edx, 0xc
add edx, eax
mov dword [rsp + 0x20], r9d
lea r9d, [r9 + rcx - 0x5986bc72]
mov ecx, r8d
xor ecx, eax
and ecx, edx
xor ecx, r8d
add ecx, r9d
lea r9d, [rsi + 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 + 4]
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, [r12 + rdx - 0x3fbf4cc0]
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 + 0x1c]
rol edx, 9
add edx, eax
lea r9d, [r9 + rcx + 0x265e5a51]
mov ecx, 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 + 0x14]
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, [rdi + 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, [rsi + 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 + 0x10]
rol ecx, 0xe
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
add r8d, ecx
xor eax, r8d
and eax, edx
xor eax, ecx
add eax, r9d
mov r9d, dword [rsp + 0x20]
rol eax, 5
mov r12d, dword [rsp + 0x18]
add eax, r8d
lea r9d, [r9 + rdx - 0x3cc8f82a]
mov edx, r8d
xor edx, eax
and edx, ecx
xor edx, r8d
add edx, r9d
mov r9d, dword [rsp + 0xc]
rol edx, 9
add edx, eax
lea r9d, [r9 + rcx - 0xb2af279]
mov ecx, eax
xor ecx, edx
and ecx, r8d
lea r8d, [r12 + r8 + 0x455a14ed]
xor ecx, eax
mov r12d, edx
add ecx, r9d
rol ecx, 0xe
add ecx, edx
xor r12d, ecx
mov r9d, r12d
and r9d, eax
xor r9d, edx
add r9d, r8d
lea r8d, [rbx + rax - 0x561c16fb]
ror r9d, 0xc
mov eax, ecx
add r9d, ecx
lea r12d, [rbp + r9 - 0x72d5b376]
xor eax, r9d
and eax, edx
mov dword [rsp + 0x34], r12d
xor eax, ecx
add eax, r8d
mov r8d, dword [rsp + 8]
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 r12d, ecx
and r12d, eax
mov r9d, r12d
mov r12d, dword [rsp + 0x34]
xor r9d, edx
add r9d, r12d
mov r12d, dword [rsp + 0x14]
ror r9d, 0xc
add r9d, r8d
xor ecx, r9d
lea eax, [r12 + 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 + 0x1c]
rol edx, 0xb
add edx, ecx
lea eax, [rax + r8 + 0x6d9d6122]
mov r8d, r9d
xor r8d, ecx
xor r8d, edx
add r8d, eax
mov eax, dword [rsp + 0x20]
rol r8d, 0x10
add r8d, edx
mov r12d, r8d
lea r9d, [rax + r9 - 0x21ac7f4]
mov eax, ecx
xor eax, edx
xor eax, r8d
add eax, r9d
mov r9d, dword [rsp + 4]
ror eax, 9
add eax, r8d
xor r12d, eax
lea r9d, [r9 + rcx - 0x5b4115bc]
mov ecx, edx
xor ecx, r8d
lea r8d, [r13 + r8 - 0x944b4a0]
xor ecx, eax
add ecx, r9d
mov r9d, dword [rsp + 0x10]
rol ecx, 4
add ecx, eax
lea edx, [r9 + rdx + 0x4bdecfa9]
mov r9d, r12d
xor r9d, ecx
add r9d, edx
mov edx, eax
lea eax, [rdi + 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, [rbx + rcx + 0x289b7ec6]
ror r8d, 9
mov ecx, r9d
lea r9d, [r14 + r9 - 0x155ed806]
add r8d, edx
xor ecx, edx
xor ecx, r8d
mov r12d, r8d
add ecx, eax
mov eax, edx
rol ecx, 4
xor eax, r8d
add ecx, r8d
xor eax, ecx
xor r12d, ecx
add eax, r9d
mov r9d, dword [rsp + 0xc]
rol eax, 0xb
add eax, ecx
lea edx, [r9 + rdx - 0x2b10cf7b]
mov r9d, r12d
xor r9d, eax
add r9d, edx
mov edx, dword [rsp + 0x2c]
rol r9d, 0x10
add r9d, eax
lea edx, [rdx + r8 + 0x4881d05]
mov r8d, ecx
lea ecx, [r15 + rcx - 0x262b2fc7]
xor r8d, eax
xor r8d, r9d
add r8d, edx
mov edx, eax
lea eax, [rbp + rax - 0x1924661b]
ror r8d, 9
xor edx, r9d
add r8d, r9d
xor edx, r8d
mov r12d, r8d
add edx, ecx
mov ecx, r9d
rol edx, 4
add edx, r8d
xor ecx, r8d
xor ecx, edx
xor r12d, edx
add ecx, eax
lea eax, [rsi + r9 + 0x1fa27cf8]
rol ecx, 0xb
mov r9d, r12d
mov r12d, dword [rsp + 0x14]
add ecx, edx
xor r9d, ecx
add r9d, eax
mov eax, dword [rsp + 8]
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 + 0x20]
add eax, r9d
not edx
or edx, eax
xor edx, r9d
add edx, r8d
lea r8d, [r13 + rcx + 0x432aff97]
rol edx, 6
mov ecx, r9d
lea r9d, [r14 + r9 - 0x546bdc59]
add edx, eax
not ecx
mov r14d, dword [rsp + 0xc]
or ecx, edx
mov r13d, edx
xor ecx, eax
not r13d
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, [r12 + rax - 0x36c5fc7]
rol r8d, 0xf
mov eax, r13d
mov r12d, dword [rsp + 0x2c]
add r8d, ecx
or eax, r8d
xor eax, ecx
add eax, r9d
lea r9d, [rbp + rdx + 0x655b59c3]
ror eax, 0xb
mov edx, ecx
add eax, r8d
not edx
or edx, eax
xor edx, r8d
add edx, r9d
lea r9d, [r14 + rcx - 0x70f3336e]
rol edx, 6
mov ecx, r8d
mov r14d, dword [rsp + 0x18]
add edx, eax
not ecx
or ecx, edx
mov r13d, edx
xor ecx, eax
not r13d
add ecx, r9d
lea r9d, [rdi + r8 - 0x100b83]
rol ecx, 0xa
mov r8d, eax
mov edi, dword [rsp + 8]
add ecx, edx
not r8d
or r8d, ecx
xor r8d, edx
add r8d, r9d
mov r9d, dword [rsp + 4]
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, ecx
add eax, r8d
not edx
or edx, eax
xor edx, r8d
add edx, r9d
lea r9d, [rsi + rcx - 0x1d31920]
rol edx, 6
mov ecx, r8d
add edx, eax
not ecx
or ecx, edx
mov r14d, edx
xor ecx, eax
not r14d
add ecx, r9d
lea r9d, [r12 + r8 - 0x5cfebcec]
rol ecx, 0xa
mov r8d, eax
add ecx, edx
not r8d
or r8d, ecx
xor r8d, edx
add r8d, r9d
lea r9d, [rbx + rax + 0x4e0811a1]
rol r8d, 0xf
mov eax, r14d
add r8d, ecx
or eax, r8d
xor eax, ecx
add eax, r9d
mov r9d, dword [rsp + 0x10]
ror eax, 0xb
add eax, r8d
lea r9d, [r9 + rdx - 0x8ac817e]
mov edx, ecx
not edx
or edx, eax
xor edx, r8d
add edx, r9d
mov r9d, dword [rsp + 0x1c]
rol edx, 6
add edx, eax
lea r9d, [r9 + rcx - 0x42c50dcb]
mov ecx, r8d
not ecx
or ecx, edx
xor ecx, eax
add ecx, r9d
lea r9d, [rdi + r8 + 0x2ad7d2bb]
rol ecx, 0xa
mov r8d, eax
add ecx, edx
not r8d
or r8d, ecx
xor r8d, edx
add r8d, r9d
lea r9d, [r15 + rax - 0x14792c6f]
rol r8d, 0xf
mov eax, edx
add r8d, ecx
not eax
or eax, r8d
add r10d, r8d
xor eax, ecx
add eax, r9d
ror eax, 0xb
add dword [rsp + 0x30], edx
add r10d, eax
mov rax, qword [rsp + 0x38]
add dword [rsp + 0x24], r8d
add dword [rsp + 0x28], ecx
cmp r11, rax
jb 0x4d9880
mov r9, qword [rsp + 0xa0]
movd xmm4, r10d
movd xmm0, dword [rsp + 0x24]
movd xmm3, dword [rsp + 0x28]
movd xmm1, dword [rsp + 0x30]
punpckldq xmm0, xmm3
punpckldq xmm1, xmm4
punpcklqdq xmm1, xmm0
movups xmmword [r9], xmm1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret