Function at 0x1006be19
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 0x18]
push ebx
push esi
lea ecx, [eax + 0x762]
push edi
mov edi, eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x40], ecx
cmp eax, ecx
ja case.0x1006bdd6.4843
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp edi, 0x749c
ja 0x1006be79
je 0x1006be6d
lea eax, [edi - 0x12ac]
cmp eax, 0x3f
ja case.0x1006be91.29874
movzx eax, byte [eax + 0x1006c240]
jmp dword [eax*4 + 0x1006c22c]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x30], ecx
jmp case.0x1006be91.29874
movsd dword es:[edi], dword [esi]
pop edi
mov ah, 0xa4
int 0x8b
adc al, byte [ebx]
push ebp
shr byte [eax], 1
add byte [eax], 0
lea eax, [ebp - 0x28]
push esi
push eax
mov dword [ebp - 0x28], edx
call fcn.10067240
add esp, 0xc
test eax, eax
je case.0x1006be91.29874
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx]
mov ecx, dword [ebx]
mov edx, dword [esi]
lea edi, [ebp - 0x28]
push edi
lea edi, [edx + ecx]
add edi, eax
push edi
add edx, ecx
push 0x1e74
push edx
mov dword [ebp - 0x28], eax
call fcn.1006bc50
mov eax, dword [ebp + 0x14]
add esp, 0x10
test eax, eax
je 0x1006be61
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 0
mov dword [ebp - 0x28], edx
mov edx, dword [ebx]
add edx, dword [esi]
push 0x22
lea ecx, [ebp - 0x28]
push ecx
push edx
push eax
call fcn.1006af70
add esp, 0x14
mov dword [ebp - 0x14], 0
jmp case.0x1006be91.29874
mov dword [ebp - 0x18], str.CFAtaieelre
jmp case.0x1006be91.29874
lea eax, [edi - 0x74b1]
cmp eax, 0xfc
ja case.0x1006be91.29874
movzx eax, byte [eax + 0x1006c2b8]
jmp dword [eax*4 + 0x1006c280]
mov cl, byte [ecx + 9]
mov byte [ebp - 0x4b], cl
jmp case.0x1006be91.29874
mov dl, byte [ecx]
mov al, byte [ecx + 1]
mov cl, byte [ecx + 2]
mov byte [ebp - 0x4c], dl
mov byte [ebp - 0x46], al
mov byte [ebp - 0x42], cl
jmp case.0x1006be91.29874
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x4c]
push ecx
xor edx, edx
push 0x53b0
mov word [ebp - 0x50], dx
call fcn.10062d30
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov byte [ebp + 0x1b], 0
jmp case.0x1006be91.29874
mov dl, byte [ecx + 0xa]
mov byte [ebp - 0x43], dl
jmp case.0x1006be91.29874
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x68], 0x65006b
mov dword [ebp - 0x64], 0x6e0072
jmp case.0x1006be91.29874
mov dword [ebp - 0x60], 0x6c0065
jmp case.0x1006be91.29874
mov edx, 0x33
mov eax, 0x64
mov word [ebp - 0x5c], dx
mov dword [ebp - 0x5a], 0x2e0032
mov word [ebp - 0x56], ax
jmp case.0x1006be91.29874
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
xor edi, edi
test ecx, ecx
jle 0x1006bfdb
xor ebx, ebx
nop
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + edx + 4]
lea esi, [ebx + edx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006bf83
test dl, dl
je 0x1006bf7f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006bf83
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006bf63
xor eax, eax
jmp 0x1006bf88
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006bfb5
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 0x14]
mov dword [esi + 0x14], edx
mov byte [ebp + 0x1b], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x18
cmp edi, eax
jl 0x1006bf50
cmp byte [ebp + 0x1b], 0
jne case.0x1006be91.29874
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x24]
mov eax, 0x139f
mov dword [ebp - 0x28], eax
jmp 0x1006c000
sub eax, 0x139f
je 0x1006c1bb
sub eax, 0x4f
je 0x1006c191
sub eax, 0x4f
jne 0x1006c1c7
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x10], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test ecx, ecx
jle 0x1006c188
mov dword [ebp - 0xc], 0
lea esp, [esp]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 5
lea esp, [esp]
cmp eax, 0x68
ja case.0x1006c070.1
movzx edx, byte [eax + 0x1006c3d0]
jmp dword [edx*4 + 0x1006c3b8]
push 0
push 0
push 0x1313
push esi
call fcn.10062ff0
add esp, 0x10
xor esi, esi
mov dword [ebp - 8], esi
jmp case.0x1006c070.1
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 4]
mov byte [ebp - 2], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006c0a4
sub eax, edx
push 0x2f77
lea edx, [ebp - 0x34]
push edx
add eax, 3
push 0
push 0
mov dword [ebp - 0x34], eax
call fcn.10066470
mov esi, eax
add esp, 0x10
mov dword [ebp - 8], esi
jmp case.0x1006c070.1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006c0d7
push 0
lea ecx, [ebp - 0x38]
push ecx
sub eax, edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp case.0x1006c070.1
mov word [ebp - 4], 0xa0d
jmp case.0x1006c070.1
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 4]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1006c112
lea eax, [ebp - 4]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1006c121
mov edi, dword [ebp - 8]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1006c130
mov ebx, dword [ebp + 0xc]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, 0x1a
dec dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jne 0x1006c060
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 0x10]
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 0x18
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [ebp - 0x10], ecx
jl 0x1006c050
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006c1c7
mov edx, dword [ebx + 0x20]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push edx
call dword [ebp - 0x3c]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
jne 0x1006c1c7
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebx + 0x10]
call fcn.1006d550
mov eax, dword [ebp - 0x28]
add eax, 0x4f
mov dword [ebp - 0x28], eax
cmp eax, 0x143d
jbe 0x1006c000
jmp case.0x1006be91.29874
mov dl, byte [ecx + 7]
mov al, byte [ecx + 8]
mov byte [ebp - 0x4a], dl
mov byte [ebp - 0x44], al
jmp case.0x1006be91.29874
mov cl, byte [ecx + 6]
mov byte [ebp - 0x47], cl
jmp case.0x1006be91.29874
mov dl, byte [ecx + 4]
mov al, byte [ecx + 5]
mov byte [ebp - 0x49], dl
mov byte [ebp - 0x45], al
jmp case.0x1006be91.29874
mov cl, byte [ecx + 3]
mov byte [ebp - 0x48], cl
jmp case.0x1006be91.29874
mov dword [ebp - 0x54], 0x6c006c
mov edi, dword [ebp - 0x2c]
add edi, 0x15
mov dword [ebp - 0x2c], edi
cmp edi, dword [ebp - 0x40]
jbe 0x1006bda2
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret