Function at 0x10006200
Capabilities:
Encode data using xor
Get common file path
Get file size
Print debug messages
Read file on windows

Disassembly:
sub esp, 0x694
mov eax, dword [0x1001803c]
xor eax, esp
mov dword [esp + 0x690], eax
cmp dword [0x1001a3f8], 0
je 0x100015d4
xor eax, eax
mov ecx, dword [esp + 0x690]
xor ecx, esp
call fcn.100065f6
add esp, 0x694
ret
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x8c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.Smadav.loov
lea eax, [esp + 0x49c]
lea ecx, [esp + 0x8c]
call fcn.10005d00
push eax
push 0x10015eb0
mov ecx, 0x104
lea ebx, [esp + 0x29c]
call fcn.10001120
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.1000667a
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 0x10001665
xor ebx, ebx
jmp 0x1000167d
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 0x10001ec7
mov al, 0x6f
cmp byte [ebx + 1], al
jne 0x10001ec7
cmp byte [ebx + 2], al
jne 0x10001ec7
cmp byte [ebx + 3], 0x76
jne 0x10001ec7
cmp byte [ebx + 4], 0x21
jne 0x10001ec7
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 [0x1001a330], eax
movzx eax, byte [ebx + 8]
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 0xc]
shl ecx, 8
mov dword [0x1001a0bc], edx
movzx edx, byte [ebx + 0xa]
add ecx, edx
movzx edx, byte [ebx + 0xe]
mov dword [0x1001a0dc], ecx
movzx ecx, byte [ebx + 0xd]
shl ecx, 8
add ecx, edx
movzx edx, byte [ebx + 0x12]
mov dword [0x1001a0d8], ecx
movzx ecx, byte [ebx + 0x11]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 0x10]
shl ecx, 8
add ecx, edx
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x13]
mov dword [0x1001a0b8], ecx
movzx ecx, byte [ebx + 0x14]
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov dword [0x1001a0d0], esi
mov dword [0x1001a2f4], eax
mov dl, cl
test cl, cl
jne 0x10001755
mov dl, 0xf1
mov eax, 0x20
cmp ecx, eax
jbe 0x10001771
mov edi, edi
mov cl, byte [eax + ebx]
xor cl, al
xor cl, dl
mov byte [eax + ebx], cl
inc eax
cmp eax, dword [esp + 0x20]
jb 0x10001760
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a0e4], eax
mov eax, dword [0x1001a0d0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a0c0], eax
mov eax, dword [0x1001a0d0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a334], eax
mov eax, dword [0x1001a0dc]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a0cc], eax
mov eax, dword [0x1001a0bc]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a0d4], eax
mov eax, dword [0x1001a330]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a300], eax
mov eax, dword [0x1001a330]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a338], eax
mov eax, dword [0x1001a330]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a32c], eax
xor ecx, ecx
mov eax, dword [0x1001a330]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a0c4], eax
mov eax, dword [0x1001a330]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a340], eax
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a2fc], eax
mov eax, dword [0x1001a0d8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a0c8], eax
mov eax, dword [0x1001a0d8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a33c], eax
mov eax, dword [0x1001a0b8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a2f8], eax
mov eax, dword [0x1001a0b8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000667a
mov dword [0x1001a344], eax
mov eax, dword [0x1001a330]
add esp, 0x3c
xor ebp, ebp
mov esi, 0x20
test eax, eax
jbe 0x100019e1
cmp byte [esi + ebx], 8
lea eax, [esi + ebx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
jbe 0x1000197a
inc esi
cmp byte [esi + ebx], 8
ja 0x10001973
inc esi
mov edi, esi
sub edi, dword [esp + 0x14]
push edi
call fcn.1000667a
mov ecx, dword [0x1001a300]
mov edx, dword [0x1001a340]
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.1000d900
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x1001a300]
mov byte [ecx + edi], 0
mov eax, dword [edx + ebp*4]
sub eax, dword [esp + 0x24]
inc ebp
add esp, 0x10
mov byte [eax + esi - 1], 0
cmp ebp, dword [0x1001a330]
jb 0x10001962
mov edi, dword [esp + 0x10]
mov eax, dword [0x1001a330]
lea ebp, [esi + eax*4]
mov dword [esp + 0x18], ebp
test eax, eax
jbe 0x10001a82
mov edx, dword [0x1001a32c]
lea eax, [esi + ebx + 2]
lea ecx, [ebx + ebp + 3]
sub ebp, esi
mov esi, dword [0x1001a338]
sub esi, edx
mov dword [esp + 0x1c], esi
mov esi, dword [0x1001a330]
mov dword [esp + 0x14], esi
jmp 0x10001a20
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 [edx + edi], 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 0x10001a20
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov eax, dword [0x1001a330]
mov edx, dword [0x1001a0bc]
add eax, eax
add eax, eax
add ebp, eax
xor ecx, ecx
test edx, edx
jbe 0x10001ad3
lea eax, [ebx + ebp + 2]
jmp 0x10001aa0
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 [0x1001a0d4]
mov dword [edi + ecx*4], esi
inc ecx
add eax, 4
cmp ecx, edx
jb 0x10001aa0
mov edi, dword [esp + 0x10]
lea ebp, [ebp + edx*4]
mov edx, dword [0x1001a0dc]
xor ecx, ecx
mov dword [esp + 0x18], ebp
test edx, edx
jbe 0x10001b22
mov esi, dword [0x1001a0cc]
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 dword [esi + ecx*4], edi
inc ecx
add eax, 4
cmp ecx, edx
jb 0x10001af1
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
xor esi, esi
mov dword [0x1001a2f0], esi
lea ebp, [ebp + edx*4]
cmp edi, esi
jbe 0x10001bca
jmp 0x10001b40
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001b58
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001b51
inc ebp
mov eax, ebp
sub eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x20], eax
call fcn.1000667a
mov ecx, dword [0x1001a2fc]
add esp, 4
cmp dword [0x1001a2f0], 0
mov edi, eax
mov dword [ecx + esi*4], edi
jne 0x10001b8d
cmp byte [ebx + ebp - 1], 1
jne 0x10001b8d
mov dword [0x1001a2f0], 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.1000d900
mov eax, dword [esp + 0x28]
mov ecx, dword [0x1001a2fc]
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 0x10001b40
mov eax, dword [esp + 0x10]
sub eax, dword [0x1001a2f0]
mov ecx, dword [0x1001a0d8]
mov dword [0x1001a0e0], eax
mov dword [esp + 0x10], 0
test ecx, ecx
jbe 0x10001c5e
jmp 0x10001bf0
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001c08
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001c01
inc ebp
mov esi, ebp
sub esi, dword [esp + 0x14]
push esi
call fcn.1000667a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
dec esi
mov edi, eax
mov eax, dword [0x1001a0c8]
push esi
push edx
push edi
mov dword [eax + ecx*4], edi
call fcn.1000d900
mov eax, dword [esp + 0x20]
mov edx, dword [0x1001a0c8]
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 [0x1001a0d8]
inc eax
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, ecx
jb 0x10001bf0
mov dword [esp + 0x10], 0
test ecx, ecx
jbe 0x10001cda
lea ebx, [ebx]
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001c88
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001c81
inc ebp
mov esi, ebp
sub esi, dword [esp + 0x14]
push esi
call fcn.1000667a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
dec esi
mov edi, eax
mov eax, dword [0x1001a33c]
push esi
push edx
push edi
mov dword [eax + ecx*4], edi
call fcn.1000d900
mov eax, dword [esp + 0x20]
mov ecx, dword [0x1001a33c]
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 [0x1001a0d8]
jb 0x10001c70
cmp dword [0x1001a0d0], 0
mov dword [esp + 0x10], 0
jbe 0x10001da3
nop
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001d08
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001d01
inc ebp
mov esi, ebp
sub esi, dword [esp + 0x14]
push esi
call fcn.1000667a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
dec esi
mov edi, eax
mov eax, dword [0x1001a0e4]
push esi
push edx
push edi
mov dword [eax + ecx*4], edi
call fcn.1000d900
mov eax, dword [0x1001a0e4]
mov byte [esi + edi], 0
mov esi, dword [esp + 0x20]
mov ecx, dword [eax + esi*4]
sub ecx, dword [esp + 0x24]
push 0x20
mov byte [ecx + ebp - 1], 0
movzx edx, byte [ebx + ebp]
movzx eax, byte [ebx + ebp + 1]
movzx ecx, byte [ebx + ebp + 2]
shl edx, 8
add edx, eax
mov eax, dword [0x1001a334]
shl edx, 8
add edx, ecx
mov dword [eax + esi*4], edx
add ebp, 3
call fcn.1000667a
mov ecx, dword [0x1001a0c0]
mov dword [ecx + 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 [0x1001a0d0]
jb 0x10001cf0
xor esi, esi
cmp dword [0x1001a0b8], esi
jbe 0x10001deb
lea ecx, [ecx]
movzx edi, byte [ebx + ebp]
push edi
call fcn.1000667a
mov ecx, dword [0x1001a2f8]
mov edx, dword [0x1001a344]
mov dword [ecx + esi*4], eax
push edi
lea eax, [ebx + ebp + 1]
mov dword [edx + esi*4], edi
mov ecx, dword [ecx + esi*4]
push eax
push ecx
call fcn.1000d900
inc esi
add esp, 0x10
lea ebp, [edi + ebp + 1]
cmp esi, dword [0x1001a0b8]
jb 0x10001db0
xor esi, esi
cmp dword [0x1001a330], esi
jbe 0x10001e5e
lea ebp, [ebx + ebp + 2]
lea esp, [esp]
movzx edx, byte [ebp - 2]
movzx eax, byte [ebp - 1]
movzx ecx, byte [ebp]
shl edx, 8
add edx, eax
movzx eax, byte [ebp + 1]
shl edx, 8
add edx, ecx
mov ecx, dword [0x1001a0c4]
shl edx, 8
add eax, edx
mov edx, dword [0x1001a300]
push eax
mov dword [ecx + esi*4], eax
mov eax, dword [edx + esi*4]
push eax
push str._s__0__0x_08X
mov ecx, 0x64
lea edi, [esp + 0x30]
call fcn.100010c0
add esp, 0xc
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc esi
add ebp, 4
cmp esi, dword [0x1001a330]
jb 0x10001e00
call fcn.100013a0
push 0x1001a0e8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x104
mov eax, 0x1001a0e8
lea ecx, [ecx]
cmp word [eax], 0
je 0x10001e90
add eax, 2
sub ecx, 1
jne 0x10001e80
jmp 0x10001eb2
test ecx, ecx
je 0x10001eb2
mov eax, 0x104
sub eax, ecx
je 0x10001eb2
cmp word [eax*2 + 0x1001a0e6], 0x5c
jne 0x10001eb2
xor edx, edx
mov word [eax*2 + 0x1001a0e6], dx
push ebx
call fcn.10006605
mov eax, 1
add esp, 4
mov dword [0x1001a3f8], eax
jmp 0x10001ec9
xor eax, eax
mov ecx, dword [esp + 0x6a0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100065f6
add esp, 0x694
ret
jmp 0x100015a0