Function at 0x10005ec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a775
mov eax, dword fs:[0]
push eax
mov eax, 0x1108
call fcn.10036540
mov eax, dword [0x10070068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x10e8], esi
mov dword [ebp - 0x10fc], ecx
push 0xfffffffffffffff5
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1018], 0
push 0x10069223
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x1014], 0
movups xmmword [ebp - 0x1028], xmm0
call fcn.10009420
push 0xfff
lea eax, [ebp - 0x100f]
mov byte [ebp - 4], 2
push 0
push eax
mov byte [ebp - 0x1010], 0
call fcn.10037170
add esp, 0xc
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x102c]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000642b
nop
cmp dword [ebp - 0x102c], 0
je 0x1000642b
xorps xmm0, xmm0
mov dword [ebp - 0x1034], 0
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1030], 0
movups xmmword [ebp - 0x1044], xmm0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005fc4
sub eax, edx
lea ecx, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.10009420
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x102c]
mov edx, dword [ebp - 0x1034]
cmp ecx, edx
ja 0x10006014
cmp dword [ebp - 0x1030], 0x10
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x1034], ecx
cmovae eax, dword [ebp - 0x1044]
mov byte [eax + ecx], 0
jmp 0x1000606d
mov esi, dword [ebp - 0x1030]
mov edi, ecx
mov eax, esi
sub edi, edx
sub eax, edx
cmp edi, eax
ja 0x10006051
cmp esi, 0x10
mov dword [ebp - 0x1034], ecx
lea eax, [ebp - 0x1044]
cmovae eax, dword [ebp - 0x1044]
push edi
push 0
lea esi, [eax + edx]
push esi
call fcn.10037170
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x1000606d
push 0
push edi
mov byte [ebp - 0x10f0], 0
lea ecx, [ebp - 0x1044]
push dword [ebp - 0x10f0]
push edi
call fcn.10009780
cmp dword [ebp - 0x1030], 0x10
lea eax, [ebp - 0x1044]
mov edi, dword [ebp - 0x1044]
lea esi, [ebp - 0x1044]
mov edx, dword [ebp - 0x1034]
cmovae eax, edi
setae cl
mov dword [ebp - 0x10ec], edi
test cl, cl
mov ecx, dword [ebp - 0x1018]
push edx
mov al, byte [edx + eax - 1]
cmovne esi, edi
mov byte [ebp - 0x10e1], al
mov eax, dword [ebp - 0x1014]
sub eax, ecx
mov dword [ebp - 0x10f4], esi
cmp edx, eax
ja 0x100060fa
cmp dword [ebp - 0x1014], 0x10
lea esi, [ebp - 0x1028]
push dword [ebp - 0x10f4]
cmovae esi, dword [ebp - 0x1028]
lea eax, [ecx + edx]
add esi, ecx
mov dword [ebp - 0x1018], eax
push esi
call fcn.10036be0
mov eax, dword [ebp - 0x1034]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x10006120
push esi
mov byte [ebp - 0x10f8], 0
lea ecx, [ebp - 0x1028]
push dword [ebp - 0x10f8]
push edx
call fcn.100098e0
mov edi, dword [ebp - 0x1044]
mov dword [ebp - 0x10ec], edi
cmp byte [ebp - 0x10e1], 0x3e
je 0x100061a5
cmp dword [ebp - 0x10fc], 0
jne 0x100061a5
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1030]
cmp eax, 0x10
jb 0x1000616c
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10006162
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100064af
push ecx
push edi
call fcn.10035423
add esp, 8
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x102c]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x10e8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10005f90
jmp 0x1000642b
xor ecx, ecx
cmp dword [ebp - 0x1018], ecx
jle 0x1000620b
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1028]
mov edi, dword [ebp - 0x1018]
cmp edx, 0x10
lea eax, [ebp - 0x1028]
cmovae eax, esi
setae byte [ebp - 0x10e1]
cmp byte [eax + ecx], 0xd
jne 0x10006200
cmp byte [ebp - 0x10e1], 0
lea eax, [ebp - 0x1028]
cmovne eax, esi
mov byte [eax + ecx], 0x20
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1028]
mov edi, dword [ebp - 0x1018]
inc ecx
cmp ecx, edi
jl 0x100061c1
mov edi, dword [ebp - 0x10ec]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1104], 0
push 0x10069294
lea ecx, [ebp - 0x1114]
mov dword [ebp - 0x1100], 0
movups xmmword [ebp - 0x1114], xmm0
call fcn.10009320
lea eax, [ebp + 0x94]
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0xc4]
lea ecx, [ebp - 0x10e0]
push eax
call fcn.10007810
lea eax, [ebp - 0x1114]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x10c4]
mov dword [ebp - 0x10c8], esi
call fcn.10007810
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1100]
cmp ecx, 8
jb 0x100062b7
mov edx, dword [ebp - 0x1114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100062ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100064aa
push ecx
push edx
call fcn.10035423
add esp, 8
xor eax, eax
mov dword [ebp - 0x109c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1098], 0xf
movups xmmword [ebp - 0x10ac], xmm0
mov byte [ebp - 0x10ac], 0
movups xmmword [ebp - 0x1094], xmm0
mov dword [ebp - 0x1084], 0
movups xmmword [ebp - 0x1074], xmm0
mov dword [ebp - 0x1080], 7
mov word [ebp - 0x1094], ax
mov dword [ebp - 0x107c], eax
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x1064], eax
mov dword [ebp - 0x1060], 7
mov word [ebp - 0x1074], ax
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1028]
mov ecx, esp
push eax
call fcn.10007b00
lea eax, [ebp - 0x105c]
push eax
lea ecx, [ebp + 8]
call fcn.10016bc0
lea eax, [ebp - 0x10ac]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x105c]
push eax
sub esp, 0x18
lea eax, [ebp + 0xac]
mov ecx, esp
push eax
call fcn.10007810
lea eax, [ebp + 0xf4]
push eax
lea ecx, [ebp - 0x10e0]
call fcn.1000c260
mov ecx, dword [ebp - 0x1048]
mov dword [ebp + 0x40], 0
cmp ecx, 0x10
jb 0x100063c4
mov edx, dword [ebp - 0x105c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100063ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100064aa
push ecx
push edx
call fcn.10035423
add esp, 8
lea ecx, [ebp - 0x10ac]
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0xf
mov byte [ebp - 0x105c], 0
call fcn.100030f0
lea ecx, [ebp - 0x10e0]
call fcn.10003050
mov eax, dword [ebp - 0x1030]
cmp eax, 0x10
jb 0x1000642b
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10006421
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100064aa
push ecx
push edi
call fcn.10035423
add esp, 8
mov ecx, dword [ebp - 0x1014]
cmp ecx, 0x10
jb 0x10006461
mov edx, dword [ebp - 0x1028]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006457
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100064af
push ecx
push edx
call fcn.10035423
add esp, 8
lea ecx, [ebp + 8]
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
call fcn.100031e0
lea ecx, [ebp + 0x94]
call fcn.10002f10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10035415
mov esp, ebp
pop ebp
ret
call fcn.1003a33a
call fcn.1003a33a
int3