Function at 0x528aef
Capabilities:
Enumerate pe sections
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3c]
xor ebx, ebx
push ebx
add edi, eax
push 0x80
push 3
push ebx
movzx eax, word [edi + 0x14]
lea ecx, [edi + 0x18]
push 1
add eax, ecx
mov dword [ebp - 0x18], edi
push SysReAllocString
push dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
movzx eax, word [edi + 6]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push ebx
push 2
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x528df2
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
je 0x528de9
mov esi, dword [ebp + 0xc]
push esi
call fcn.00591cad
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ecx + esi]
cmp ecx, eax
jae 0x528bdc
mov edi, dword [ebp - 8]
mov esi, ecx
mov ebx, eax
push 0x1c
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub eax, dword [ebp + 8]
push dword [ebp - 0x44]
add ecx, eax
cmp dword [ebp - 0x40], 0x2000
mov dword [ebp - 0x24], ecx
je 0x528bb0
push esi
push ecx
jmp 0x528bc5
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00528e3b
add esp, 0xc
add eax, edi
push eax
push dword [ebp - 0x24]
call fcn.005729d0
add esi, dword [ebp - 0x44]
add esp, 0xc
cmp esi, ebx
jb 0x528b86
mov edi, dword [ebp - 0x18]
xor ebx, ebx
mov ecx, dword [ebp + 8]
test byte [edi + 0x16], 1
jne 0x528c60
lea edx, [edi + 0x18]
mov edi, dword [ebp - 8]
cmp dword [edx + 0x8c], ebx
je 0x528c63
push dword [edx + 0x88]
mov eax, edi
push dword [ebp - 0xc]
sub eax, ecx
push dword [ebp - 0x10]
mov eax, dword [eax + edx + 0x1c]
mov dword [ebp - 0x24], eax
call fcn.00528e3b
add esp, 0xc
lea ecx, [edi + eax]
cmp dword [ecx], ebx
je 0x528c63
mov eax, dword [ecx + 4]
mov esi, ebx
lea edi, [eax - 8]
shr edi, 1
je 0x528c5a
mov ebx, dword [ebp - 0x24]
movzx edx, word [ecx + esi*2 + 8]
mov eax, edx
mov dword [ebp - 0x20], 0x3000
and eax, 0xf000
cmp ax, word [ebp - 0x20]
jne 0x528c50
and edx, 0xfff
mov eax, ebx
add edx, dword [ecx]
add edx, dword [ebp - 0x14]
sub eax, dword [ebp + 8]
add dword [edx], eax
inc esi
cmp esi, edi
jb 0x528c25
mov eax, dword [ecx + 4]
xor ebx, ebx
add ecx, eax
cmp dword [ecx], ebx
jne 0x528c16
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov byte [ebp - 1], bl
mov byte [ebp - 2], bl
cmp cx, ax
jae 0x528dcc
mov edx, dword [ebp - 0x10]
mov esi, edx
movzx ecx, ax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], ecx
jmp 0x528c8a
mov edi, dword [ebp - 8]
mov eax, dword [esi + 0x24]
and eax, 0xa2000020
cmp eax, 0x20000020
jne 0x528dba
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x68]
test ecx, ecx
je 0x528d0e
cmp ecx, dword [esi + 0xc]
jb 0x528d0e
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x528d0e
cmp byte [ebp - 1], 0
jne 0x528d0e
push ecx
push dword [ebp - 0xc]
push edx
call fcn.00528e3b
add esp, 0xc
lea esi, [edi + eax]
cmp dword [esi], ebx
je 0x528d04
mov ecx, dword [esi + 0x10]
mov edi, dword [ebp - 0x14]
push ecx
push dword [ebp - 0xc]
add edi, ecx
push dword [ebp - 0x10]
call fcn.00528e3b
add esp, 0xc
add eax, dword [ebp - 8]
jmp 0x528cf6
mov ecx, dword [eax]
lea eax, [eax + 4]
mov dword [edi], ecx
lea edi, [edi + 4]
cmp dword [edi], ebx
jne 0x528cec
add esi, 0x14
cmp dword [esi], ebx
jne 0x528cd0
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc8]
test ecx, ecx
je 0x528d7f
cmp ecx, dword [esi + 0xc]
jb 0x528d7f
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x528d7f
cmp byte [ebp - 2], 0
jne 0x528d7f
push ecx
push dword [ebp - 0xc]
push edx
call fcn.00528e3b
add eax, 0xc
add esp, 0xc
add edi, eax
mov eax, dword [edi]
test eax, eax
je 0x528d7b
mov esi, dword [ebp - 0x14]
push eax
push dword [ebp - 0xc]
add esi, eax
push dword [ebp - 0x10]
call fcn.00528e3b
add esp, 0xc
add eax, dword [ebp - 8]
jmp 0x528d6b
mov ecx, dword [eax]
lea eax, [eax + 4]
mov dword [esi], ecx
lea esi, [esi + 4]
cmp dword [esi], ebx
jne 0x528d61
add edi, 0x20
mov eax, dword [edi]
test eax, eax
jne 0x528d48
mov esi, dword [ebp - 0x18]
mov byte [ebp - 2], 1
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
add eax, dword [ebp - 0x14]
mov edi, dword [esi + 0x10]
mov esi, ebx
add edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], edx
cmp esi, edi
jae 0x528daf
lea ecx, [esi + eax]
sub edx, eax
mov al, byte [ecx]
cmp al, byte [edx + ecx]
jne 0x528e04
inc esi
inc ecx
cmp esi, edi
jb 0x528da2
mov esi, dword [ebp - 0x18]
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
add esi, 0x28
sub ecx, 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], ecx
jne 0x528c87
mov eax, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
test eax, eax
je 0x528ddd
push eax
call fcn.0057e74c
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x528dfd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], esi
add ecx, esi
mov al, byte [ecx]
cmp al, byte [ecx + edx]
je 0x528e19
inc esi
inc ecx
cmp esi, edi
jb 0x528e0c
mov eax, esi
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x28]
add eax, dword [ebp + 8]
push eax
call fcn.00527efe
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
pop ecx
pop ecx
jmp 0x528d99