Function at 0x52a3c0
Capabilities:
Map section object
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
lea eax, [ebp - 0xc]
push ebx
push esi
push edi
push 0x60
push 1
push 1
push 0x80
push 0x100021
push ecx
push eax
call sym.SystemInformer.exe_PhCreateFile
mov ebx, eax
test ebx, ebx
js 0x52a504
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push esi
push 0x1000000
push 0x10
push 0
push eax
push 0xd
lea eax, [ebp - 4]
mov dword [ebp - 0x30], 0x18
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ntdll.dll_NtCreateSection]
push esi
mov ebx, eax
call dword [sym.imp.ntdll.dll_NtClose]
nop
test ebx, ebx
js 0x52a504
push 0x30
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005826f0
add esp, 0xc
lea eax, [ebp - 0x60]
push 0
push 0x30
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQuerySection]
mov ebx, eax
test ebx, ebx
js 0x52a487
cmp dword [ebp - 0x50], 2
jne 0x52a482
test dword ds:[ebp - 0x44], 0x2002
jne 0x52a49c
mov ebx, 0xc000036f
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
lfence
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
push 0
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, 0x40000003
jne 0x52a4e7
mov ecx, dword ds:[ebp - 8]
call fcn.0052a160
mov ebx, eax
test ebx, ebx
js 0x52a4f0
mov edi, dword [ebp - 8]
jmp 0x52a4fe
push dword [ebp - 8]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov edi, dword [ebp - 0x18]
mov edi, edi
test ebx, ebx
jns 0x52a510
lfence
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0x5a4d
cmp word [edi], bx
je 0x52a525
mov ebx, 0xc000012f
jmp 0x52a5a4
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x52a59f
cmp eax, 0x7fffffff
jae 0x52a59f
add eax, edi
mov dword [ebp - 0xc], eax
cmp dword [eax], 0x4550
jne 0x52a59f
mov esi, edi
mov edx, eax
push ecx
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00529ba0
mov ebx, eax
test ebx, ebx
js 0x52a5a4
lfence
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, esi
call fcn.00529e20
mov ebx, eax
test ebx, ebx
js 0x52a5a4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x52a57c
mov ebx, 0xc0000139
jmp 0x52a5a4
mov edi, dword [ebp - 0x14]
xor ebx, ebx
push ebx
add esi, eax
push 1
push edi
mov ecx, esi
lfence
call dword [0x5a48f4]
call esi
test al, al
jne 0x52a5f1
mov ebx, 0xc0000142
jmp 0x52a5a4
mov ebx, 0xc000007b
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x52a5f1
lfence
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x52a5f1
cmp eax, 0x7fffffff
jae 0x52a5f1
cmp dword [eax + edi], 0x4550
jne 0x52a5f1
mov eax, dword [eax + edi + 0x28]
test eax, eax
je 0x52a5f1
push 0
lea esi, [eax + edi]
push 0
push edi
mov ecx, esi
lfence
call dword [0x5a48f4]
call esi
push edi
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret