Function at 0x10012600
Capabilities:
Enumerate pe sections
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x183c
call fcn.1001a8e0
mov eax, dword [0x1005fa60]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1838], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x183c], ecx
lea ecx, [ebp - 0x804]
push 0x400
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10012651
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
push esi
push edi
push dword [0x100631a0]
mov dword [ebp - 0x1814], 0xffffffff
xor esi, esi
push str.CX9Geqs8XsfCOaftNVw40Z_xXrjImdhGvmPn4YIXqBEnb0mvIYEMcY5OiM
push 4
call fcn.10011650
add esp, 0xc
cmp dword [0x100631a0], esi
je 0x1001276e
mov ecx, 0x100632e4
call fcn.10013f10
test eax, eax
je 0x1001276e
mov eax, dword [0x100632e4]
xor ecx, ecx
mov edi, dword [0x100632e8]
push ecx
push ecx
mov word [ebp - 0x180c], cx
mov dword [ebp - 0x180a], ecx
mov word [ebp - 0x1806], cx
lea ecx, [ebp - 0x180c]
push ecx
lea ecx, [ebp - 0x804]
push ecx
call eax
test al, al
je 0x1001276e
push esi
push esi
push 0x60
push 1
push 1
push 0x80
lea eax, [ebp - 0x180c]
mov dword [ebp - 0x182c], 0x18
mov dword [ebp - 0x1824], eax
lea eax, [ebp - 0x1834]
push esi
push eax
lea eax, [ebp - 0x182c]
mov dword [ebp - 0x1828], esi
push eax
push 0x80100080
lea eax, [ebp - 0x1814]
mov dword [ebp - 0x1820], 0x40
push eax
mov dword [ebp - 0x181c], esi
mov dword [ebp - 0x1818], esi
mov dword [ebp - 0x1834], esi
call dword [0x100631a0]
test eax, eax
js 0x10012749
push dword [ebp - 0x1814]
mov esi, 1
push str.cBivoA50p1eLnjuRkVF55FhJXRmObOgFNPKFg9BJhKMs70s5siRdC1PU9KQaWFGYeSzxU44
jmp 0x1001274f
push eax
push str.u5p3nY8AsYVNccJ_TDylLybmtEBFjoKDUtDqLdJsDZBnhF192sodBw
push 4
call fcn.10011650
add esp, 0xc
lea eax, [ebp - 0x180c]
push eax
call edi
test esi, esi
je 0x1001276e
mov esi, dword [ebp - 0x1814]
jmp 0x10012795
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1814], esi
cmp esi, 0xffffffff
jne 0x100127c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IOjuHZcS0kMr576WR16MoDKdhzlpK6zQZ3N6vgdd59gwtvxtoz3XRmHtfvNrHzRf1a_rDf4
push 0
call fcn.10010a30
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.1001af60
add esp, 0xc
lea eax, [ebp - 0x1810]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001282c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Hbga0VEX5KyjUEWngDyHkTlqDpCERVw_jRZZxfc1v85toz3XRmHtfvNyEmQDoJ2FxWMc
push 0
call fcn.10010a30
add esp, 0xc
push dword [ebp - 0x1814]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1810], 0x1000
je 0x1001283f
push str.GQPFr6R6V4eBNp6FKnIno5FTRX6rEmWB1T2nymXmeMJUKPVz9i0adR3VrtlCg
jmp 0x1001286d
mov eax, 0x5a4d
cmp word [ebp - 0x1804], ax
je 0x10012854
push str.GQPFr6R6V4eBNp6FKnIno5FTRX6rEmWB3zOniwHFTpFPbeB_8jFmL3ZXtQ
jmp 0x1001286d
lea esi, [ebp - 0x1804]
add esi, dword [ebp - 0x17c8]
cmp dword [esi], 0x4550
je 0x10012895
push str.FotyVJW9NYywPWkMg59JU36oN1nV0AHzxSrPf9zKOl9idfMyrnwWmR
push 0
call fcn.10010a30
add esp, 8
push dword [ebp - 0x1814]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [esi + 0x78]
test ebx, ebx
jne 0x100128a4
push str.FotyVJW9NYywPWkMg59JU36oN1nV0AHz2TPrPdhUKLE3ty1VYRD8r4ixE1SvEJ2DP7RSnHSZXAZBg8
jmp 0x100128f3
mov edi, dword [esi + 0x7c]
test edi, edi
jne 0x100128b2
push str.sGUUrQkI95ZSVJuZ0VPJ6zjEXBmXPOkFPPWPr0VTk4YAg9EgqlPCBzitO_ksGiEG56IgpEJZkXHpDMDNx15AJXdDx0Q
jmp 0x100128f3
movzx eax, word [esi + 0x14]
lea ecx, [esi + 0x18]
add ecx, eax
xor edx, edx
movzx eax, word [esi + 6]
mov dword [ebp - 0x1808], eax
test eax, eax
jle 0x100128ee
jmp 0x100128d0
mov esi, dword [ecx + 0xc]
cmp ebx, esi
jb 0x100128e6
mov eax, dword [ecx + 8]
add eax, esi
cmp ebx, eax
jbe 0x1001291c
mov eax, dword [ebp - 0x1808]
inc edx
add ecx, 0x28
cmp edx, eax
jl 0x100128d0
push str.E7q1Np6MPns5lIRic3CyIVnW9T2nyhiqeMlXZ_NvtzBfIgLgroXlFFS1EJ6UOr6HYnq2tOI
push 0
call fcn.10010a30
add esp, 8
push dword [ebp - 0x1814]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x14]
push 0
sub eax, esi
push 0
add eax, ebx
push eax
push dword [ebp - 0x1814]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.10017a05
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001294a
push str.LpM6IuW7R1ecutd6RtY04cgPpzzARAWip7VYEYCeP4WgeHsrmJxBZR9UVw
jmp 0x100128f3
push edi
push 0
push esi
call fcn.1001af60
add esp, 0xc
lea eax, [ebp - 0x1810]
push 0
push eax
push edi
push esi
push dword [ebp - 0x1814]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10012992
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.D5gfeD6lkJyeqs1Ss7cDrLcAetp0Hoo0372J3woGuzpwuUcWqhcnZ99MZLPepXHlbQ
push 0
call fcn.10010a30
push esi
call fcn.10018fac
add esp, 0x10
jmp 0x100128fd
push dword [ebp - 0x1814]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [ebp - 0x1810]
je 0x100129ce
push str.DBG2lVBOebkAXdX3LrzGFtq9UZ84Ea3J1s1F6mtjrYJG7VYmZVvooZPYdNKanwctjO1HL8
push 0
call fcn.10010a30
push esi
call fcn.10018fac
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x1c]
mov eax, dword [ebp + 0xc]
sub edi, ebx
add edi, esi
cmp dword [ebp + 0x14], 0
mov ebx, dword [edi + eax*4]
mov dword [ebp - 0x1808], ebx
jne 0x10012a03
push esi
call fcn.10018fac
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1838]
push 4
push 0x1000
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10012a61
push esi
call fcn.10018fac
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1838]
push eax
lea eax, [ecx*4]
push eax
push str.pfh7wc0W1X4LhinyVzfvmLZCeICGMreLENIxVJp7Vr7L1UkW6ylfe1LVth49BiHmtcSJBYI
push ebx
call fcn.10010a30
add esp, 0x10
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001811f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1838]
lea eax, [ecx*4]
push eax
push 0
push ebx
call fcn.1001af60
xor edx, edx
add esp, 0xc
cmp dword [esi + 0x14], edx
jbe 0x10012a94
mov ecx, ebx
sub edi, ebx
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
inc edx
cmp edx, dword [esi + 0x14]
jb 0x10012a85
push esi
call fcn.1001943c
mov eax, dword [ebp - 0x183c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], ebx
mov eax, dword [ebp - 0x1808]
pop ebx
pop edi
pop esi
call fcn.1001811f
mov esp, ebp
pop ebp
ret