Function at 0x40af60
Capabilities:
Encode data using xor

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