Function at 0x5e8e2f15
Capabilities:
Access peb ldr_data
Get ntdll base address
Map section object
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
xor esi, esi
push 0x38
push 8
push dword [0x5e8e8a2c]
mov dword [ebp - 0x14], esi
mov word [ebp - 0x28], si
mov word [ebp - 0x26], si
mov dword [ebp - 0x24], esi
mov word [ebp - 0x30], si
mov word [ebp - 0x2e], si
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x38], si
mov word [ebp - 0x36], si
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
cmp ebx, esi
je 0x5e8e3246
push edi
mov edi, dword [ebp + 8]
mov ax, word [edi + 0x2e]
add ax, 2
mov dword [ebp - 0x1c], eax
movzx eax, ax
add eax, 8
push eax
push 8
push dword [0x5e8e8a2c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x5e8e31d8
mov cx, word [ebp - 0x1c]
mov word [eax + 2], cx
lea ecx, [eax + 8]
mov word [eax], si
mov dword [eax + 4], ecx
xor eax, eax
mov ax, word [edi + 0x26]
add ax, 2
mov dword [ebp - 0x1c], eax
movzx eax, ax
add eax, 8
push eax
push 8
push dword [0x5e8e8a2c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x5e8e31d8
mov cx, word [ebp - 0x1c]
mov word [eax + 2], cx
mov word [eax], si
lea ecx, [eax + 8]
mov dword [eax + 4], ecx
mov ax, word [edi + 0x24]
mov word [ebp - 0x28], ax
mov ax, word [edi + 0x26]
mov word [ebp - 0x26], ax
movzx eax, ax
push eax
push 8
push dword [0x5e8e8a2c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
je 0x5e8e31d8
mov ax, word [edi + 0x2c]
mov word [ebp - 0x30], ax
mov ax, word [edi + 0x2e]
mov word [ebp - 0x2e], ax
movzx eax, ax
push eax
push 8
push dword [0x5e8e8a2c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 0x2c], eax
je 0x5e8e31d8
movzx ecx, word [ebp - 0x2e]
push esi
push ecx
push eax
push dword [edi + 0x30]
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x5e8e31d8
movzx eax, word [ebp - 0x26]
push esi
push eax
push dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
push dword [edi + 0x28]
push dword [eax + 4]
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x5e8e31d8
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax]
cmp cx, si
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov edx, eax
je 0x5e8e30d0
cmp cx, 0x3a
jne 0x5e8e30a4
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
add dword [ebp + 0xc], 2
inc edx
inc edx
mov cx, word [edx]
cmp cx, si
jne 0x5e8e3095
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x5e8e30d0
lea eax, [ecx - 2]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffe
sub word [ebp - 0x28], cx
sub word [ebp - 0x26], cx
mov dword [ebp - 0x24], eax
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x5e8e31d8
push esi
push esi
push esi
push 1
push 1
push 0x80
lea eax, [ebp - 0x38]
mov dword [ebp - 0x60], eax
push esi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x80100080
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x68], 0x18
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], 0xc0
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
call dword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
jl 0x5e8e31d8
push dword [ebp - 4]
lea eax, [ebp - 0x40]
push 0x8000000
push 2
push eax
lea eax, [ebp - 0x68]
push eax
push 5
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x68], 0x18
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jl 0x5e8e31cf
push 2
push esi
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x48]
push eax
push esi
push esi
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword [ebp - 8]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], esi
jl 0x5e8e31cf
mov ecx, dword [ebp - 0xc]
cmp word [ecx], 0x5a4d
mov dword [ebp - 0x20], ecx
jne 0x5e8e31c8
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
mov dword [ebp + 0xc], eax
je 0x5e8e324c
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push esi
push dword [0x5e8e8a2c]
call edi
cmp dword [ebp - 0x34], esi
je 0x5e8e31ff
mov eax, dword fs:[0x18]
push dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call edi
cmp dword [ebp + 8], esi
je 0x5e8e3210
push dword [ebp + 8]
push esi
push dword [0x5e8e8a2c]
call edi
cmp dword [ebp - 0x14], esi
je 0x5e8e3221
push dword [ebp - 0x14]
push esi
push dword [0x5e8e8a2c]
call edi
cmp dword [ebp - 0x18], esi
je 0x5e8e3232
push dword [ebp - 0x18]
push esi
push dword [0x5e8e8a2c]
call edi
cmp dword [ebp - 0x2c], esi
je 0x5e8e3243
push dword [ebp - 0x2c]
push esi
push dword [0x5e8e8a2c]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [edi + 0x18]
mov edi, dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
mov dword [ebx], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0xc], eax
push 8
xor eax, eax
pop ecx
push dword [ebp - 0x20]
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x10], esi
lea edi, [ebx + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x50]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword fs:[0x18]
push dword [ebp - 0x34]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push dword [eax + 0x18]
call edi
push dword [ebp - 0x18]
push esi
push dword [0x5e8e8a2c]
call edi
push dword [ebp - 0x2c]
push esi
push dword [0x5e8e8a2c]
call edi
mov eax, ebx
jmp 0x5e8e3245