Function at 0x180001200
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r10d, r8d
mov rbx, rcx
mov dword [rcx], r10d
mov qword [rcx + 8], rdx
mov qword [rcx + 0x28], rdx
movsxd r9, dword [rdx + 0x3c]
add r9, rdx
mov qword [rcx + 0x20], r9
lea r11, [r9 + 0x108]
mov qword [rcx + 0x30], r11
cmp r8d, 0x40
jb 0x1800014b5
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1800014b5
movsxd rcx, dword [rdx + 0x3c]
mov eax, r10d
add rcx, 0x108
cmp r10, rcx
jb 0x1800014b5
cmp dword [r9], 0x4550
jne 0x1800014b5
movzx eax, word [r9 + 0x16]
mov ecx, 0x2000
test cx, ax
je 0x1800014b5
test al, 2
je 0x1800014b5
mov eax, 0xf0
cmp word [r9 + 0x14], ax
jne 0x1800014b5
movzx r8d, word [r9 + 6]
xor r15d, r15d
mov edx, r15d
test r8d, r8d
je 0x1800012de
mov ecx, r15d
nop dword [rax]
mov eax, dword [r11 + rcx + 0x14]
add eax, dword [r11 + rcx + 0x10]
cmp eax, r10d
ja 0x1800014b5
inc edx
add rcx, 0x28
cmp edx, r8d
jl 0x1800012c0
mov edi, dword [r9 + 0x38]
xor edx, edx
mov r9d, dword [r9 + 0x54]
dec r9d
add r9d, edi
mov eax, r9d
div edi
sub r9d, edx
cmp r15w, r8w
jae 0x18000133c
mov r10, r15
mov rsi, r8
mov ecx, dword [r11 + r10 + 8]
lea r8d, [rdi - 1]
cmp dword [r11 + r10 + 0x10], ecx
cmova ecx, dword [r11 + r10 + 0x10]
xor edx, edx
add ecx, dword [r11 + r10 + 0xc]
lea r10, [r10 + 0x28]
add r8d, ecx
mov eax, r8d
div edi
sub r8d, edx
cmp r9d, r8d
cmovae r8d, r9d
mov r9d, r8d
sub rsi, 1
jne 0x180001302
test r9d, r9d
je 0x1800014b5
mov ebp, r9d
mov r14d, 0x3000
mov r8d, r14d
mov edx, ebp
mov r9d, 0x40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1800014b5
mov r8, qword [rbx + 0x20]
movzx ecx, word [r8 + 6]
lea edx, [rcx + rcx*4]
mov ecx, dword [r8 + 0x54]
lea r8d, [rcx + rdx*8]
mov rdx, qword [rbx + 8]
mov rcx, rax
call fcn.180002940
mov rax, qword [rbx + 0x20]
mov esi, r15d
cmp r15w, word [rax + 6]
jae 0x1800013df
mov rdi, r15
nop
mov rax, qword [rbx + 0x30]
mov r9d, dword [rdi + rax + 0xc]
test r9d, r9d
je 0x1800013cd
mov ecx, dword [rdi + rax + 0x10]
test ecx, ecx
je 0x1800013cd
mov edx, dword [rdi + rax + 0x14]
mov r8d, ecx
add rdx, qword [rbx + 8]
mov ecx, r9d
add rcx, qword [rbx + 0x10]
call fcn.180002940
mov rax, qword [rbx + 0x20]
inc esi
add rdi, 0x28
movzx ecx, word [rax + 6]
cmp esi, ecx
jl 0x1800013a0
mov rdx, qword [rbx + 0x10]
mov qword [rbx + 0x28], rdx
mov r11, rdx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
mov qword [rbx + 0x20], rcx
lea rax, [rcx + 0x108]
mov qword [rbx + 0x30], rax
mov r8d, dword [rcx + 0xb0]
sub r11, qword [rcx + 0x30]
add r8, rdx
mov ecx, dword [r8]
mov r9d, dword [r8 + 4]
add ecx, r9d
je 0x180001497
mov esi, 0xf000
mov edi, 0xa000
nop dword [rax]
nop dword [rax + rax]
mov eax, r9d
mov rdx, r15
sub rax, 8
shr rax, 1
movsxd r10, eax
test eax, eax
jle 0x180001485
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2 + 8]
movzx ecx, ax
and cx, si
cmp cx, r14w
je 0x180001467
cmp cx, di
jne 0x180001479
mov ecx, dword [r8]
and eax, 0xfff
add rax, rcx
add rax, qword [rbx + 0x10]
add qword [rax], r11
inc rdx
cmp rdx, r10
jl 0x180001450
mov r9d, dword [r8 + 4]
mov eax, r9d
add r8, rax
mov ecx, dword [r8]
mov r9d, dword [r8 + 4]
add ecx, r9d
jne 0x180001430
mov rcx, rbx
call fcn.180001520
mov rcx, qword [rbx + 0x10]
test eax, eax
jne 0x1800014d0
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], r15d
mov r8d, 0x40
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x20]
mov qword [rcx + 0x30], rax
mov rax, qword [rbx + 0x20]
mov r9, qword [rbx + 0x10]
mov eax, dword [rax + 0x28]
add rax, r9
mov qword [rbx + 0x18], rax
je 0x180001519
xor r8d, r8d
mov rcx, r9
lea edx, [r8 + 1]
call rax
mov r9, qword [rbx + 0x10]
mov rax, r9
jmp 0x1800014b7