Function at 0x1063dee
Capabilities:
Check os version
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x62c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x628], edi
mov dword [ebp - 0x638], edi
mov dword [ebp - 0x634], edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov ebx, 0x1005ccc
cmp eax, esi
je 0x1063e5e
test byte [eax + 0x1c], 2
je 0x1063e5e
cmp byte [eax + 0x19], 5
jb 0x1063e5e
push ebx
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov eax, dword [0x1075004]
cmp dword [ebp - 0x62c], edi
je 0x1064205
cmp dword [ebp - 0x630], edi
je 0x1064205
call fcn.01061093
test eax, eax
je 0x106404d
call fcn.0106163b
test eax, eax
jne 0x106404d
mov dword [ebp - 0x650], edi
lea edi, [ebp - 0x64c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, 0x208
push edi
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1063f23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063f1c
test byte [eax + 0x1c], 2
je 0x1063f1c
cmp byte [eax + 0x19], 2
jb 0x1063f1c
push edi
push ebx
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, edi
jmp 0x1064228
lea eax, [ebp - 0x210]
push eax
push 0x1005d5c
lea eax, [ebp - 0x620]
push edi
push eax
call fcn.01009a76
add esp, 0x10
test eax, eax
jge 0x1063f72
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x1063f68
test byte [ecx + 0x1c], 2
je 0x1063f68
cmp byte [ecx + 0x19], 2
jb 0x1063f68
push eax
push ebx
push 0x18
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
mov eax, 0x10b
jmp 0x1064228
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x620]
push eax
mov dword [ebp - 0x650], 0x14
call fcn.0105d047
mov edi, eax
test edi, edi
je 0x1063fc4
cmp edi, 2
je 0x1063fc4
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063f1c
test byte [eax + 0x1c], 2
je 0x1063f1c
cmp byte [eax + 0x19], 2
jb 0x1063f1c
push edi
push ebx
push 0x19
jmp 0x1063f11
push 5
pop eax
cmp ax, word [ebp - 0x648]
jne 0x106404b
push 2
pop eax
cmp ax, word [ebp - 0x646]
jne 0x106404b
mov eax, 0x6f0
cmp ax, word [ebp - 0x644]
je 0x1063ff8
mov eax, 0xa28
cmp ax, word [ebp - 0x644]
jne 0x106404b
call fcn.01063cbc
test eax, eax
jne 0x1064033
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1063f1c
test byte [eax + 0x1c], 2
je 0x1063f1c
cmp byte [eax + 0x19], 2
jb 0x1063f1c
push edi
push ebx
push 0x1a
jmp 0x1063f11
mov ecx, dword [ebp - 0x630]
and dword [ecx], 0
mov ecx, dword [ebp - 0x62c]
mov dword [ecx], eax
xor eax, eax
jmp 0x1064228
xor edi, edi
lea eax, [ebp - 0x628]
push eax
push 0x111
push edi
push 0x1001f38
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x624], eax
cmp eax, edi
je 0x10640a8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106409d
test byte [eax + 0x1c], 2
je 0x106409d
cmp byte [eax + 0x19], 2
jb 0x106409d
push dword [ebp - 0x624]
push ebx
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, dword [ebp - 0x624]
jmp 0x1064228
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x624], eax
cmp eax, edi
jne 0x10640ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x10641af
test byte [eax + 0x1c], 2
je 0x10641af
cmp byte [eax + 0x19], 2
jb 0x10641af
push edi
push ebx
push 0x1c
jmp 0x10641a4
push 1
push eax
push 4
push edi
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov edi, eax
test edi, edi
je 0x106412e
mov eax, dword [0x1075004]
cmp eax, esi
je 0x10641af
test byte [eax + 0x1c], 2
je 0x10641af
cmp byte [eax + 0x19], 2
jb 0x10641af
push edi
push ebx
push 0x1d
jmp 0x10641a4
lea eax, [ebp - 0x63c]
push eax
push 4
push 1
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x638]
push eax
push 0x1001d60
push 0
call fcn.01063b7e
mov edi, eax
test edi, edi
jne 0x10641b3
push dword [ebp - 0x634]
push dword [ebp - 0x638]
call fcn.01063105
cmp dword [ebp - 0x63c], 4
jne 0x10641e6
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10641e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x10641af
test byte [eax + 0x1c], 2
je 0x10641af
cmp byte [eax + 0x19], 2
jb 0x10641af
push edi
push ebx
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
test edi, edi
je 0x10641e6
cmp dword [ebp - 0x624], 0
je 0x10641c8
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x628], 0
je 0x1063f1c
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1063f1c
mov eax, dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x624]
mov dword [eax], ecx
mov eax, dword [ebp - 0x628]
mov ecx, dword [ebp - 0x630]
jmp 0x1064042
cmp eax, esi
je 0x1064225
test byte [eax + 0x1c], 2
je 0x1064225
cmp byte [eax + 0x19], 2
jb 0x1064225
push 0x57
push ebx
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 8