Function at 0x66d6cb0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x672d3fb
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1110
call fcn.06709590
mov eax, dword [0x6740080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x10f4], esi
mov dword [ebp - 0x1108], ecx
push 0xfffffffffffffff5
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1020], 0
push 0x67388fc
lea ecx, [ebp - 0x1030]
mov dword [ebp - 0x101c], 0
movups xmmword [ebp - 0x1030], xmm0
call fcn.066dbbf0
push 0xfff
lea eax, [ebp - 0x1017]
mov byte [ebp - 4], 2
push 0
push eax
mov byte [ebp - 0x1018], 0
call fcn.0670a1b0
add esp, 0xc
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x1034]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x66d7231
cmp dword [ebp - 0x1034], 0
je 0x66d7231
xorps xmm0, xmm0
mov dword [ebp - 0x103c], 0
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x1038], 0
movups xmmword [ebp - 0x104c], xmm0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x66d6dc6
sub eax, edx
lea ecx, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1018]
push eax
call fcn.066dbbf0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1034]
mov edx, dword [ebp - 0x103c]
cmp ecx, edx
ja 0x66d6e16
cmp dword [ebp - 0x1038], 0xf
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x103c], ecx
cmova eax, dword [ebp - 0x104c]
mov byte [eax + ecx], 0
jmp 0x66d6e6f
mov esi, dword [ebp - 0x1038]
mov edi, ecx
mov eax, esi
sub edi, edx
sub eax, edx
cmp edi, eax
ja 0x66d6e53
cmp esi, 0xf
mov dword [ebp - 0x103c], ecx
lea eax, [ebp - 0x104c]
cmova eax, dword [ebp - 0x104c]
push edi
push 0
lea esi, [edx + eax]
push esi
call fcn.0670a1b0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x66d6e6f
push 0
push edi
mov byte [ebp - 0x10fc], 0
lea ecx, [ebp - 0x104c]
push dword [ebp - 0x10fc]
push edi
call fcn.066dc000
cmp dword [ebp - 0x1038], 0xf
lea eax, [ebp - 0x104c]
mov edi, dword [ebp - 0x104c]
lea esi, [ebp - 0x104c]
mov edx, dword [ebp - 0x103c]
cmova eax, edi
seta cl
mov dword [ebp - 0x10f8], edi
test cl, cl
mov ecx, dword [ebp - 0x1020]
push edx
mov al, byte [edx + eax - 1]
cmovne esi, edi
mov byte [ebp - 0x10ed], al
mov eax, dword [ebp - 0x101c]
sub eax, ecx
mov dword [ebp - 0x1100], esi
cmp edx, eax
ja 0x66d6efc
cmp dword [ebp - 0x101c], 0xf
lea esi, [ebp - 0x1030]
push dword [ebp - 0x1100]
cmova esi, dword [ebp - 0x1030]
lea eax, [ecx + edx]
add esi, ecx
mov dword [ebp - 0x1020], eax
push esi
call fcn.06709c30
mov eax, dword [ebp - 0x103c]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x66d6f22
push esi
mov byte [ebp - 0x1104], 0
lea ecx, [ebp - 0x1030]
push dword [ebp - 0x1104]
push edx
call fcn.066dc160
mov edi, dword [ebp - 0x104c]
mov dword [ebp - 0x10f8], edi
cmp byte [ebp - 0x10ed], 0x3e
je 0x66d6fa7
cmp dword [ebp - 0x1108], 0
jne 0x66d6fa7
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1038]
cmp eax, 0xf
jbe 0x66d6f6e
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x66d6f64
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66d72b8
push ecx
push edi
call fcn.067085a2
add esp, 8
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x1034]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x10f4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x66d6d92
jmp 0x66d7231
xor ecx, ecx
cmp dword [ebp - 0x1020], ecx
jle 0x66d700d
mov edx, dword [ebp - 0x101c]
mov esi, dword [ebp - 0x1030]
mov edi, dword [ebp - 0x1020]
cmp edx, 0xf
lea eax, [ebp - 0x1030]
cmova eax, esi
seta byte [ebp - 0x10ed]
cmp byte [eax + ecx], 0xd
jne 0x66d7002
cmp byte [ebp - 0x10ed], 0
lea eax, [ebp - 0x1030]
cmovne eax, esi
mov byte [eax + ecx], 0x20
mov edx, dword [ebp - 0x101c]
mov esi, dword [ebp - 0x1030]
mov edi, dword [ebp - 0x1020]
inc ecx
cmp ecx, edi
jl 0x66d6fc3
mov edi, dword [ebp - 0x10f8]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1110], 0
push 0x6738948
lea ecx, [ebp - 0x1120]
mov dword [ebp - 0x110c], 0
movups xmmword [ebp - 0x1120], xmm0
call fcn.066dbaf0
lea eax, [ebx + 0x94]
mov byte [ebp - 4], 4
mov esi, dword [ebx + 0xc4]
lea ecx, [ebp - 0x10ec]
push eax
call fcn.066d9490
lea eax, [ebp - 0x1120]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x10d0]
mov dword [ebp - 0x10d4], esi
call fcn.066d9490
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x110c]
cmp ecx, 7
jbe 0x66d70b9
mov edx, dword [ebp - 0x1120]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x66d70af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66d72b3
push ecx
push edx
call fcn.067085a2
add esp, 8
xor eax, eax
mov dword [ebp - 0x10a8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10a4], 0xf
movups xmmword [ebp - 0x10b8], xmm0
mov byte [ebp - 0x10b8], 0
movups xmmword [ebp - 0x10a0], xmm0
mov dword [ebp - 0x1090], 0
movups xmmword [ebp - 0x1080], xmm0
mov dword [ebp - 0x108c], 7
mov word [ebp - 0x10a0], ax
mov dword [ebp - 0x1088], eax
mov dword [ebp - 0x1084], eax
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x106c], 7
mov word [ebp - 0x1080], ax
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1030]
mov ecx, esp
push eax
call fcn.066d98b0
lea eax, [ebp - 0x1064]
push eax
lea ecx, [ebx + 8]
call fcn.066e8240
mov byte [ebp - 4], 9
sub esp, 0x18
lea eax, [ebx + 0xac]
mov ecx, esp
push eax
call fcn.066d9490
lea eax, [ebp - 0x10b8]
push eax
lea eax, [ebp - 0x1064]
push eax
lea eax, [ebx + 0xf4]
push eax
lea ecx, [ebp - 0x10ec]
call fcn.066ded50
test al, al
je 0x66d7154
mov ecx, dword [ebp - 0x1050]
mov dword [ebx + 0x40], 0
cmp ecx, 0xf
jbe 0x66d71ca
mov edx, dword [ebp - 0x1064]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x66d71c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66d72b3
push ecx
push edx
call fcn.067085a2
add esp, 8
lea ecx, [ebp - 0x10b8]
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x1050], 0xf
mov byte [ebp - 0x1064], 0
call fcn.066d3db0
lea ecx, [ebp - 0x10ec]
call fcn.066d3ea0
mov eax, dword [ebp - 0x1038]
cmp eax, 0xf
jbe 0x66d7231
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x66d7227
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66d72b3
push ecx
push edi
call fcn.067085a2
add esp, 8
mov ecx, dword [ebp - 0x101c]
cmp ecx, 0xf
jbe 0x66d7267
mov edx, dword [ebp - 0x1030]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x66d725d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66d72b8
push ecx
push edx
call fcn.067085a2
add esp, 8
lea ecx, [ebx + 8]
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0xf
mov byte [ebp - 0x1030], 0
call fcn.066d3f40
lea ecx, [ebx + 0x94]
call fcn.066d3c70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.06708594
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0670d38a
call fcn.0670d38a
int3