Function at 0x180001180
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x60
mov rax, qword [0x180016008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, 0x5a4d
mov qword [rsp + 0x20], rdx
mov r12, rcx
cmp word [rcx], ax
jne 0x1800015df
movsxd rbp, dword [rcx + 0x3c]
add rbp, rcx
cmp dword [rbp], 0x4550
jne 0x1800015df
mov edx, dword [rbp + 0x50]
mov r9d, 4
mov rcx, qword [rbp + 0x30]
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
mov rdi, rax
test rax, rax
jne 0x18000120e
mov edx, dword [rbp + 0x50]
lea r9d, [rax + 4]
xor ecx, ecx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
mov rdi, rax
test rax, rax
je 0x1800015df
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r15d, r15d
mov r8d, 0x1000
mov rcx, rdi
mov rsi, rax
mov qword [rax + 8], rdi
mov qword [rax + 0x18], r15
lea r9d, [r15 + 4]
mov qword [rax + 0x10], r15
mov edx, dword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [rbp + 0x54]
lea r9d, [r15 + 4]
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x54]
mov rdx, r12
add r8d, dword [r12 + 0x3c]
mov rcx, rax
mov rbx, rax
call fcn.180002d60
movsxd rax, dword [r12 + 0x3c]
mov r14d, r15d
add rax, rbx
mov qword [rsi], rax
mov qword [rax + 0x30], rdi
mov rcx, qword [rsi]
mov r13, qword [rsi + 8]
movzx edi, word [rcx + 0x14]
add rdi, 0x28
cmp r15w, word [rcx + 6]
jae 0x18000134a
add rdi, rcx
mov eax, dword [rdi]
test eax, eax
jne 0x180001301
movsxd rax, dword [rbp + 0x38]
test eax, eax
jle 0x180001333
mov ecx, dword [rdi - 4]
mov r9d, 4
add rcx, r13
mov r8d, 0x1000
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov dword [rdi - 8], eax
call fcn.180002900
jmp 0x180001333
mov ecx, dword [rdi - 4]
mov rdx, rax
add rcx, r13
mov r9d, 4
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [rdi + 4]
mov rcx, rax
mov r8d, dword [rdi]
add rdx, r12
mov rbx, rax
call fcn.180002d60
mov dword [rdi - 8], ebx
mov rcx, qword [rsi]
inc r14d
add rdi, 0x28
movzx eax, word [rcx + 6]
cmp r14d, eax
jl 0x1800012c3
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x50]
mov rbx, r14
sub rbx, qword [rbp + 0x30]
je 0x1800013f9
cmp dword [rcx + 0xb4], r15d
jbe 0x1800013f9
mov rdi, qword [rsi + 8]
mov r11d, dword [rcx + 0xb0]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x1800013f9
nop dword [rax]
nop word [rax + rax]
mov r10d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r9d, eax
mov r8d, r15d
add r9, rdi
lea rax, [r10 - 8]
test rax, 0xfffffffffffffffe
jbe 0x1800013ec
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x1800013ce
cmp eax, 0xa
jne 0x1800013d2
add qword [rcx + r9], rbx
jmp 0x1800013d2
add dword [rcx + r9], ebx
mov r10d, dword [r11 + 4]
inc r8d
add rdx, 2
mov eax, r8d
lea rcx, [r10 - 8]
shr rcx, 1
cmp rax, rcx
jb 0x1800013b0
mov eax, r10d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x180001390
mov rcx, rsi
call section..text
test eax, eax
je 0x180001541
mov r10, qword [rsi]
movabs rax, 0xffffffff00000000
mov edi, r15d
movzx ebx, word [r10 + 0x14]
mov rbp, qword [r10 + 0x30]
add rbx, 0x28
and rbp, rax
cmp r15w, word [r10 + 6]
jae 0x1800014ea
add rbx, r10
lea r12, [0x180014610]
nop
mov r9d, dword [rbx + 0x14]
mov r8d, dword [rbx]
bt r9d, 0x19
jae 0x180001465
mov ecx, dword [rbx - 8]
mov edx, r8d
or rcx, rbp
mov r8d, 0x4000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1800014d4
mov rcx, r9
mov rax, r9
shr rax, 0x1e
and eax, 1
shr rcx, 0x1d
and ecx, 1
lea rcx, [rax + rcx*2]
mov rax, r9
shr rax, 0x1f
lea rcx, [rax + rcx*2]
mov eax, r9d
mov r11d, dword [r12 + rcx*4]
bts r11d, 9
and eax, 0x4000000
cmove r11d, dword [r12 + rcx*4]
test r8d, r8d
jne 0x1800014bd
test r9b, 0x40
je 0x1800014af
mov r8d, dword [r10 + 0x20]
jmp 0x1800014b8
test r9b, r9b
jns 0x1800014d4
mov r8d, dword [r10 + 0x24]
test r8d, r8d
je 0x1800014d4
mov ecx, dword [rbx - 8]
lea r9, [rsp + 0x28]
mov edx, r8d
or rcx, rbp
mov r8d, r11d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r10, qword [rsi]
inc edi
add rbx, 0x28
movzx eax, word [r10 + 6]
cmp edi, eax
jl 0x180001440
mov eax, dword [r10 + 0x28]
test eax, eax
je 0x180001511
add rax, r14
je 0x180001541
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, r14
call rax
test eax, eax
je 0x180001541
mov dword [rsi + 0x1c], 1
mov rax, rsi
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x90]
mov r15, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800017d0
add rsp, 0x60
pop r12
pop rdi
pop rbp
ret
cmp dword [rsi + 0x1c], r15d
je 0x180001561
mov rax, qword [rsi]
xor r8d, r8d
mov rcx, qword [rsi + 8]
xor edx, edx
mov r9d, dword [rax + 0x28]
add r9, rcx
call r9
mov dword [rsi + 0x1c], r15d
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1800015ad
cmp dword [rsi + 0x18], r15d
jle 0x1800015a8
mov rbx, r15
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
mov rax, qword [rbx + rcx]
cmp rax, 0xffffffffffffffff
je 0x18000159b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsi + 0x10]
inc r15d
add rbx, 8
cmp r15d, dword [rsi + 0x18]
jl 0x180001580
call fcn.180003920
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1800015c4
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x180001514
xor eax, eax
jmp 0x18000152b