Function at 0x140051560
Capabilities:
Create thread
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r15
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140071040]
xor rax, rsp
mov qword [rbp - 8], rax
mov esi, dword [0x1402ad2f4]
movsxd rax, dword [0x1402ac390]
xor r9d, r9d
cmp eax, 0x7b
ja 0x1400515ad
lea r9, [0x1402ac3a0]
mov r9, qword [r9 + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
mov r15d, 0xf
mov qword [rbp - 0x10], r15
mov byte [rbp - 0x28], 0
test r9, r9
jne 0x140051778
mov byte [rbp - 0x50], 0xa3
mov byte [rbp - 0x4f], 0x9f
mov byte [rbp - 0x4e], 0x92
mov byte [rbp - 0x4d], 0x91
mov byte [rbp - 0x4c], 0x97
mov byte [rbp - 0x4b], 0x8a
mov byte [rbp - 0x4a], 0xdb
mov byte [rbp - 0x49], 0xb1
mov byte [rbp - 0x48], 0x94
mov byte [rbp - 0x47], 0x84
mov byte [rbp - 0x46], 0xf2
movzx eax, byte [rbp - 0x50]
movabs r11, 0xae283c0d117c38f4
mov r10, r11
lea rax, [rbp - 0x50]
sub r10, rax
nop word [rax + rax]
lea rdx, [rbp - 0x50]
add rdx, r9
movsx r8, byte [rdx]
mov rcx, r9
and ecx, 0xf
cmp rcx, 0xf
cmovae rcx, r15
shl cl, 2
mov rax, r11
shr rax, cl
and al, 0xf
add dl, r10b
xor al, dl
xor al, r8b
mov byte [rbp + r9 - 0x50], al
inc r9
cmp r9, 0xb
jb 0x140051620
lea rax, [rbp - 0x50]
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140051670
lea rcx, [rbp - 0x28]
cmp rbx, 0xf
ja 0x14005169a
mov qword [rbp - 0x18], rbx
mov r8, rbx
lea rdx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx - 0x28], 0
jmp 0x1400516a6
lea r9, [rbp - 0x50]
mov rdx, rbx
call fcn.14004a550
cmp esi, 1
jne 0x1400517c3
mov byte [rbp - 0x40], 0xf0
mov byte [rbp - 0x3f], 0xd1
mov byte [rbp - 0x3e], 0xcf
mov byte [rbp - 0x3d], 0xdd
mov byte [rbp - 0x3c], 0xd7
mov byte [rbp - 0x3b], 0x84
mov byte [rbp - 0x3a], 0xd2
mov byte [rbp - 0x39], 0xc1
mov byte [rbp - 0x38], 0xdb
mov byte [rbp - 0x37], 0x9b
mov byte [rbp - 0x36], 0xd9
mov byte [rbp - 0x35], 0xd7
mov byte [rbp - 0x34], 0xc9
mov byte [rbp - 0x33], 0xbe
movzx eax, byte [rbp - 0x40]
xor r9d, r9d
movabs r11, 0xcdb410ae689850a8
mov r10, r11
lea rax, [rbp - 0x40]
sub r10, rax
lea rdx, [rbp - 0x40]
add rdx, r9
movsx r8, byte [rdx]
mov rcx, r9
and ecx, 0xf
cmp rcx, 0xf
cmovae rcx, r15
shl cl, 2
mov rax, r11
shr rax, cl
and al, 0xf
add dl, r10b
xor al, dl
xor al, r8b
mov byte [rbp + r9 - 0x40], al
inc r9
cmp r9, 0xe
jb 0x140051702
lea rax, [rbp - 0x40]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140051740
mov rax, qword [rbp - 0x10]
cmp rdi, rax
ja 0x1400517b3
lea rbx, [rbp - 0x28]
cmp rax, 0xf
cmova rbx, qword [rbp - 0x28]
mov qword [rbp - 0x18], rdi
mov r8, rdi
lea rdx, [rbp - 0x40]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
jmp 0x1400517c3
mov rdi, 0xffffffffffffffff
mov rbx, rdi
inc rbx
cmp byte [r9 + rbx], 0
jne 0x140051782
lea rcx, [rbp - 0x28]
cmp rbx, 0xf
ja 0x14005169e
mov qword [rbp - 0x18], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx - 0x28], 0
jmp 0x1400516a6
lea r9, [rbp - 0x40]
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.14004a550
mov dword [rbp - 0x30], 0x42fa0000
mov dword [rbp - 0x2c], 0x41a00000
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x30]
call fcn.140035c10
test al, al
je 0x140051812
test esi, esi
jne 0x140051812
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x140051510]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140051850
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005184b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005184b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ec50
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14005e640
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret