Function at 0x180001010
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get number of processors
Parse pe header
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
call fcn.180001000
mov qword [rsp + 0x98], rax
xor eax, eax
cmp eax, 1
je 0x1800010a2
mov rax, qword [rsp + 0x98]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18000108c
mov rax, qword [rsp + 0x98]
movsxd rax, dword [rax + 0x3c]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x40
jb 0x18000108c
cmp qword [rsp + 0x28], 0x400
jae 0x18000108c
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x28]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
jne 0x18000108c
jmp 0x1800010a2
mov rax, qword [rsp + 0x98]
sub rax, 1
mov qword [rsp + 0x98], rax
jmp 0x18000102b
mov rax, qword gs:[0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1800011bd
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x48]
mov word [rsp + 0x88], ax
mov qword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
ror eax, 0xd
mov eax, eax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax]
cmp eax, 0x61
jl 0x180001141
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax]
sub eax, 0x20
movsxd rcx, eax
mov rax, qword [rsp + 0x20]
add rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x180001159
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rax]
mov rax, qword [rsp + 0x20]
add rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
add rax, 1
mov qword [rsp + 0x80], rax
movzx eax, word [rsp + 0x88]
sub ax, 1
mov word [rsp + 0x88], ax
movzx eax, word [rsp + 0x88]
test eax, eax
jne 0x180001103
cmp dword [rsp + 0x20], 0x6a4abc5b
jne 0x1800011ab
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x68], rax
jmp 0x1800011bd
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
jmp 0x1800010cc
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
add rax, 0x88
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax + 0x20]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax + 0x24]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x70], rax
mov eax, 3
mov word [rsp + 0x88], ax
movzx eax, word [rsp + 0x88]
test eax, eax
jle 0x1800013ac
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xa0], 0
mov eax, dword [rsp + 0xa0]
ror eax, 0xd
mov dword [rsp + 0xa0], eax
mov rax, qword [rsp + 0xa8]
movsx ecx, byte [rax]
mov eax, dword [rsp + 0xa0]
add eax, ecx
mov dword [rsp + 0xa0], eax
mov rax, qword [rsp + 0xa8]
add rax, 1
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
movsx eax, byte [rax]
test eax, eax
jne 0x180001260
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xec0e4e8e
je 0x1800012dc
cmp dword [rsp + 0x48], 0x7c0dfcaa
je 0x1800012dc
cmp dword [rsp + 0x48], 0x91afca54
jne 0x18000138b
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax + 0x1c]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x70]
movzx ecx, word [rax]
mov rax, qword [rsp + 0x90]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x90], rax
cmp dword [rsp + 0x48], 0xec0e4e8e
jne 0x180001333
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x180001377
cmp dword [rsp + 0x48], 0x7c0dfcaa
jne 0x180001356
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x180001377
cmp dword [rsp + 0x48], 0x91afca54
jne 0x180001377
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x88]
sub ax, 1
mov word [rsp + 0x88], ax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
add rax, 2
mov qword [rsp + 0x70], rax
jmp 0x18000122e
mov rax, qword [rsp + 0x98]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x98]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 0x50]
mov r9d, 0x40
mov r8d, 0x3000
xor ecx, ecx
call qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x54]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
movzx ecx, word [rax + 0x14]
mov rax, qword [rsp + 0x28]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
movzx edx, word [rax + 6]
mov rax, qword [rsp + 0x28]
movzx ecx, word [rax + 6]
sub cx, 1
mov rax, qword [rsp + 0x28]
mov word [rax + 6], cx
test edx, edx
je 0x1800014c1
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax + 0x14]
mov rax, qword [rsp + 0x98]
add rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
add rax, 0x28
mov qword [rsp + 0x58], rax
jmp 0x18000143a
mov rax, qword [rsp + 0x28]
add rax, 0x90
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xc], 0
je 0x18000169a
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x68]
add rcx, rax
call qword [rsp + 0x30]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 0x10]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x180001687
cmp qword [rsp + 0x38], 0
je 0x180001623
mov rax, qword [rsp + 0x38]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
je 0x180001623
mov rax, qword [rsp + 0x98]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x98]
add rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
add rax, 0x88
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x98]
add rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax + 0x1c]
mov rax, qword [rsp + 0x98]
add rax, rcx
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx]
and rcx, 0xffff
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x10]
sub rcx, rax
mov rax, qword [rsp + 0x90]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, qword [rsp + 0x58]
mov qword [rax], rcx
jmp 0x18000165e
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
add rdx, 2
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0x60]
mov rdx, rax
mov rax, qword [rsp + 0x58]
mov qword [rax], rdx
mov rax, qword [rsp + 0x58]
add rax, 8
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x38], 0
je 0x180001682
mov rax, qword [rsp + 0x38]
add rax, 8
mov qword [rsp + 0x38], rax
jmp 0x18000153f
mov rax, qword [rsp + 0x20]
add rax, 0x14
mov qword [rsp + 0x20], rax
jmp 0x1800014eb
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rsp + 0x68]
sub rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x28]
add rax, 0xb0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
cmp dword [rax + 4], 0
je 0x180001913
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 4], 0
je 0x180001913
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 4]
sub rax, 8
xor edx, edx
mov ecx, 2
div rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x20]
add rax, 8
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x80]
sub rax, 1
mov qword [rsp + 0x80], rax
test rcx, rcx
je 0x1800018f9
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 0xa
jne 0x1800017c0
mov ecx, 0xfff
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
and ax, cx
movzx eax, ax
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx + rax]
add rdx, qword [rsp + 0x98]
mov ecx, 0xfff
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
and ax, cx
movzx ecx, ax
mov rax, qword [rsp + 0x58]
mov qword [rax + rcx], rdx
jmp 0x1800018e6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 3
jne 0x18000181a
mov ecx, 0xfff
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
and ax, cx
movzx ecx, ax
mov rax, qword [rsp + 0x58]
mov edx, dword [rax + rcx]
add edx, dword [rsp + 0x98]
mov ecx, 0xfff
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
and ax, cx
movzx ecx, ax
mov rax, qword [rsp + 0x58]
mov dword [rax + rcx], edx
jmp 0x1800018e6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 1
jne 0x180001883
mov ecx, 0xfff
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
and ax, cx
movzx edx, ax
mov rax, qword [rsp + 0x98]
shr rax, 0x10
and rax, 0xffff
movzx ecx, ax
mov rax, qword [rsp + 0x58]
movzx edx, word [rax + rdx]
add edx, ecx
mov ecx, 0xfff
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
and ax, cx
movzx ecx, ax
mov rax, qword [rsp + 0x58]
mov word [rax + rcx], dx
jmp 0x1800018e6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 2
jne 0x1800018e6
mov ecx, 0xfff
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
and ax, cx
movzx edx, ax
mov rax, qword [rsp + 0x98]
and rax, 0xffff
movzx ecx, ax
mov rax, qword [rsp + 0x58]
movzx edx, word [rax + rdx]
add edx, ecx
mov ecx, 0xfff
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
and ax, cx
movzx ecx, ax
mov rax, qword [rsp + 0x58]
mov word [rax + rcx], dx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x18000173e
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 4]
mov rax, qword [rsp + 0x20]
add rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x1800016ef
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x28]
mov rax, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0xd0]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x58]
mov rax, qword [rsp + 0x58]
add rsp, 0xb8
pop rdi
pop rsi
ret