Function at 0x10107950
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018543a
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4c0], edi
mov dword [ebp - 0x4b4], 0
xor eax, eax
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x478]
push 1
push 0x101a4ae8
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
call fcn.10001c20
mov byte [ebp - 4], 1
lea edx, [ebp - 0x478]
cmp dword [ebp - 0x464], 8
cmovae edx, dword [ebp - 0x478]
add edi, 0x4c
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10107a00
sub ecx, esi
mov eax, edi
sar ecx, 1
cmp dword [edi + 0x14], 8
jb 0x10107a19
mov eax, dword [edi]
push dword [ebp - 0x4c4]
mov esi, dword [edi + 0x10]
push ecx
push edx
push ecx
mov edx, esi
mov ecx, eax
call fcn.100f1540
xor ecx, ecx
mov dword [ebp - 0x438], 0
add esp, 0x10
mov word [ebp - 0x448], cx
cmp esi, eax
mov dword [ebp - 0x434], 7
mov ecx, edi
cmovb eax, esi
cmp dword [edi + 0x14], 8
jb 0x10107a5d
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0x448]
call fcn.10001c20
lea ecx, [ebp - 0x460]
call fcn.10001bc0
movups xmm0, xmmword [ebp - 0x448]
xor eax, eax
lea ecx, [ebp - 0x448]
mov word [ebp - 0x448], ax
movups xmmword [ebp - 0x460], xmm0
movq xmm0, qword [ebp - 0x438]
movq qword [ebp - 0x450], xmm0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
call fcn.10001bc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x428]
mov esi, dword [ebp - 0x468]
xor eax, eax
mov word [ebp - 0x428], ax
mov eax, dword [ebp - 0x450]
add eax, esi
mov dword [ebp - 0x418], 0
push eax
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x4b4], 3
call fcn.10002010
cmp dword [ebp - 0x44c], 8
lea eax, [ebp - 0x460]
push dword [ebp - 0x450]
cmovae eax, dword [ebp - 0x460]
lea ecx, [ebp - 0x428]
push eax
call fcn.10001d30
cmp dword [ebp - 0x464], 8
lea eax, [ebp - 0x478]
push esi
cmovae eax, dword [ebp - 0x478]
lea ecx, [ebp - 0x428]
push eax
call fcn.10001d30
push 9
push str.asu.trace
lea ecx, [ebp - 0x428]
call fcn.10001d30
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x440], xmm0
movups xmmword [ebp - 0x490], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x460]
movq qword [ebp - 0x430], xmm0
movq qword [ebp - 0x480], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.10001bc0
movups xmm0, xmmword [ebp - 0x440]
xor eax, eax
mov dword [ebp - 0x480], 0
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x47c], 7
movups xmmword [ebp - 0x460], xmm0
mov word [ebp - 0x490], ax
movq xmm0, qword [ebp - 0x430]
movq qword [ebp - 0x450], xmm0
call fcn.10001bc0
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 1
call fcn.10001bc0
mov esi, dword [ebp - 0x4c0]
mov eax, dword [esi + 0x64]
cmp eax, 0xa
je 0x10107c1d
cmp eax, 0x14
je 0x10107c11
mov dword [ebp - 0x4b8], 0xa00000
jmp 0x10107c27
mov dword [ebp - 0x4b8], 0x1400000
jmp 0x10107c27
mov dword [ebp - 0x4b8], 0x3200000
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.10150b00
cmp dword [ebp - 0x44c], 8
lea eax, [ebp - 0x460]
push 0x101c6988
cmovae eax, dword [ebp - 0x460]
push eax
lea eax, [ebp - 0x4ac]
mov dword [ebp - 0x4ac], 0
push eax
call fcn.1015dc80
mov eax, dword [ebp - 0x4ac]
add esp, 0x18
test eax, eax
je 0x10107c96
push eax
push 9
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.1015e60c
push dword [ebp - 0x4ac]
call fcn.1015da8f
add esp, 0x14
cmp dword [edi + 0x14], 8
mov eax, edi
mov byte [ebp - 0x4ad], 0
jb 0x10107ca7
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c4], eax
cmp eax, 0xffffffff
jne 0x10107cd7
mov byte [ebp - 0x4ad], 0
jmp 0x10107fe2
lea ecx, [ebp - 0x430]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10107d0a
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x4b4], eax
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x4bc], eax
mov byte [ebp - 0x4ad], 1
jmp 0x10107d22
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x4b4], eax
push dword [ebp - 0x4c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4ad], 0
je 0x10107fe2
cmp dword [ebp - 0x4bc], 0
jl 0x10107fe2
jg 0x10107d5c
mov eax, dword [ebp - 0x4b4]
cmp eax, dword [ebp - 0x4b8]
jb 0x10107fe2
mov eax, dword [esi + 0x68]
mov byte [esi + 0xd0], 1
test eax, eax
je 0x10107d71
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [ebp - 0x4a8]
call fcn.10004390
lea eax, [ebp - 0x4a8]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x448]
call fcn.10004390
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 4
call fcn.10107510
xor eax, eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 5
call fcn.10107370
lea eax, [ebp - 0x428]
mov edx, 0x101a531c
push eax
lea ecx, [ebp - 0x4dc]
call fcn.10001eb0
add esp, 4
mov byte [ebp - 4], 6
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10107df6
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x448]
call fcn.10001d30
lea ecx, [ebp - 0x4dc]
call fcn.10001bc0
xor eax, eax
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 7
mov word [ebp - 0x490], ax
lea edx, [ebp - 0x490]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4a8]
call fcn.10107760
lea edx, [ebp - 0x490]
lea ecx, [ebp - 0x448]
call fcn.10107590
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
push dword [ebp - 0x438]
cmovae eax, dword [ebp - 0x448]
lea ecx, [ebp - 0x4a8]
push eax
call fcn.10001c20
lea ecx, [ebp - 0x490]
call fcn.10001bc0
lea ecx, [ebp - 0x428]
call fcn.10001bc0
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 3
call fcn.10001bc0
push ecx
lea edx, [ebp - 0x4a8]
mov ecx, edi
call fcn.10107810
add esp, 4
test al, al
je 0x10107f0f
mov ecx, edi
call fcn.100fb8e0
test eax, eax
je 0x10107ed5
cmp eax, 2
je 0x10107f0f
push 0
mov dl, 1
mov ecx, edi
call fcn.100e3030
add esp, 4
test al, al
je 0x10107f0f
cmp dword [edi + 0x14], 8
jb 0x10107edd
mov edi, dword [edi]
push 0
push 0x200080
push 5
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x68], eax
lea edi, [esi + 0x68]
test eax, eax
je 0x10107f12
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
jmp 0x10107f12
lea edi, [esi + 0x68]
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax]
call eax
push 8
push str.keeplogs
lea ecx, [ebp - 0x428]
mov byte [ebp - 0x4ad], al
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
call fcn.100040c0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebp - 0x410]
mov esi, dword [ebp - 0x428]
cmovae eax, esi
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10107f90
test dl, dl
je 0x10107f8c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10107f90
add ecx, 2
add eax, 2
test dl, dl
jne 0x10107f70
xor eax, eax
jmp 0x10107f95
sbb eax, eax
or eax, 1
test eax, eax
je 0x10107fa5
push ecx
mov ecx, dword [ebp - 0x4c0]
call fcn.100efee0
mov eax, dword [ebp - 0x414]
cmp eax, 0x10
jb 0x10107fd7
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10107fcd
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010801b
push ecx
push esi
call fcn.1014d535
add esp, 8
lea ecx, [ebp - 0x4a8]
call fcn.10001bc0
lea ecx, [ebp - 0x478]
call fcn.10001bc0
lea ecx, [ebp - 0x460]
call fcn.10001bc0
mov al, byte [ebp - 0x4ad]
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.1014d1d5
mov esp, ebp
pop ebp
ret 4
call fcn.10158895
int3