Function at 0x570240
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x308
mov r12, qword [rcx]
mov rsi, qword [rcx + 0x10]
mov rdi, qword [rcx + 0x18]
mov r9, qword [rcx + 0x38]
mov r10, qword [rcx + 0x20]
mov r11, qword [rcx + 0x28]
mov r15, qword [rcx + 0x48]
mov r13, qword [rcx + 8]
mov r14, qword [rcx + 0x40]
mov qword [rsp + 0x360], r8
lea rbp, [rsp + 0x80]
mov r8, qword [rcx + 0x30]
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xb0], r8
mov qword [rsp + 0xb8], r9
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0xd0], r12
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0x100], r8
mov qword [rsp + 0x108], r9
mov qword [rsp + 0x118], r15
mov qword [rsp + 0x120], r12
mov qword [rsp + 0x88], r13
mov qword [rsp + 0xa0], r10
mov qword [rsp + 0xa8], r11
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xd8], r13
mov qword [rsp + 0xf0], r10
mov qword [rsp + 0xf8], r11
mov qword [rsp + 0x110], r14
mov qword [rsp + 0x128], r13
vmovdqu xmm5, xmmword [rcx]
mov rbx, qword [rdx + 0x18]
mov rcx, qword [rdx + 0x10]
mov qword [rsp + 0x150], r8
vmovups xmmword [rsp + 0x170], xmm5
vmovdqu xmm5, xmmword [rdx + 0x20]
vmovdqu xmm4, xmmword [rdx + 0x30]
mov qword [rsp + 0x158], r9
mov qword [rsp + 0x1b0], r8
mov r8, qword [rdx]
mov qword [rsp + 0x1b8], r9
mov r9, qword [rdx + 8]
vmovups xmmword [rsp + 0x1e0], xmm5
vmovdqu xmm5, xmmword [rdx + 0x40]
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x138], rdi
mov qword [rsp + 0x168], r15
xor r15d, r15d
mov qword [rsp + 0x180], r12
lea r12, [rsp + 0x2e0]
mov qword [rsp + 0x190], rsi
lea rsi, [rsp + 0x1c0]
mov qword [rsp + 0x198], rdi
mov edi, 0x20
vmovups xmmword [rsp + 0x200], xmm5
mov qword [rsp + 0x140], r10
mov qword [rsp + 0x148], r11
mov qword [rsp + 0x160], r14
mov qword [rsp + 0x188], r13
mov qword [rsp + 0x1a0], r10
mov qword [rsp + 0x1a8], r11
mov qword [rsp + 0x1c0], r8
mov qword [rsp + 0x1c8], r9
mov qword [rsp + 0x1d0], rcx
mov qword [rsp + 0x1d8], rbx
vmovups xmmword [rsp + 0x1f0], xmm4
vmovdqu xmm4, xmmword [rdx + 0x50]
vmovdqu xmm5, xmmword [rdx + 0x60]
mov qword [rsp + 0x2c0], r8
vmovups xmmword [rsp + 0x210], xmm4
vmovdqu xmm4, xmmword [rdx + 0x70]
vmovups xmmword [rsp + 0x220], xmm5
vmovdqu xmm5, xmmword [rdx + 0x80]
vmovups xmmword [rsp + 0x230], xmm4
vmovdqu xmm4, xmmword [rdx + 0x90]
vmovups xmmword [rsp + 0x240], xmm5
vmovdqu xmm5, xmmword [rdx + 0xa0]
vmovups xmmword [rsp + 0x250], xmm4
vmovdqu xmm4, xmmword [rdx + 0xb0]
vmovups xmmword [rsp + 0x260], xmm5
vmovdqu xmm5, xmmword [rdx + 0xc0]
vmovups xmmword [rsp + 0x270], xmm4
vmovdqu xmm4, xmmword [rdx + 0xd0]
vmovups xmmword [rsp + 0x280], xmm5
vmovdqu xmm5, xmmword [rdx + 0xe0]
vmovups xmmword [rsp + 0x290], xmm4
vmovdqu xmm4, xmmword [rdx + 0xf0]
mov qword [rsp + 0x2c8], r9
mov qword [rsp + 0x2d0], rcx
mov qword [rsp + 0x2d8], rbx
vmovups xmmword [rsp + 0x2a0], xmm5
vmovups xmmword [rsp + 0x2b0], xmm4
jmp 0x57051b
dec edi
je 0x570721
vzeroupper
lea rdx, [rsi + r15]
lea rcx, [rbp + r15]
mov r8, r12
call fcn.00570020
mov edx, dword [rsp + 0x2e0]
vpmovzxbw ymm2, xmmword [rsp + 0x2e0]
vmovdqu ymm3, ymmword [rsp + 0x2e0]
vpmovzxwd ymm1, xmm2
vextracti128 xmm2, ymm2, 1
vextracti128 xmm0, ymm3, 1
vpmovzxwd ymm2, xmm2
vpmovzxbw ymm0, xmm0
vpaddd ymm1, ymm1, ymm2
vpmovzxwd ymm2, xmm0
vextracti128 xmm0, ymm0, 1
vpmovzxwd ymm0, xmm0
vpaddd ymm0, ymm2, ymm0
vpaddd ymm0, ymm1, ymm0
vmovdqu xmm1, xmm0
vextracti128 xmm0, ymm0, 1
vpaddd xmm0, xmm1, xmm0
vpsrldq xmm1, xmm0, 8
vpaddd xmm0, xmm0, xmm1
vpsrldq xmm1, xmm0, 4
vpaddd xmm0, xmm0, xmm1
vmovd eax, xmm0
movzx r15d, al
lea rbx, [rsi + r15]
mov r14, r15
xor dword [rbx], edx
mov edx, dword [rsp + 0x2e4]
xor dword [rbx + 4], edx
mov edx, dword [rsp + 0x2e8]
xor dword [rbx + 8], edx
mov edx, dword [rsp + 0x2ec]
xor dword [rbx + 0xc], edx
mov edx, dword [rsp + 0x2f0]
xor dword [rbx + 0x10], edx
mov edx, dword [rsp + 0x2f4]
xor dword [rbx + 0x14], edx
mov edx, dword [rsp + 0x2f8]
xor dword [rbx + 0x18], edx
mov edx, dword [rsp + 0x2fc]
xor dword [rbx + 0x1c], edx
and eax, 0xe0
jne 0x570694
lea edx, [r15 + 0x100]
add rdx, rsi
cmp r15d, 0x20
ja 0x570798
mov r9d, 0x20
sub r9d, r15d
mov eax, r9d
mov r8d, r9d
and eax, 3
shr r8d, 2
je 0x57066d
lea ecx, [r8 - 1]
test r8d, r8d
mov r11d, 4
lea rcx, [rcx*4 + 4]
cmove rcx, r11
mov r8d, ecx
cmp ecx, 8
jae 0x5707a9
and ecx, 4
jne 0x570d98
test r8d, r8d
je 0x57066d
movzx ecx, byte [rbx]
mov byte [rdx], cl
test r8b, 2
jne 0x570e7c
test eax, eax
je 0x570694
mov ecx, r9d
sub ecx, eax
cmp ecx, r9d
jae 0x570694
mov r8d, ecx
dec eax
lea rcx, [rdx + r8]
lea rdx, [rbx + r8]
lea r8, [rax + 1]
vzeroupper
call sub.msvcrt.dll_memcpy
mov r13d, 0x100
sub r13d, r14d
cmp r13d, 0x1f
ja 0x570510
lea r9d, [r14 - 0xe0]
mov eax, r9d
shr eax, 2
je 0x5706dd
dec eax
lea rdx, [rsp + 0x2c0]
mov rcx, rsi
mov dword [rsp + 0x20], r9d
lea r8, [rax*4 + 4]
vzeroupper
call sub.msvcrt.dll_memmove
mov r9d, dword [rsp + 0x20]
mov edx, r9d
and edx, 3
je 0x570510
mov eax, r9d
sub eax, edx
cmp r9d, eax
jbe 0x570510
sub edx, r9d
lea rcx, [rsi + rax]
lea r8d, [r14 + rdx - 0xe1]
lea rdx, [rsp + rax + 0x2c0]
inc r8
vzeroupper
call sub.msvcrt.dll_memmove
dec edi
jne 0x570518
mov r9d, r13d
cmp r13d, 0x1f
jbe 0x5707e2
lea rax, [rbx + 0x20]
cmp rbp, rax
jae 0x570748
lea rax, [rsp + 0xa0]
cmp rbx, rax
jb 0x570dab
vmovdqu ymm4, ymmword [rbx]
vpxor ymm0, ymm4, ymmword [rsp + 0x80]
vmovdqu ymmword [rbx], ymm0
mov rax, qword [rsp + 0x360]
vmovdqu xmm3, xmmword [rbx]
mov rdi, qword [rsp + 0x360]
mov rdx, qword [rbx + 0x18]
vmovups xmmword [rax], xmm3
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x18], rdx
mov qword [rdi + 0x10], rax
vzeroupper
add rsp, 0x308
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, 8
mov r9d, 0x20
jmp 0x57062b
mov r8d, ecx
mov r10, qword [rbx + r8 - 8]
mov qword [rdx + r8 - 8], r10
lea r8d, [rcx - 1]
cmp r8d, 8
jb 0x57066d
and r8d, 0xfffffff8
xor ecx, ecx
mov r10d, ecx
add ecx, 8
mov r11, qword [rbx + r10]
mov qword [rdx + r10], r11
cmp ecx, r8d
jb 0x5707ca
jmp 0x57066d
mov ecx, r13d
shr ecx, 2
je 0x570858
lea rax, [rbx + 0x10]
cmp rbp, rax
lea rax, [rsp + 0x90]
setae dl
cmp rbx, rax
setae al
or dl, al
je 0x570dff
lea eax, [rcx - 1]
cmp eax, 2
jbe 0x570dff
vmovdqu xmm5, xmmword [rbx]
vpxor xmm0, xmm5, xmmword [rsp + 0x80]
vmovups xmmword [rbx], xmm0
cmp ecx, 4
je 0x570858
mov eax, dword [rsp + 0x90]
xor dword [rbx + 0x10], eax
cmp ecx, 5
je 0x570858
mov eax, dword [rsp + 0x94]
xor dword [rbx + 0x14], eax
cmp ecx, 7
jne 0x570eb0
mov eax, dword [rsp + 0x98]
xor dword [rbx + 0x18], eax
mov r15d, r9d
and r15d, 3
je 0x570d3a
mov eax, r9d
sub eax, r15d
cmp r9d, eax
jbe 0x570d3a
mov edx, eax
lea r8, [rsp + 0x40]
lea r11, [rbx + rdx + 0x10]
lea r13, [rsp + rdx + 0x80]
cmp r13, r11
lea r12, [rbx + rdx]
lea r11, [rsp + rdx + 0x90]
setae r10b
cmp r12, r11
setae r11b
or r10b, r11b
je 0x570ce0
lea r10d, [r15 - 1]
lea r11d, [r14 + r15 - 0x100]
cmp r10d, 0xe
jbe 0x570ce0
add r11d, r9d
vmovdqu xmm4, xmmword [r13]
vpxor xmm0, xmm4, xmmword [r12]
mov edx, r11d
and edx, 0xfffffff0
vmovups xmmword [r12], xmm0
add eax, edx
cmp r11d, edx
je 0x570a3a
mov edx, eax
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 1]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 2]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 3]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 4]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 5]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 6]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 7]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 8]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 9]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 0xa]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 0xb]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 0xc]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
xor byte [rbx + rdx], r11b
lea edx, [rax + 0xd]
cmp r9d, edx
jbe 0x570a3a
movzx r11d, byte [rsp + rdx + 0x80]
add eax, 0xe
xor byte [rbx + rdx], r11b
cmp r9d, eax
jbe 0x570a3a
movzx edx, byte [rsp + rax + 0x80]
xor byte [rbx + rax], dl
lea r12d, [r14 - 0xe0]
mov r13d, r9d
mov r10d, r12d
add rbp, r13
shr r10d, 2
je 0x570b50
lea rax, [r8 + r13 + 0x40]
lea r11d, [r10 - 1]
mov qword [rsp + 0x20], rax
lea rax, [r8 + r13 + 0x60]
cmp rsi, rax
lea rax, [rsp + 0x1e0]
setae byte [rsp + 0x28]
cmp qword [rsp + 0x20], rax
movzx edx, byte [rsp + 0x28]
mov qword [rsp + 0x28], rax
setae al
or dl, al
je 0x570e50
cmp r11d, 6
jbe 0x570e50
mov r11d, r12d
mov rax, rsi
lea rdx, [r8 + r13 + 0x40]
shr r11d, 5
mov dword [rsp + 0x20], r11d
dec r11d
shl r11, 5
add r11, qword [rsp + 0x28]
vmovdqu ymm4, ymmword [rdx]
vpxor ymm0, ymm4, ymmword [rax]
add rax, 0x20
add rdx, 0x20
vmovdqu ymmword [rax - 0x20], ymm0
cmp rax, r11
jne 0x570abb
mov eax, dword [rsp + 0x20]
shl eax, 3
cmp eax, r10d
je 0x570b50
mov edx, eax
mov r11d, dword [rbp + rdx*4]
xor dword [rsi + rdx*4], r11d
lea edx, [rax + 1]
cmp r10d, edx
jbe 0x570b50
mov r11d, dword [rbp + rdx*4]
xor dword [rsi + rdx*4], r11d
lea edx, [rax + 2]
cmp r10d, edx
jbe 0x570b50
mov r11d, dword [rbp + rdx*4]
xor dword [rsi + rdx*4], r11d
lea edx, [rax + 3]
cmp r10d, edx
jbe 0x570b50
mov r11d, dword [rbp + rdx*4]
xor dword [rsi + rdx*4], r11d
lea edx, [rax + 4]
cmp r10d, edx
jbe 0x570b50
mov r11d, dword [rbp + rdx*4]
xor dword [rsi + rdx*4], r11d
lea edx, [rax + 5]
cmp r10d, edx
jbe 0x570b50
add eax, 6
mov r11d, dword [rbp + rdx*4]
xor dword [rsi + rdx*4], r11d
cmp r10d, eax
jbe 0x570b50
mov edx, dword [rbp + rax*4]
xor dword [rsi + rax*4], edx
mov eax, r12d
and eax, 3
mov dword [rsp + 0x20], eax
je 0x570c15
mov eax, r12d
sub eax, dword [rsp + 0x20]
mov dword [rsp + 0x3c], eax
cmp r12d, eax
jbe 0x570c15
lea rdx, [rax + r13 + 0x40]
lea r11, [rax + 0x180]
mov qword [rsp + 0x28], rdx
lea rdx, [rax + r13 + 0x60]
cmp r11, rdx
mov qword [rsp + 0x30], r11
lea rdx, [rax + 0x1a0]
setge r11b
cmp rdx, qword [rsp + 0x28]
setle dl
or r11b, dl
je 0x570d09
mov edx, dword [rsp + 0x20]
sub edx, r12d
lea edx, [r14 + rdx - 0xe1]
cmp edx, 0x1e
jbe 0x570d09
mov rdx, qword [rsp + 0x30]
mov r11d, 0x8000000
xor eax, eax
add rdx, r8
add r8, qword [rsp + 0x28]
vmovdqu ymm5, ymmword [rdx + rax]
vpxor ymm0, ymm5, ymmword [r8 + rax]
inc edi
vmovdqu ymmword [rdx + rax], ymm0
add rax, 0x20
cmp r11d, edi
ja 0x570bdb
mov edx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x3c]
test edx, edx
je 0x570c15
mov edx, eax
inc eax
movzx r8d, byte [rbp + rdx]
xor byte [rsi + rdx], r8b
cmp r12d, eax
ja 0x570c02
test ecx, ecx
je 0x570c3d
lea eax, [rcx - 1]
lea rax, [rax*4 + 4]
cmp eax, 8
jae 0x570d44
test al, 4
jne 0x570e8d
test eax, eax
jne 0x570d86
test r15d, r15d
je 0x570d32
mov edx, r9d
sub edx, r15d
cmp r9d, edx
jbe 0x570d32
mov rcx, qword [rsp + 0x360]
lea eax, [r15 - 1]
mov dword [rsp + 0x28], r10d
lea r8, [rax + 1]
add rcx, rdx
add rdx, rbx
vzeroupper
call sub.msvcrt.dll_memcpy
mov r10d, dword [rsp + 0x28]
add r13, qword [rsp + 0x360]
test r10d, r10d
je 0x570ca1
lea eax, [r10 - 1]
mov rdx, rsi
mov rcx, r13
lea r8, [rax*4 + 4]
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x570784
mov eax, dword [rsp + 0x20]
mov edx, r12d
sub edx, eax
cmp r12d, edx
jbe 0x570784
sub eax, r12d
lea rcx, [r13 + rdx]
add rdx, rsi
lea eax, [r14 + rax - 0xe1]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
jmp 0x570784
movzx eax, byte [rbp + rdx]
xor byte [rbx + rdx], al
inc rdx
cmp r9d, edx
jbe 0x570a3a
movzx eax, byte [rbp + rdx]
xor byte [rbx + rdx], al
inc rdx
cmp r9d, edx
ja 0x570ce0
jmp 0x570a3a
movzx edx, byte [rbp + rax]
xor byte [rsi + rax], dl
inc rax
cmp r12d, eax
jbe 0x570c15
movzx edx, byte [rbp + rax]
xor byte [rsi + rax], dl
inc rax
cmp r12d, eax
ja 0x570d09
jmp 0x570c15
vzeroupper
jmp 0x570c7d
lea r8, [rsp + 0x40]
jmp 0x570a3a
mov edx, eax
mov rdi, qword [rsp + 0x360]
dec eax
mov rcx, qword [rbx + rdx - 8]
mov qword [rdi + rdx - 8], rcx
cmp eax, 8
jb 0x570c3d
and eax, 0xfffffff8
xor edx, edx
mov ecx, edx
mov rdi, qword [rsp + 0x360]
add edx, 8
mov r8, qword [rbx + rcx]
mov qword [rdi + rcx], r8
cmp edx, eax
jb 0x570d68
jmp 0x570c3d
movzx eax, byte [rbx]
mov rdi, qword [rsp + 0x360]
mov byte [rdi], al
jmp 0x570c3d
mov ecx, dword [rbx]
mov dword [rdx], ecx
mov ecx, dword [rbx + r8 - 4]
mov dword [rdx + r8 - 4], ecx
jmp 0x57066d
mov eax, dword [rsp + 0x80]
xor dword [rbx], eax
mov eax, dword [rsp + 0x84]
xor dword [rbx + 4], eax
mov eax, dword [rsp + 0x88]
xor dword [rbx + 8], eax
mov eax, dword [rsp + 0x8c]
xor dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x90]
xor dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x94]
xor dword [rbx + 0x14], eax
mov eax, dword [rsp + 0x98]
xor dword [rbx + 0x18], eax
mov eax, dword [rsp + 0x9c]
xor dword [rbx + 0x1c], eax
jmp 0x570759
mov eax, dword [rsp + 0x80]
xor dword [rbx], eax
cmp ecx, 1
je 0x570858
mov eax, dword [rsp + 0x84]
xor dword [rbx + 4], eax
cmp ecx, 2
je 0x570858
mov eax, dword [rsp + 0x88]
xor dword [rbx + 8], eax
cmp ecx, 3
je 0x570858
mov eax, dword [rsp + 0x8c]
xor dword [rbx + 0xc], eax
cmp ecx, 4
jne 0x57082c
jmp 0x570858
mov dword [rsp + 0x20], ecx
mov rax, rsi
mov rdx, rbp
lea r11, [rsp + r11*4 + 0x1c4]
mov ecx, dword [rdx]
xor dword [rax], ecx
add rax, 4
add rdx, 4
cmp r11, rax
jne 0x570e62
mov ecx, dword [rsp + 0x20]
jmp 0x570b50
movzx ecx, word [rbx + r8 - 2]
mov word [rdx + r8 - 2], cx
jmp 0x57066d
mov edx, dword [rbx]
mov rdi, qword [rsp + 0x360]
mov eax, eax
mov dword [rdi], edx
mov edx, dword [rbx + rax - 4]
mov rdi, qword [rsp + 0x360]
mov dword [rdi + rax - 4], edx
jmp 0x570c3d
mov ecx, 6
jmp 0x570858