Function at 0x10001680
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x630
mov eax, dword [0x101cc040]
xor eax, esp
mov dword [esp + 0x62c], eax
cmp dword [0x101cee80], 0
je 0x100016b4
xor eax, eax
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.1012fc12
add esp, 0x630
ret
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x230]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.Smadav.loov
lea eax, [esp + 0x438]
lea ecx, [esp + 0x230]
call fcn.10007ec0
push eax
push 0x10142e98
mov ecx, 0x104
lea ebx, [esp + 0x30]
call fcn.10001160
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.1012fc96
add esp, 4
push 0
push 0
push 0
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10001742
xor ebx, ebx
jmp 0x1000175a
push 0
lea edx, [esp + 0x24]
push edx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebx], 0x6c
jne 0x1000217e
mov al, 0x6f
cmp byte [ebx + 1], al
jne 0x1000217e
cmp byte [ebx + 2], al
jne 0x1000217e
cmp byte [ebx + 3], 0x76
jne 0x1000217e
cmp byte [ebx + 4], 0x21
jne 0x1000217e
movzx eax, byte [ebx + 5]
movzx ecx, byte [ebx + 6]
movzx edx, byte [ebx + 7]
movzx edi, byte [ebx + 0xb]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebx + 9]
movzx esi, byte [ebx + 0xf]
mov dword [0x101cea14], eax
movzx eax, byte [ebx + 8]
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 0xc]
shl ecx, 8
mov dword [0x101ce588], edx
movzx edx, byte [ebx + 0xa]
add ecx, edx
movzx edx, byte [ebx + 0xe]
mov dword [0x101ce5ac], ecx
movzx ecx, byte [ebx + 0xd]
shl ecx, 8
add ecx, edx
movzx edx, byte [ebx + 0x12]
mov dword [0x101ce5a8], ecx
movzx ecx, byte [ebx + 0x11]
shl ecx, 8
add ecx, edx
movzx edx, byte [ebx + 0x15]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 0x10]
mov dword [0x101ce580], ecx
movzx ecx, byte [ebx + 0x14]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x13]
shl eax, 8
add eax, ecx
mov dword [0x101ce9d0], eax
movzx eax, byte [ebx + 0x16]
shl edx, 8
add edx, eax
mov dword [0x101cee88], edx
movzx ecx, byte [ebx + 0x17]
movzx edx, byte [ebx + 0x18]
shl ecx, 8
add ecx, edx
mov dword [0x101cee8c], ecx
movzx eax, byte [ebx + 0x19]
movzx ecx, byte [ebx + 0x1a]
shl eax, 8
add eax, ecx
mov dword [0x101cee90], eax
movzx edx, byte [ebx + 0x1b]
movzx eax, byte [ebx + 0x1c]
shl edx, 8
add edx, eax
mov dword [0x101cee94], edx
movzx ecx, byte [ebx + 0x1d]
movzx edx, byte [ebx + 0x1e]
shl ecx, 8
add ecx, edx
mov dword [0x101cee98], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov dword [0x101ce5a0], esi
mov dl, cl
test cl, cl
jne 0x10001890
mov dl, 0xf1
mov eax, 0x20
cmp ecx, eax
jbe 0x100018b1
lea esp, [esp]
mov cl, byte [eax + ebx]
xor cl, al
xor cl, dl
mov byte [eax + ebx], cl
inc eax
cmp eax, dword [esp + 0x20]
jb 0x100018a0
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101ce9c8], eax
mov eax, dword [0x101ce5a0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101ce58c], eax
mov eax, dword [0x101ce5a0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101cea2c], eax
mov eax, dword [0x101ce5ac]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101ce59c], eax
mov eax, dword [0x101ce588]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101ce5a4], eax
mov eax, dword [0x101cea14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101ce9dc], eax
mov eax, dword [0x101cea14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101cea30], eax
mov eax, dword [0x101cea14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101cea10], eax
xor ecx, ecx
mov eax, dword [0x101cea14]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101ce594], eax
mov eax, dword [0x101cea14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
add esp, 0x28
mov dword [0x101cea3c], eax
xor esi, esi
mov ebp, dword [esi + 0x101cee88]
test ebp, ebp
jbe 0x10001a1e
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
add esp, 4
mov dword [esi + 0x101cea18], eax
add esi, 4
cmp esi, 0x14
jb 0x100019f3
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101ce9d8], eax
mov eax, dword [0x101ce5a8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101ce598], eax
mov eax, dword [0x101ce5a8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101cea38], eax
mov eax, dword [0x101ce580]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101ce9d4], eax
mov eax, dword [0x101ce580]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov edx, dword [0x101cea14]
add esp, 0x14
xor ebp, ebp
mov dword [0x101cec40], eax
mov esi, 0x20
test edx, edx
jbe 0x10001b5c
jmp 0x10001ae0
cmp byte [esi + ebx], 8
lea eax, [esi + ebx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
jbe 0x10001af8
inc esi
cmp byte [esi + ebx], 8
ja 0x10001af1
inc esi
mov edi, esi
sub edi, dword [esp + 0x14]
push edi
call fcn.1012fc96
mov ecx, dword [0x101ce9dc]
mov edx, dword [0x101cea3c]
mov dword [ecx + ebp*4], eax
movzx eax, byte [ebx + esi - 1]
mov dword [edx + ebp*4], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx + ebp*4]
dec edi
push edi
push eax
push ecx
mov dword [esp + 0x2c], ecx
call fcn.10137d10
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x101ce9dc]
mov byte [ecx + edi], 0
mov eax, dword [edx + ebp*4]
sub eax, dword [esp + 0x24]
mov edx, dword [0x101cea14]
inc ebp
add esp, 0x10
mov byte [eax + esi - 1], 0
cmp ebp, edx
jb 0x10001ae0
mov edi, dword [esp + 0x10]
lea ebp, [esi + edx*4]
mov dword [esp + 0x18], ebp
test edx, edx
jbe 0x10001bf4
mov edx, dword [0x101cea10]
lea eax, [esi + ebx + 2]
lea ecx, [ebx + ebp + 3]
sub ebp, esi
mov esi, dword [0x101cea30]
sub esi, edx
mov dword [esp + 0x1c], esi
mov esi, dword [0x101cea14]
mov dword [esp + 0x14], esi
movzx esi, byte [eax - 2]
movzx edi, byte [eax - 1]
shl esi, 8
add esi, edi
movzx edi, byte [eax]
shl esi, 8
add esi, edi
movzx edi, byte [eax + 1]
shl esi, 8
add esi, edi
mov edi, dword [esp + 0x1c]
mov dword [edi + edx], esi
movzx esi, byte [ecx - 3]
movzx edi, byte [ecx - 2]
shl esi, 8
add esi, edi
movzx edi, byte [eax + ebp]
shl esi, 8
add esi, edi
movzx edi, byte [ecx]
shl esi, 8
add esi, edi
mov dword [edx], esi
add eax, 4
add ecx, 4
add edx, 4
sub dword [esp + 0x14], 1
jne 0x10001b91
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov edx, dword [0x101cea14]
mov esi, dword [0x101ce588]
lea eax, [edx*4]
add ebp, eax
xor ecx, ecx
test esi, esi
jbe 0x10001c49
lea eax, [ebx + ebp + 2]
lea ecx, [ecx]
movzx esi, byte [eax - 2]
movzx edi, byte [eax - 1]
shl esi, 8
add esi, edi
movzx edi, byte [eax]
shl esi, 8
add esi, edi
movzx edi, byte [eax + 1]
shl esi, 8
add esi, edi
mov edi, dword [0x101ce5a4]
mov dword [edi + ecx*4], esi
mov esi, dword [0x101ce588]
inc ecx
add eax, 4
cmp ecx, esi
jb 0x10001c10
mov edi, dword [esp + 0x10]
lea ebp, [ebp + esi*4]
mov esi, dword [0x101ce5ac]
xor ecx, ecx
mov dword [esp + 0x18], ebp
test esi, esi
jbe 0x10001c99
lea eax, [ebx + ebp + 2]
movzx edi, byte [eax - 2]
movzx ebp, byte [eax - 1]
shl edi, 8
add edi, ebp
movzx ebp, byte [eax]
shl edi, 8
add edi, ebp
movzx ebp, byte [eax + 1]
shl edi, 8
add edi, ebp
mov ebp, dword [0x101ce59c]
mov dword [ebp + ecx*4], edi
inc ecx
add eax, 4
cmp ecx, esi
jb 0x10001c61
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
lea ebp, [ebp + esi*4]
xor esi, esi
mov dword [0x101ce9cc], 0
test edi, edi
jbe 0x10001d41
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001cc9
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001cc2
inc ebp
mov eax, ebp
sub eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x20], eax
call fcn.1012fc96
mov ecx, dword [0x101ce9d8]
add esp, 4
cmp dword [0x101ce9cc], 0
mov edi, eax
mov dword [ecx + esi*4], edi
jne 0x10001cfe
cmp byte [ebx + ebp - 1], 1
jne 0x10001cfe
mov dword [0x101ce9cc], esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
dec eax
push eax
push edx
push edi
mov dword [esp + 0x28], eax
call fcn.10137d10
mov eax, dword [esp + 0x28]
mov ecx, dword [0x101ce9d8]
mov byte [eax + edi], 0
mov edx, dword [ecx + esi*4]
sub edx, dword [esp + 0x20]
inc esi
add esp, 0xc
mov byte [edx + ebp - 1], 0
cmp esi, dword [esp + 0x10]
jb 0x10001cb1
mov edx, dword [0x101cea14]
mov eax, dword [esp + 0x10]
sub eax, dword [0x101ce9cc]
mov ecx, dword [0x101ce5a8]
mov dword [0x101ce5b0], eax
mov dword [esp + 0x10], 0
test ecx, ecx
jbe 0x10001dd6
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001d7a
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001d73
inc ebp
mov esi, ebp
sub esi, dword [esp + 0x14]
push esi
call fcn.1012fc96
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
dec esi
mov edi, eax
mov eax, dword [0x101ce598]
push esi
push edx
push edi
mov dword [eax + ecx*4], edi
call fcn.10137d10
mov eax, dword [esp + 0x20]
mov edx, dword [0x101ce598]
mov ecx, ebp
sub ecx, dword [esp + 0x24]
mov byte [esi + edi], 0
mov edx, dword [edx + eax*4]
mov byte [ecx + edx - 1], 0
mov ecx, dword [0x101ce5a8]
inc eax
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, ecx
jb 0x10001d62
mov edx, dword [0x101cea14]
mov dword [esp + 0x10], 0
test ecx, ecx
jbe 0x10001e52
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001dfa
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001df3
inc ebp
mov esi, ebp
sub esi, dword [esp + 0x14]
push esi
call fcn.1012fc96
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
dec esi
mov edi, eax
mov eax, dword [0x101cea38]
push esi
push edx
push edi
mov dword [eax + ecx*4], edi
call fcn.10137d10
mov eax, dword [esp + 0x20]
mov ecx, dword [0x101cea38]
mov byte [esi + edi], 0
mov edx, dword [ecx + eax*4]
sub edx, dword [esp + 0x24]
inc eax
add esp, 0x10
mov byte [edx + ebp - 1], 0
mov dword [esp + 0x10], eax
cmp eax, dword [0x101ce5a8]
jb 0x10001de2
mov edx, dword [0x101cea14]
cmp dword [0x101ce5a0], 0
mov dword [esp + 0x10], 0
jbe 0x10001f2d
jmp 0x10001e70
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001e88
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001e81
inc ebp
mov esi, ebp
sub esi, dword [esp + 0x14]
push esi
call fcn.1012fc96
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
dec esi
mov edi, eax
mov eax, dword [0x101ce9c8]
push esi
push edx
push edi
mov dword [eax + ecx*4], edi
call fcn.10137d10
mov ecx, dword [0x101ce9c8]
mov byte [esi + edi], 0
mov esi, dword [esp + 0x20]
mov edx, dword [ecx + esi*4]
mov eax, ebp
sub eax, dword [esp + 0x24]
push 0x20
mov byte [eax + edx - 1], 0
movzx eax, byte [ebx + ebp]
movzx ecx, byte [ebx + ebp + 1]
movzx edx, byte [ebx + ebp + 2]
shl eax, 8
add eax, ecx
mov ecx, dword [0x101cea2c]
shl eax, 8
add eax, edx
mov dword [ecx + esi*4], eax
add ebp, 3
call fcn.1012fc96
mov edx, dword [0x101ce58c]
mov dword [edx + esi*4], eax
mov edi, eax
mov eax, dword [esp + 0x24]
lea esi, [ebx + ebp]
inc eax
add esp, 0x14
mov ecx, 8
add ebp, 0x20
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
cmp eax, dword [0x101ce5a0]
jb 0x10001e70
mov edx, dword [0x101cea14]
xor esi, esi
cmp dword [0x101ce580], esi
jbe 0x10001f80
jmp 0x10001f40
movzx edi, byte [ebx + ebp]
push edi
call fcn.1012fc96
mov ecx, dword [0x101ce9d4]
mov dword [ecx + esi*4], eax
mov eax, dword [0x101cec40]
push edi
lea edx, [ebx + ebp + 1]
mov dword [eax + esi*4], edi
mov eax, dword [ecx + esi*4]
push edx
push eax
call fcn.10137d10
inc esi
add esp, 0x10
lea ebp, [edi + ebp + 1]
cmp esi, dword [0x101ce580]
jb 0x10001f40
mov edx, dword [0x101cea14]
xor ecx, ecx
test edx, edx
jbe 0x10001fbf
lea eax, [ebx + ebp + 2]
lea ebx, [ebx]
movzx esi, byte [eax - 2]
movzx edi, byte [eax - 1]
shl esi, 8
add esi, edi
movzx edi, byte [eax]
shl esi, 8
add esi, edi
movzx edi, byte [eax + 1]
shl esi, 8
add esi, edi
mov edi, dword [0x101ce594]
mov dword [edi + ecx*4], esi
inc ecx
add eax, 4
cmp ecx, edx
jb 0x10001f90
lea ebp, [ebp + edx*4]
xor edx, edx
mov eax, dword [edx + 0x101cee88]
test eax, eax
jbe 0x1000201d
xor ecx, ecx
test eax, eax
jbe 0x10002013
lea eax, [ebx + ebp + 2]
lea esp, [esp]
movzx esi, byte [eax - 2]
movzx edi, byte [eax - 1]
shl esi, 8
add esi, edi
movzx edi, byte [eax]
shl esi, 8
add esi, edi
movzx edi, byte [eax + 1]
shl esi, 8
add esi, edi
mov edi, dword [edx + 0x101cea18]
mov dword [edi + ecx*4], esi
inc ecx
add eax, 4
cmp ecx, dword [edx + 0x101cee88]
jb 0x10001fe0
mov ecx, dword [edx + 0x101cee88]
lea ebp, [ebp + ecx*4]
add edx, 4
cmp edx, 0x14
jb 0x10001fc5
lea edi, [ebp + 3]
cmp dword [esp + 0x20], edi
jbe 0x10002118
movzx esi, byte [ebx + ebp]
movzx edx, byte [ebx + ebp + 1]
movzx eax, byte [ebx + ebp + 2]
shl esi, 8
add esi, edx
shl esi, 8
add esi, eax
mov dword [0x101ce584], esi
je 0x10002118
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov dword [0x101cea34], eax
mov eax, dword [0x101ce584]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012fc96
mov ecx, dword [0x101ce584]
add esp, 8
mov dword [0x101cea08], eax
lea esi, [edi + ecx*4]
test ecx, ecx
jbe 0x10002118
lea ecx, [edi + ebx + 2]
lea edx, [esi + ebx + 3]
sub esi, edi
mov edi, dword [0x101cea34]
sub edi, eax
mov dword [esp + 0x1c], edi
mov edi, dword [0x101ce584]
mov dword [esp + 0x18], edi
movzx edi, byte [ecx - 2]
movzx ebp, byte [ecx - 1]
shl edi, 8
add edi, ebp
movzx ebp, byte [ecx]
shl edi, 8
add edi, ebp
movzx ebp, byte [ecx + 1]
shl edi, 8
add edi, ebp
mov ebp, dword [esp + 0x1c]
mov dword [eax + ebp], edi
movzx edi, byte [edx - 3]
movzx ebp, byte [edx - 2]
shl edi, 8
add edi, ebp
movzx ebp, byte [esi + ecx]
shl edi, 8
add edi, ebp
movzx ebp, byte [edx]
shl edi, 8
add edi, ebp
mov dword [eax], edi
add ecx, 4
add edx, 4
add eax, 4
sub dword [esp + 0x18], 1
jne 0x100020c3
call fcn.10001470
push 0x101ce7c0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x104
mov eax, 0x101ce7c0
cmp word [eax], 0
je 0x10002147
add eax, 2
sub ecx, 1
jne 0x10002137
jmp 0x10002169
test ecx, ecx
je 0x10002169
mov eax, 0x104
sub eax, ecx
je 0x10002169
cmp word [eax*2 + 0x101ce7be], 0x5c
jne 0x10002169
xor ecx, ecx
mov word [eax*2 + 0x101ce7be], cx
push ebx
call fcn.1012fc21
mov eax, 1
add esp, 4
mov dword [0x101cee80], eax
jmp 0x10002180
xor eax, eax
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1012fc12
add esp, 0x630
ret
jmp 0x10001680