Function at 0x10007160
Capabilities:
Enumerate pe sections
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db608
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x10288294]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0
xor al, al
push 0x102705c0
or esi, 0xffffffff
mov byte [ebp - 0x19], 0
push ecx
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x24], al
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 1
mov dword [ebp - 0xa4], 0xa
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], 0xa
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0xc0], 0xa
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x98], esi
call fcn.100889d5
mov ebx, eax
add esp, 8
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x1000792d
push ebx
push 8
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.1008dc24
add esp, 0x10
cmp eax, 8
jne 0x10007924
push eax
xor edx, edx
lea ecx, [ebp - 0x18]
call fcn.1000db60
add esp, 4
test eax, eax
jne 0x10007924
lea edx, [ebp - 0x8c]
mov ecx, ebx
call fcn.10006560
test eax, eax
jne 0x100072f8
push ebx
call fcn.1008d1e3
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.100079e0
or eax, 0xffffffff
jmp 0x10007945
cmp eax, 0x52444849
jne 0x100078e1
cmp dword [ebp - 0x88], 0x19
jne 0x100078e1
mov ecx, dword [ebp - 0x8c]
movzx edx, byte [ecx + 8]
movzx eax, byte [ecx + 9]
movzx ebx, byte [ecx + 0xc]
shl edx, 8
add edx, eax
shl ebx, 8
movzx eax, byte [ecx + 0xa]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0xb]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0xd]
add ebx, eax
mov dword [ebp - 0x64], edx
movzx eax, byte [ecx + 0xe]
shl ebx, 8
add ebx, eax
mov dword [ebp - 0x48], edx
movzx eax, byte [ecx + 0xf]
shl ebx, 8
add ebx, eax
mov dword [ebp - 0x94], ebx
mov edi, ebx
test edx, edx
je 0x10007961
cmp edx, 0x4000
ja 0x10007961
test ebx, ebx
je 0x10007961
cmp ebx, 0x4000
ja 0x10007961
mov eax, ebx
mov dword [ebp - 0x38], 0
imul eax, edx
xor esi, esi
push ecx
push ebx
push edx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x34], 0
shl eax, 2
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x44], 0xa
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x90], eax
call fcn.10006280
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xb4]
push esi
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x2c]
call fcn.10006600
add esp, 0x10
test eax, eax
jne 0x100078bb
push ecx
push ebx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x84]
call fcn.10006280
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.1008da02
add esp, 4
test eax, eax
jne 0x100078be
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x40], eax
nop dword [eax]
lea edx, [ebp - 0x60]
mov ecx, ebx
call fcn.10006560
test eax, eax
je 0x100078be
mov ebx, dword [ebp - 0x60]
cmp eax, 0x4c546361
jne 0x10007476
mov cl, byte [ebp - 0x24]
test cl, cl
jne 0x100077a5
cmp byte [ebp - 0x19], cl
jne 0x100077a5
mov byte [ebp - 0x19], 1
mov byte [ebp - 0x1a], 1
push ebx
call fcn.1005d847
add esp, 4
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.1008da02
add esp, 4
test eax, eax
je 0x10007420
jmp 0x100078be
cmp eax, 0x4c546366
jne 0x10007717
mov cl, byte [ebp - 0x24]
test cl, cl
je 0x10007590
cmp byte [ebp - 0x19], 0
je 0x100077a5
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.100067b0
test eax, eax
jne 0x100078a5
push ecx
push dword [ebp - 0x94]
lea ecx, [ebp - 0xd0]
push dword [ebp - 0x64]
call fcn.10006280
cmp esi, 2
mov esi, dword [ebp - 0xbc]
jne 0x100074db
push dword [ebp - 0x90]
push dword [ebp - 0x70]
push esi
call fcn.10078c00
add esp, 0xc
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x40]
push edi
push dword [ebp - 0x48]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.10006410
mov eax, dword [ebp - 0x68]
add esp, 0x14
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x84]
push eax
call fcn.10007a10
cmp dword [ebp - 0x30], 2
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x40], eax
je 0x10007584
push dword [ebp - 0x90]
push dword [ebp - 0x70]
push esi
call fcn.10078c00
add esp, 0xc
cmp dword [ebp - 0x30], 1
jne 0x10007584
test edi, edi
je 0x10007584
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
lea ebx, [eax*4]
mov eax, dword [ebp - 0x38]
lea ecx, [eax*4]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], ecx
lea esi, [edx + eax*4]
nop
mov eax, dword [esi]
push ebx
add eax, ecx
push 0
push eax
call fcn.10079700
mov ecx, dword [ebp - 0x44]
lea esi, [esi + 4]
add esp, 0xc
sub edi, 1
jne 0x10007560
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0xbc]
mov cl, byte [ebp - 0x24]
mov dword [ebp - 0x70], esi
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x6c], esi
movzx eax, byte [ebx + 0xc]
movzx edx, byte [ebx + 0xd]
movzx edi, byte [ebx + 0x10]
shl eax, 8
add edx, eax
movzx esi, byte [ebx + 0x14]
movzx eax, byte [ebx + 0xe]
shl edx, 8
add edx, eax
shl esi, 8
movzx eax, byte [ebx + 0xf]
shl edi, 8
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 0x11]
add edi, eax
mov dword [ebp - 0x48], edx
movzx eax, byte [ebx + 0x12]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 0x13]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 0x15]
add esi, eax
movzx eax, byte [ebx + 0x16]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x17]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x19]
mov dword [ebp - 0x38], esi
movzx esi, byte [ebx + 0x18]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1a]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1b]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1d]
mov dword [ebp - 0x34], esi
movzx esi, byte [ebx + 0x1c]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x1f]
mov dword [ebp - 0x68], esi
movzx esi, byte [ebx + 0x1e]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x21]
mov dword [ebp - 0x44], esi
movzx esi, byte [ebx + 0x20]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], eax
test edx, edx
je 0x100076ba
cmp edx, 0x4000
ja 0x100076ba
test edi, edi
je 0x100076ba
cmp edi, 0x4000
ja 0x100076ba
mov eax, dword [ebp - 0x38]
add eax, edx
cmp eax, dword [ebp - 0x64]
ja 0x100076ba
mov eax, dword [ebp - 0x34]
add eax, edi
cmp eax, dword [ebp - 0x94]
ja 0x100076ba
cmp esi, 2
ja 0x100076ba
cmp dword [ebp - 0x3c], 1
ja 0x100076ba
test cl, cl
je 0x100076cb
mov ecx, dword [ebp - 0x8c]
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10006600
add esp, 0x10
test eax, eax
je 0x100076cf
lea ecx, [ebp - 0x84]
call fcn.10005de0
push ebx
jmp 0x100078b3
mov byte [ebp - 0x1a], 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
xor eax, eax
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp byte [ebp - 0x1a], al
setne al
cmp ecx, eax
jne 0x10007458
mov dword [ebp - 0x3c], 0
cmp esi, 2
jne 0x10007458
mov esi, 1
mov dword [ebp - 0x30], esi
jmp 0x10007458
cmp eax, 0x54414449
jne 0x1000773d
push dword [ebp - 0x5c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push ebx
mov byte [ebp - 0x24], 1
call fcn.10006750
add esp, 8
test eax, eax
jne 0x100076ba
jmp 0x10007458
cmp eax, 0x54416466
jne 0x10007797
cmp byte [ebp - 0x19], 0
je 0x100077a2
mov esi, dword [ebp - 0x5c]
lea edx, [ebx + 4]
lea ecx, [esi - 0x10]
mov eax, ecx
mov byte [edx + 3], cl
shr eax, 0x18
mov byte [edx], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 1], al
mov eax, ecx
shr eax, 8
mov byte [edx + 2], al
lea eax, [esi - 4]
push eax
mov dword [ebx + 8], 0x54414449
mov ecx, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x28]
call fcn.10006750
add esp, 8
test eax, eax
jne 0x100076ba
mov esi, dword [ebp - 0x30]
jmp 0x10007458
cmp eax, 0x444e4549
je 0x10007854
mov cl, byte [ebp - 0x24]
mov al, byte [ebx + 4]
cmp al, 0x41
jb 0x100076c5
cmp al, 0x7a
ja 0x100076c5
cmp al, 0x5a
jbe 0x100077c4
cmp al, 0x61
jb 0x100076c5
mov al, byte [ebx + 5]
cmp al, 0x41
jb 0x100076c5
cmp al, 0x7a
ja 0x100076c5
cmp al, 0x5a
jbe 0x100077e3
cmp al, 0x61
jb 0x100076c5
mov al, byte [ebx + 6]
cmp al, 0x41
jb 0x100076c5
cmp al, 0x7a
ja 0x100076c5
cmp al, 0x5a
jbe 0x10007802
cmp al, 0x61
jb 0x100076c5
mov al, byte [ebx + 7]
cmp al, 0x41
jb 0x100076c5
cmp al, 0x7a
ja 0x100076c5
cmp al, 0x5a
jbe 0x10007821
cmp al, 0x61
jb 0x100076c5
test cl, cl
jne 0x10007458
push dword [ebp - 0x5c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push ebx
call fcn.10006750
add esp, 8
test eax, eax
jne 0x100076ba
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x58]
call fcn.10007970
jmp 0x10007461
mov al, byte [ebp - 0x24]
test al, al
je 0x100078a5
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.100067b0
test eax, eax
jne 0x100078a5
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x40]
push edi
push dword [ebp - 0x48]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.10006410
mov eax, dword [ebp - 0x68]
add esp, 0x14
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x84]
push eax
call fcn.10007a10
jmp 0x100078b0
lea ecx, [ebp - 0x84]
call fcn.10005de0
push dword [ebp - 0x60]
call fcn.1005d847
add esp, 4
mov ebx, dword [ebp - 0x20]
lea ecx, [ebp - 0xb4]
call fcn.10005de0
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x100078e1
xor eax, eax
cmp byte [ebp - 0x1a], al
sete al
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x54]
xor esi, esi
mov ecx, dword [ebp - 0x58]
sub eax, ecx
sar eax, 3
test eax, eax
je 0x1000790d
push dword [ecx + esi*8]
call fcn.1005d847
mov eax, dword [ebp - 0x54]
inc esi
mov ecx, dword [ebp - 0x58]
add esp, 4
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x100078f2
push dword [ebp - 0x8c]
mov dword [ebp - 0x54], ecx
call fcn.1005d847
mov esi, dword [ebp - 0x98]
add esp, 4
push ebx
call fcn.1008d1e3
add esp, 4
mov edx, dword [ebp - 0x58]
test edx, edx
je 0x10007943
mov ecx, dword [ebp - 0x50]
sub ecx, edx
sar ecx, 3
push ecx
push edx
call fcn.10007bc0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005db7c
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
jmp 0x100072e0