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

Disassembly:
push rbx
push rsi
mov eax, 0x1098
call fcn.140122380
sub rsp, rax
mov eax, 0x5a4d
mov rbx, rdx
mov rsi, rcx
cmp word [rdx], ax
je 0x140048e10
lea rcx, [0x14015f2e8]
call fcn.140001d10
mov rcx, rbx
call fcn.140121d68
xor al, al
add rsp, 0x1098
pop rsi
pop rbx
ret
mov qword [rsp + 0x1088], r14
mov eax, 0x8664
movsxd r14, dword [rdx + 0x3c]
add r14, rbx
cmp word [r14 + 4], ax
je 0x140048e53
lea rcx, str.Invalid_platform_n
call fcn.140001d10
mov rcx, rbx
call fcn.140121d68
mov r14, qword [rsp + 0x1088]
xor al, al
add rsp, 0x1098
pop rsi
pop rbx
ret
lea rcx, str.File_ok_n
mov qword [rsp + 0x1080], r15
call fcn.140001d10
mov r8d, dword [r14 + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x140048eaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.140001d10
mov rcx, rbx
call fcn.140121d68
xor al, al
jmp 0x1400492a8
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9d, 0x1000
mov qword [rsp + 0x40], rax
mov r8, rbx
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r15
mov qword [rsp + 0x1090], r12
mov rcx, rsi
xor r12d, r12d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140048f15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_file_header_0x_X_n
call fcn.140001d10
xor al, al
jmp 0x1400492a0
mov qword [rsp + 0x10b0], rbp
mov ebp, r12d
mov qword [rsp + 0x10c0], rdi
movzx edi, word [r14 + 0x14]
add rdi, 0x2c
cmp word [r14 + 6], bp
je 0x140048f77
add rdi, r14
nop dword [rax + rax]
mov eax, dword [rdi - 4]
test eax, eax
je 0x140048f68
mov r8d, dword [rdi]
mov r9d, eax
mov edx, dword [rdi - 8]
add r8, rbx
add rdx, r15
mov qword [rsp + 0x20], r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140048fb0
movzx eax, word [r14 + 6]
inc ebp
add rdi, 0x28
cmp ebp, eax
jne 0x140048f40
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rsi
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x140048fe6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
jmp 0x140049281
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_map_sections:_0x_x_n
call fcn.140001d10
mov rcx, rbx
call fcn.140121d68
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14004928e
mov r9d, reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x40]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14004901a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_mapping_0x_X_n
jmp 0x140049281
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x140049084
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.140001d10
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140049286
mov r9d, 0x1000
mov qword [rsp + 0x20], r12
lea r8, [0x1400492d0]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400490ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X_n
jmp 0x140049281
lea rcx, str.Data_allocated_n
call fcn.140001d10
mov qword [rsp + 0x30], r12
mov r9, rdi
mov dword [rsp + 0x28], r12d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140049143
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread_creation_failed_0x_X_n
call fcn.140001d10
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140049286
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rdi
lea rcx, str.Thread_created_at:__p__waiting_for_return..._n
call fcn.140001d10
nop dword [rax + rax]
lea rdx, [rsp + 0x10b8]
mov dword [rsp + 0x10b8], r12d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rsp + 0x10b8]
cmp edx, 0x103
jne 0x14004927a
xorps xmm0, xmm0
mov qword [rsp + 0x20], r12
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea r8, [rsp + 0x60]
mov rdx, rbp
mov rcx, rsi
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdi, qword [rsp + 0x78]
cmp rdi, 0x404040
je 0x14004926c
cmp rdi, 0x606060
je 0x14004925e
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rdi, rdi
je 0x140049160
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1000
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x80]
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14004922c
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.140001d10
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x14004924a
lea rcx, str.Unable_to_allocate_memory_n
call fcn.140001d10
jmp 0x140049286
xor edx, edx
mov r8d, 0x100000
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov al, 1
jmp 0x140049290
lea rcx, str.Wrong_directory_base_relocation_n
call fcn.140001d10
jmp 0x140049286
lea rcx, str.Wrong_mapping_ptr_n
call fcn.140001d10
jmp 0x140049286
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.140001d10
mov rcx, rbx
call fcn.140121d68
xor al, al
mov rbp, qword [rsp + 0x10b0]
mov rdi, qword [rsp + 0x10c0]
mov r12, qword [rsp + 0x1090]
mov r15, qword [rsp + 0x1080]
mov r14, qword [rsp + 0x1088]
add rsp, 0x1098
pop rsi
pop rbx
ret