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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movzx r12d, r9b
mov rsi, rdx
mov r14, rcx
xor edi, edi
mov eax, 0x5a4d
cmp word [rdx], ax
je 0x140004203
mov dword [rsp + 0x78], 0xc7d3caea
mov dword [rsp + 0x7c], 0x8acdc1cb
mov dword [rbp - 0x80], 0xcbc1c5cd
mov word [rbp - 0x7c], 0xa5
mov byte [rbp - 0x7a], 1
lea rcx, [rsp + 0x78]
call fcn.140006030
lea rcx, [rsp + 0x78]
call fcn.140002950
xor al, al
jmp 0x140004d36
movsxd r15, dword [rdx + 0x3c]
add r15, rsi
mov eax, 0x8664
cmp word [r15 + 4], ax
je 0x140004249
movdqa xmm0, xmmword [0x14008d710]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rbp - 0x78], 0xb9
mov byte [rbp - 0x76], 1
lea rcx, [rsp + 0x78]
call fcn.140005930
lea rcx, [rsp + 0x78]
call fcn.140002950
xor al, al
jmp 0x140004d36
mov r8d, dword [r15 + 0x50]
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
jne 0x1400042c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x14008d700]
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14008d600]
movdqu xmmword [rsp + 0x50], xmm1
movdqa xmm0, xmmword [0x14008d720]
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 0x100de8b
lea rcx, [rsp + 0x40]
call fcn.140005f30
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140002950
xor al, al
jmp 0x140004d36
mov dword [rbp - 0x60], edi
mov r8d, dword [r15 + 0x50]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x24], edi
mov dword [rbp - 0x14], edi
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp - 0x50], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x48], rax
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], r13
mov eax, dword [rbp + 0xe8]
mov dword [rbp - 0x28], eax
mov rax, qword [rbp + 0xf0]
mov qword [rbp - 0x20], rax
movzx eax, byte [rbp + 0xe0]
mov dword [rbp - 0x18], eax
mov qword [rsp + 0x20], rdi
mov r9d, 0x1000
mov r8, rsi
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400043bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x14008d6c0]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xd7d0dc93
mov dword [rsp + 0x54], 0x9acbddd3
mov dword [rsp + 0x58], 0xe698c48b
mov word [rsp + 0x5c], 0xb5
mov byte [rsp + 0x5e], 1
lea rcx, [rsp + 0x40]
call fcn.140005cb0
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140002950
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140004d36
movzx ebx, word [r15 + 0x14]
add rbx, 0x2c
cmp word [r15 + 6], di
je 0x14000440f
add rbx, r15
nop
mov eax, dword [rbx - 4]
test eax, eax
je 0x140004400
mov r9d, eax
mov r8d, dword [rbx]
add r8, rsi
mov edx, dword [rbx - 8]
add rdx, r13
mov qword [rsp + 0x20], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400044b0
inc edi
add rbx, 0x28
movzx eax, word [r15 + 6]
cmp edi, eax
jne 0x1400043d0
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x40
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x140004514
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x14008d700]
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14008d610]
movdqu xmmword [rsp + 0x50], xmm1
movdqa xmm0, xmmword [0x14008d5f0]
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 0xdf8cf6
mov byte [rsp + 0x74], 1
lea rcx, [rsp + 0x40]
call fcn.140005fb0
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140002950
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140004d36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x14008d6e0]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0x968fc7dd
mov dword [rsp + 0x54], 0xc29cc087
mov word [rsp + 0x58], 0xb1
mov byte [rsp + 0x5a], 1
lea rcx, [rsp + 0x40]
call fcn.140005ab0
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140002950
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140004d36
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov r9d, 0x40
lea r8, [rbp - 0x50]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400045ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x14008d640]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0x96d2dada
mov dword [rsp + 0x54], 0xe29cc087
mov word [rsp + 0x58], 0xb1
mov byte [rsp + 0x5a], 1
lea rcx, [rsp + 0x40]
call fcn.140005ab0
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140002950
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, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140004d36
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov qword [rbp - 0x58], rax
test rax, rax
jne 0x14000466c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x14008d6b0]
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14008d620]
movdqu xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x60], 0xeee5a0a6
mov dword [rsp + 0x64], 0xeae0b0a2
mov dword [rsp + 0x68], 0x96e8b4fb
mov word [rsp + 0x6c], Ordinal_200
mov byte [rsp + 0x6e], 1
lea rcx, [rsp + 0x40]
call fcn.140005eb0
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140002950
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, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140004d36
mov qword [rsp + 0x20], rbx
mov r9d, 0x1000
lea r8, [0x140004e20]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140004721
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x14008d6f0]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xd2dad7df
mov dword [rsp + 0x54], 0xc28998d2
mov dword [rsp + 0x58], 0xb7e49e
mov byte [rsp + 0x5c], 1
lea rcx, [rsp + 0x40]
call fcn.140005bb0
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140002950
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, rdi
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]
xor al, al
jmp 0x140004d36
mov edx, reloc.WLDAP32.dll_Ordinal_30
lea rcx, [rbp - 0x10]
call fcn.140004d70
nop
mov dword [rbp + 0xb8], 0xd6c8c0
mov byte [rbp + 0xbc], 1
lea rcx, [rbp + 0xb8]
call fcn.140005830
lea rcx, [rbp + 0xb8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rbp - 0x70], 0xc9c9cbc0
mov dword [rbp - 0x6c], 0xc888d5
mov byte [rbp - 0x68], 1
lea rcx, [rbp - 0x70]
call fcn.1400058b0
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
jbe 0x140004793
mov rcx, qword [rbp - 0x10]
call fcn.140003f40
mov rcx, rax
call fcn.140002950
mov edx, Ordinal_301
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Beep]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140004862
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqa xmm0, xmmword [0x14008d5c0]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xdadcd5d5
mov dword [rsp + 0x54], 0x8a99dcd2
mov dword [rsp + 0x58], 0xb4e599c3
mov word [rsp + 0x5c], 0x100
lea rcx, [rsp + 0x40]
call fcn.140005c30
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140002950
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, rdi
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 0x140004d28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqa xmm6, xmmword [0x14008d5e0]
movdqa xmm7, xmmword [0x14008d6d0]
mov dword [rbp + 0xb8], ebx
lea rdx, [rbp + 0xb8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [rbp + 0xb8]
cmp ebx, 0x103
jne 0x140004cf1
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rbp + 0x10]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp + 0x30]
cmp rbx, 0x404040
je 0x140004cc3
cmp rbx, 0x505050
jne 0x14000491c
movdqu xmmword [rsp + 0x40], xmm7
movdqu xmmword [rsp + 0x50], xmm6
mov dword [rsp + 0x60], 0xcfe5a7
mov byte [rsp + 0x64], 1
lea rcx, [rsp + 0x40]
call fcn.140005e30
lea rcx, [rsp + 0x40]
call fcn.140002950
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x14000487b
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rbp - 0x70], rax
test rax, rax
jne 0x140004986
movdqa xmm0, xmmword [0x14008d690]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xdb95d1c7
mov dword [rsp + 0x54], 0xc8d6d5d2
mov dword [rsp + 0x58], 0x100b6c2
lea rcx, [rsp + 0x40]
call fcn.140005b30
lea rcx, [rsp + 0x40]
call fcn.140002950
jmp 0x140004d28
xor edx, edx
mov r8d, 0x1400000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
test r12b, r12b
je 0x1400049b9
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, rbx
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp byte [rbp + 0xd0], 0
je 0x140004b40
movzx edi, word [r15 + 0x14]
add rdi, 0x18
add rdi, r15
xor esi, esi
cmp word [r15 + 6], si
je 0x140004b40
lea rdx, [0x14008d590]
lea r8, [0x14008d598]
lea r9, str..reloc
movdqa xmm6, xmmword [0x14008d660]
movdqa xmm7, xmmword [0x14008d6a0]
movzx r12d, byte [rbp + 0xe0]
nop dword [rax]
cmp dword [rdi + 8], 0
je 0x140004b2d
test r12b, r12b
jne 0x140004a36
xor ecx, ecx
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140004a36
cmp rcx, 7
jne 0x140004a21
jmp 0x140004a78
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140004a56
cmp rcx, 6
jne 0x140004a40
jmp 0x140004a78
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140004b2d
cmp rcx, 7
jne 0x140004a60
movdqu xmmword [rsp + 0x40], xmm7
mov dword [rsp + 0x50], 0xd7c3dbde
mov dword [rsp + 0x54], 0x100b2db
lea rcx, [rsp + 0x40]
call fcn.140005a30
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140002950
mov r9d, dword [rdi + 8]
mov edx, dword [rdi + 0xc]
add rdx, r13
mov qword [rsp + 0x20], 0
mov r8, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140004b18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
movdqu xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x50], 0x96dbdbda
mov dword [rsp + 0x54], 0x9a83cb92
mov dword [rsp + 0x58], 0xc698c48b
mov word [rsp + 0x5c], 0xb5
mov byte [rsp + 0x5e], 1
lea rcx, [rsp + 0x40]
call fcn.140005cb0
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140002950
mov rbx, qword [rbp - 0x70]
lea r9, str..reloc
lea r8, [0x14008d598]
lea rdx, [0x14008d590]
inc esi
add rdi, 0x28
movzx eax, word [r15 + 6]
cmp esi, eax
jne 0x140004a10
cmp byte [rbp + 0xd8], 0
je 0x140004c72
movzx ebx, word [r15 + 0x14]
add rbx, 0x18
add rbx, r15
xor esi, esi
cmp word [r15 + 6], si
je 0x140004c46
mov r12d, reloc.WLDAP32.dll_Ordinal_32
movdqa xmm7, xmmword [0x14008d670]
movdqa xmm8, xmmword [0x14008d630]
movdqa xmm6, xmmword [0x14008d680]
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x140004c33
mov dword [rbp + 0xb8], 0
mov eax, dword [rbx + 0x24]
test eax, 0x80000000
jbe 0x140004bab
mov edi, 4
jmp 0x140004bb9
test eax, 0x20000000
mov edi, 2
cmova edi, r12d
mov r8, rcx
mov edx, dword [rbx + 0xc]
add rdx, r13
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140004c05
movdqu xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x50], 0xda9094c0
mov dword [rsp + 0x54], 0x100b2ef
lea rcx, [rsp + 0x40]
call fcn.140005a30
lea rcx, [rsp + 0x40]
jmp 0x140004c28
movdqu xmmword [rsp + 0x40], xmm8
movdqu xmmword [rsp + 0x50], xmm7
mov word [rsp + 0x60], 0x100
lea rcx, [rsp + 0x40]
call fcn.140005db0
lea rcx, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
call fcn.140002950
inc esi
add rbx, 0x28
movzx eax, word [r15 + 6]
cmp esi, eax
jne 0x140004b85
mov dword [rbp - 0x5c], 0
movzx eax, word [r15 + 0x14]
mov r8d, dword [rax + r15 + 0x24]
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp - 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov bl, 1
jmp 0x140004d2a
movdqa xmm0, xmmword [0x14008d650]
movdqu xmmword [rsp + 0x78], xmm0
mov dword [rbp - 0x78], 0x100bec1
lea rcx, [rsp + 0x78]
call fcn.1400059b0
lea rcx, [rsp + 0x78]
call fcn.140002950
jmp 0x14000481e
movdqa xmm0, xmmword [0x14008d5d0]
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14008d5b0]
movdqu xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x60], 1
lea rcx, [rsp + 0x40]
call fcn.140005d30
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140002950
xor bl, bl
lea rcx, [rbp - 0x10]
call fcn.1400040b0
movzx eax, bl
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret