Function at 0x1000c010
Capabilities:
Access pe header
Map section object

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001d9a0
push 0x10003160
mov eax, dword fs:[0]
push eax
add esp, 0xfffffee8
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xec], 0
xor eax, eax
mov word [ebp - 0x100], ax
xor ecx, ecx
mov dword [ebp - 0xfe], ecx
mov word [ebp - 0xfa], cx
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xdc], 0
mov byte [ebp - 0x2c], 0
xor edx, edx
mov dword [ebp - 0x2b], edx
mov dword [ebp - 0x27], edx
mov dword [ebp - 0x23], edx
mov word [ebp - 0x1f], dx
mov byte [ebp - 0x1d], dl
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x104], 0x80
mov byte [ebp - 0xac], 0
push 0x7f
push 0
lea eax, [ebp - 0xab]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xf8], 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x100]
push edx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x120], 0x18
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x114], 0x40
lea eax, [ebp - 0x100]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
push 0
push 7
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x120]
push edx
push 0x100001
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenFile]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jge 0x1000c1ae
jmp 0x1000c507
mov ecx, dword [ebp - 0xe8]
push ecx
push 0x8000000
push 2
push 0
push 0
push 4
lea edx, [ebp - 0xec]
push edx
call dword [sym.imp.ntdll.dll_ZwCreateSection]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jge 0x1000c1e3
jmp 0x1000c507
push 2
push 0
push 2
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xcc]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0xec]
push edx
call dword [sym.imp.ntdll.dll_ZwMapViewOfSection]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jge 0x1000c220
jmp 0x1000c507
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xcc]
push ecx
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x1000c265
mov dword [ebp - 0xc8], 0xc000007b
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000c507
mov edx, dword [ebp - 0xe0]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1000c28b
mov dword [ebp - 0xc8], 0xc000012f
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000c507
mov ecx, 2
shl ecx, 1
mov edx, dword [ebp - 0xe0]
mov eax, dword [edx + ecx + 0x28]
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
je 0x1000c2d3
cmp dword [ebp - 0xd8], 0x12c00000
ja 0x1000c2d3
mov ecx, dword [ebp - 0xd8]
not ecx
mov edx, 2
imul eax, edx, 0
mov edx, dword [ebp - 0xe0]
cmp ecx, dword [edx + eax + 0x28]
je 0x1000c2e9
mov dword [ebp - 0xc8], 0xc0000001
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000c507
mov eax, dword [ebp - 0xcc]
add eax, dword [ebp - 0xd8]
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], 0x18
lea ecx, [ebp - 0xf0]
push ecx
lea edx, [ebp - 0xac]
push edx
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0xf4]
push ecx
call fcn.10015100
add esp, 0x10
test eax, eax
jne 0x1000c343
mov dword [ebp - 0xc8], 0xc0000001
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000c507
push 0x18
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.ntdll.dll_memcpy]
add esp, 0xc
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call fcn.1000c580
add esp, 8
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x1000c39a
mov dword [ebp - 0xc8], 0xc0000001
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000c507
mov ecx, dword [ebp - 0xd0]
cmp ecx, dword [ebp - 0xc4]
jb 0x1000c3bc
mov edx, dword [ebp - 0xc4]
add edx, dword [ebp - 0xc0]
cmp dword [ebp - 0xd0], edx
jbe 0x1000c3d2
mov dword [ebp - 0xc8], 0xc0000001
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000c507
mov eax, dword [ebp - 0xd4]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0xd4]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xdc], 0
jmp 0x1000c416
mov ecx, dword [ebp - 0xdc]
add ecx, 1
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp - 0xe4]
add edx, 0x28
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xd4]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0xdc], ecx
jae 0x1000c47f
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x1000c442
jmp 0x1000c3f8
mov ecx, dword [ebp - 0xd0]
cmp ecx, dword [ebp - 0xc4]
jb 0x1000c464
mov edx, dword [ebp - 0xc4]
add edx, dword [ebp - 0xc0]
cmp dword [ebp - 0xd0], edx
jbe 0x1000c47a
mov dword [ebp - 0xc8], 0xc0000001
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000c507
jmp 0x1000c3f8
mov eax, dword [ebp - 0xcc]
add eax, dword [ebp - 0xc4]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xf8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.1000c620
add esp, 0xc
push 0x10
lea ecx, [ebp - 0xbc]
push ecx
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.ntdll.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x1000c4d1
mov dword [ebp - 0xc8], 0
jmp 0x1000c4db
mov dword [ebp - 0xc8], 0xc0000001
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000c507
cmp dword [ebp - 0xcc], 0
je 0x1000c529
mov eax, dword [ebp - 0xcc]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_ZwUnmapViewOfSection]
mov dword [ebp - 0xcc], 0
cmp dword [ebp - 0xec], 0
je 0x1000c53f
mov ecx, dword [ebp - 0xec]
push ecx
call dword [sym.imp.ntdll.dll_ZwClose]
cmp dword [ebp - 0xe8], 0
je 0x1000c555
mov edx, dword [ebp - 0xe8]
push edx
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10001162
mov esp, ebp
pop ebp
ret