Function at 0x10001248
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get disk information
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
xor ebx, ebx
push 0xce
lea eax, [ebp - 0x10e]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], 0x74666f73
mov dword [ebp - 0x30], 0x65726177
mov dword [ebp - 0x2c], 0x63696d5c
mov dword [ebp - 0x28], 0x6f736f72
mov dword [ebp - 0x24], 0x775c7466
mov dword [ebp - 0x20], 0x6f646e69
mov dword [ebp - 0x1c], 0x635c7377
mov dword [ebp - 0x18], 0x65727275
mov dword [ebp - 0x14], 0x6576746e
mov dword [ebp - 0x10], 0x6f697372
mov dword [ebp - 0xc], 0x75725c6e
mov word [ebp - 8], 0x6e
mov dword [ebp - 0x144], 0x74666f73
mov dword [ebp - 0x140], 0x65726177
mov dword [ebp - 0x13c], 0x63696d5c
mov dword [ebp - 0x138], 0x6f736f72
mov dword [ebp - 0x134], 0x775c7466
mov dword [ebp - 0x130], 0x6f646e69
mov dword [ebp - 0x12c], 0x6e207377
mov dword [ebp - 0x128], 0x75635c74
mov dword [ebp - 0x124], 0x6e657272
mov dword [ebp - 0x120], 0x72657674
mov dword [ebp - 0x11c], 0x6e6f6973
mov dword [ebp - 0x118], 0x6e69775c
mov dword [ebp - 0x114], 0x6f676f6c
mov word [ebp - 0x110], 0x6e
call sub.MSVCRT.dll_memset
push 0xff
lea eax, [ebp - 0x34b]
push ebx
push eax
mov dword [ebp - 0x40], 0xff0ff
mov dword [ebp - 0x3c], 0x105
mov dword [ebp - 0x38], 1
mov byte [ebp - 0x34c], bl
call sub.MSVCRT.dll_memset
add esp, 0x18
xor eax, eax
lea edi, [ebp - 0x24c]
stosw word es:[edi], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x248]
push eax
push 0x10005868
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 0x40]
lea eax, [ebp - 0x248]
push 0x10005874
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x101
push ebx
lea eax, [ebp - 0x144]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x3c]
push eax
mov edi, 0x100334f0
push edi
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x248]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1000141c
sub eax, ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x34c]
call fcn.100017d5
push edi
mov edx, esi
mov ecx, edi
call fcn.10001812
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1000147e
lea eax, [ebp - 4]
push eax
push 0x101
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x3c]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push ebx
push str.userinit
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10001494
push esi
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x100014a5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret