Function at 0x1400203a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x628
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rdx + 0x28]
mov qword [rsp + 0x38], rax
movzx eax, byte [rdx + 0x30]
mov byte [rsp + 0x2f], al
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], 0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], 0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
movups xmmword [rsp + 0xb8], xmm0
mov qword [rsp + 0xc8], 0
movaps xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], 0
movups xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xf8], 0
movaps xmmword [rsp + 0x100], xmm0
mov qword [rsp + 0x110], 0
movups xmmword [rsp + 0x118], xmm0
mov qword [rsp + 0x128], 0
movaps xmmword [rsp + 0x130], xmm0
mov qword [rsp + 0x140], 0
movups xmmword [rsp + 0x148], xmm0
mov qword [rsp + 0x158], 0
movaps xmmword [rsp + 0x160], xmm0
mov qword [rsp + 0x170], 0
movups xmmword [rsp + 0x178], xmm0
mov qword [rsp + 0x188], 0
movaps xmmword [rsp + 0x190], xmm0
mov qword [rsp + 0x1a0], 0
movups xmmword [rsp + 0x1a8], xmm0
mov qword [rsp + 0x1b8], 0
movaps xmmword [rsp + 0x1c0], xmm0
mov qword [rsp + 0x1d0], 0
movups xmmword [rsp + 0x1d8], xmm0
mov qword [rsp + 0x1e8], 0
movaps xmmword [rsp + 0x1f0], xmm0
mov qword [rsp + 0x200], 0
movups xmmword [rsp + 0x208], xmm0
mov qword [rsp + 0x218], 0
movaps xmmword [rsp + 0x220], xmm0
mov qword [rsp + 0x230], 0
movups xmmword [rsp + 0x238], xmm0
mov qword [rsp + 0x248], 0
movaps xmmword [rsp + 0x250], xmm0
mov qword [rsp + 0x260], 0
movups xmmword [rsp + 0x268], xmm0
mov qword [rsp + 0x278], 0
movaps xmmword [rsp + 0x280], xmm0
mov qword [rsp + 0x290], 0
movups xmmword [rsp + 0x298], xmm0
mov qword [rsp + 0x2a8], 0
movaps xmmword [rsp + 0x2b0], xmm0
mov qword [rsp + 0x2c0], 0
movups xmmword [rsp + 0x2c8], xmm0
mov qword [rsp + 0x2d8], 0
movaps xmmword [rsp + 0x2e0], xmm0
mov qword [rsp + 0x2f0], 0
movups xmmword [rsp + 0x2f8], xmm0
mov qword [rsp + 0x308], 0
movaps xmmword [rsp + 0x310], xmm0
mov qword [rsp + 0x320], 0
movups xmmword [rsp + 0x328], xmm0
mov qword [rsp + 0x338], 0
movaps xmmword [rsp + 0x340], xmm0
mov qword [rsp + 0x350], 0
movups xmmword [rsp + 0x358], xmm0
mov qword [rsp + 0x368], 0
movaps xmmword [rsp + 0x370], xmm0
mov qword [rsp + 0x380], 0
movups xmmword [rsp + 0x388], xmm0
mov qword [rsp + 0x398], 0
movaps xmmword [rsp + 0x3a0], xmm0
mov qword [rsp + 0x3b0], 0
movups xmmword [rsp + 0x3b8], xmm0
mov qword [rsp + 0x3c8], 0
movaps xmmword [rsp + 0x3d0], xmm0
mov qword [rsp + 0x3e0], 0
movups xmmword [rsp + 0x3e8], xmm0
mov qword [rsp + 0x3f8], 0
movaps xmmword [rsp + 0x400], xmm0
mov qword [rsp + 0x410], 0
movups xmmword [rsp + 0x418], xmm0
mov qword [rsp + 0x428], 0
movaps xmmword [rsp + 0x430], xmm0
mov qword [rsp + 0x440], 0
movups xmmword [rsp + 0x448], xmm0
mov qword [rsp + 0x458], 0
movaps xmmword [rsp + 0x460], xmm0
mov qword [rsp + 0x470], 0
movups xmmword [rsp + 0x478], xmm0
mov qword [rsp + 0x488], 0
movaps xmmword [rsp + 0x490], xmm0
mov qword [rsp + 0x4a0], 0
movups xmmword [rsp + 0x4a8], xmm0
mov qword [rsp + 0x4b8], 0
movaps xmmword [rsp + 0x4c0], xmm0
mov qword [rsp + 0x4d0], 0
movups xmmword [rsp + 0x4d8], xmm0
mov qword [rsp + 0x4e8], 0
movaps xmmword [rsp + 0x4f0], xmm0
mov qword [rsp + 0x500], 0
movups xmmword [rsp + 0x508], xmm0
mov qword [rsp + 0x518], 0
movaps xmmword [rsp + 0x520], xmm0
mov qword [rsp + 0x530], 0
movups xmmword [rsp + 0x538], xmm0
mov qword [rsp + 0x548], 0
movaps xmmword [rsp + 0x550], xmm0
mov qword [rsp + 0x560], 0
movups xmmword [rsp + 0x568], xmm0
mov qword [rsp + 0x578], 0
movaps xmmword [rsp + 0x580], xmm0
mov qword [rsp + 0x590], 0
movups xmmword [rsp + 0x598], xmm0
mov qword [rsp + 0x5a8], 0
movaps xmmword [rsp + 0x5b0], xmm0
mov qword [rsp + 0x5c0], 0
movups xmmword [rsp + 0x5c8], xmm0
mov qword [rsp + 0x5d8], 0
movaps xmmword [rsp + 0x5e0], xmm0
mov qword [rsp + 0x5f0], 0
movups xmmword [rsp + 0x5f8], xmm0
mov qword [rsp + 0x608], 0
movaps xmmword [rsp + 0x610], xmm0
mov qword [rsp + 0x620], 0
movzx eax, byte [0x141d94108]
mov edx, 0x5f0
xor ecx, ecx
call fcn.1400321b0
test rax, rax
je 0x140020afa
mov rbx, rax
lea r15, [rsi + 0x38]
movabs r12, 0x800000000000000
mov qword [rax], 0
mov rcx, rax
add rcx, 8
lea rdx, [rsp + 0x40]
mov r8d, 0x5e8
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x30], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xa60c596fc19fead0
movabs r9, 0xded7d4e2d7dedfc6
movabs r10, 0xe414a674f0de7325
mov ebp, 1
lock xadd qword [0x141d94040], rbp
mov r14, rbp
xor r14, rcx
mov rax, r14
rol rax, 0x10
lea r11, [r14 + rdx]
xor rax, r11
add r14, r8
lea r13, [rax + r9]
mov r11, r14
xor r11, r10
rol rax, 0x15
rol r14, 0x20
xor rbp, r13
xor r13, r12
xor r13, rax
add rbp, r11
rol r11, 0xd
add r14, r13
xor r11, rbp
rol r13, 0x10
xor r13, r14
rol rbp, 0x20
add r14, r11
add rbp, r13
rol r11, 0x11
xor r11, r14
rol r13, 0x15
rol r14, 0x20
xor r13, rbp
xor rbp, r12
xor r14, 0xff
add rbp, r11
add r14, r13
rol r11, 0xd
xor r11, rbp
rol r13, 0x10
rol rbp, 0x20
xor r13, r14
add r14, r11
rol r11, 0x11
add rbp, r13
xor r11, r14
rol r13, 0x15
xor r13, rbp
rol r14, 0x20
add rbp, r11
add r14, r13
rol r11, 0xd
xor r11, rbp
rol r13, 0x10
rol rbp, 0x20
xor r13, r14
add r14, r11
rol r11, 0x11
add rbp, r13
xor r11, r14
rol r13, 0x15
xor r13, rbp
rol r14, 0x20
add rbp, r11
add r14, r13
rol r11, 0xd
xor r11, rbp
rol r13, 0x10
xor r13, r14
add r14, r11
rol r11, 0x11
rol r13, 0x15
mov rbp, r14
rol rbp, 0x20
xor rbp, r11
xor rbp, r13
xor rbp, r14
je 0x140020930
mov rax, qword [rsi + 0x58]
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov rcx, qword [rsp + 0x38]
mov qword [rdi + 0x138], rcx
movzx ecx, byte [rsp + 0x2f]
mov byte [rdi + 0x140], cl
mov qword [rdi], 0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x80], 0
mov qword [rdi + 0x88], rbx
mov rcx, qword [rsp + 0x30]
mov qword [rdi + 0x100], rcx
mov qword [rdi + 0x108], rbp
mov qword [rdi + 0x110], rax
mov rax, qword [rsi + 0x10]
movabs rcx, 0x8000000000000000
cmp rax, rcx
je 0x140020ae5
test rax, rax
je 0x140020ae5
mov r8, qword [rsi + 0x18]
mov rcx, qword [0x141d940e8]
xor edx, edx
add rsp, 0x628
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x628
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2