Function at 0x1002c6f
Capabilities:
Enumerate pe sections
Parse pe header
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d4
mov eax, dword [0x100e060]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x48c], eax
mov eax, dword [ebp + 0xc]
push 0x7e
mov dword [ebp - 0x488], eax
pop ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x284], esi
lea edi, [ebp - 0x280]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100128c
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x7f
pop ecx
push dword [ebp - 0x488]
xor eax, eax
mov word [ebp - 0x484], si
lea edi, [ebp - 0x482]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x484]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov edi, 0x1001360
lea eax, [ebp - 0x484]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
push dword [ebp - 0x48c]
mov dword [ebp - 0x494], eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x14
test eax, eax
je 0x1002d7d
push edi
push dword [ebp - 0x488]
call dword [sym.imp.msvcrt.dll_wcsstr]
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x1002e4e
push 1
push 0x24
push edi
call dword [sym.imp.msvcrt.dll__wcsnset]
push dword [ebp - 0x48c]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x284]
push eax
call esi
lea eax, [ebp - 0x284]
push 0x100127c
push eax
call esi
push dword [ebp - 0x494]
lea eax, [ebp - 0x284]
push eax
call esi
lea eax, [ebp - 0x284]
push edi
push eax
call esi
add esp, 0x2c
xor esi, esi
jmp 0x1002d92
push dword [ebp - 0x488]
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
call fcn.01002709
mov edi, eax
cmp edi, esi
je 0x1002dbb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf70]
lea ecx, [ebp - 0x284]
mov dword [eax + 0x14c0], ecx
mov dword [eax + 0x14c4], esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x488], eax
je 0x1002e4e
cmp edi, esi
je 0x1002dfb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf70]
mov dword [eax + 0x14c0], esi
mov dword [eax + 0x14c4], esi
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, esi
jne 0x1002e21
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002e4e
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4cc], eax
call edi
push dword [ebp - 0x488]
call edi
mov ecx, dword [ebp - 0x4cc]
cmp ecx, esi
jne 0x1002e56
xor eax, eax
inc eax
jmp 0x10030a3
cmp word [ecx], 0x5a4d
je 0x1002e65
xor esi, esi
inc esi
jmp 0x100309a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
mov dword [ebp - 0x4c8], eax
jne 0x1002e5d
cmp dword [ebp + 0x14], 2
movzx edx, word [eax + 6]
lea edi, [eax + 0x108]
je 0x1002e8e
lea edi, [eax + 0xf8]
cmp edx, esi
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x494], ecx
jbe 0x1002f84
lea eax, [ecx - 1]
not eax
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x48c], edx
jmp 0x1002eb8
mov ecx, dword [ebp - 0x494]
mov eax, dword [edi + 8]
cmp eax, esi
jne 0x1002ec2
mov eax, dword [edi + 0x10]
push 4
lea esi, [eax + ecx - 1]
and esi, dword [ebp - 0x488]
push 0x1001358
push edi
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1002ee9
add dword [ebx + 0xc], esi
jmp 0x1002f6d
push 0x1001350
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x1002f00
add dword [ebx + 0x10], esi
jmp 0x1002f6d
push 0x1001348
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x1002f17
mov dword [ebx + 8], esi
jmp 0x1002f6d
push 0x1001340
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x1002f2e
mov dword [ebx + 0x18], esi
jmp 0x1002f6d
push 0x1001338
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x1002f45
mov dword [ebx + 0x14], esi
jmp 0x1002f6d
push 0x1001330
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x1002f5c
mov dword [ebx + 0x1c], esi
jmp 0x1002f6d
mov eax, dword [edi + 0x24]
test eax, 0x20000000
je 0x1002f6a
add dword [ebx], esi
jmp 0x1002f6d
add dword [ebx + 4], esi
add edi, 0x28
xor esi, esi
dec dword [ebp - 0x48c]
jne 0x1002eb2
mov eax, dword [ebp - 0x4c8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.msvcrt.dll_localtime]
cmp eax, esi
pop ecx
je 0x1003094
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x4a4], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x4a2], cx
mov cx, word [eax + 0x18]
mov word [ebp - 0x4a0], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x49e], cx
mov cx, word [eax + 8]
mov word [ebp - 0x49c], cx
mov cx, word [eax + 4]
mov ax, word [eax]
mov word [ebp - 0x498], ax
lea eax, [ebp - 0x48c]
push eax
mov dword [ebp - 0x48c], esi
mov word [ebp - 0x49a], cx
mov word [ebp - 0x496], si
call fcn.01002aee
mov esi, dword [ebp - 0x48c]
push 0x40
lea ecx, [ebp - 0x84]
push ecx
mov ecx, esi
dec ecx
neg ecx
sbb ecx, ecx
not ecx
and ecx, 0x1001318
push ecx
lea ecx, [ebp - 0x4a4]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
lea eax, [ebp - 0x84]
push eax
lea edi, [ebx + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
dec esi
neg esi
push 0x40
sbb esi, esi
lea eax, [ebp - 0x84]
push eax
not esi
and esi, 0x1001304
push esi
lea eax, [ebp - 0x4a4]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1001300
push edi
call esi
lea eax, [ebp - 0x84]
push eax
push edi
call esi
xor esi, esi
mov ecx, dword [ebp - 0x4cc]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010071df
leave
ret 0x10