Function at 0x100036d0
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
push 0xce
lea eax, [ebp - 0x10e]
push 0
push eax
mov dword [ebp - 4], 0
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.ntdll.dll_memset
push 0xff
lea ecx, [ebp - 0x247]
push 0
mov ebx, 1
push ecx
mov dword [ebp - 0x40], 0xff0ff
mov dword [ebp - 0x3c], 0x105
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x248], 0
call sub.ntdll.dll_memset
add esp, 0x18
push 0x104
lea eax, [ebp - 0x34c]
push eax
xor edx, edx
push str.SystemDrive
mov word [ebp - 0x148], dx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0x34c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x40]
push edx
push 0
push 0
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 0x40]
push ecx
push 0x10046ee8
lea edx, [ebp - 0x34c]
push 0x104
push edx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x101
push 0
lea ecx, [ebp - 0x144]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x80000002
call edi
lea edx, [ebp - 0x3c]
push edx
mov edx, dword [ebp - 4]
push 0x10055450
lea eax, [ebp - 0x38]
push eax
push 0
lea ecx, [ebp - 0x34c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x34c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100038b7
sub eax, ecx
xor ecx, ecx
mov esi, eax
mov word [ebp - 0x148], bx
xor edx, edx
lea ecx, [ecx]
mov byte [ebp + edx - 0x248], dl
add edx, ebx
cmp edx, 0x100
jl 0x100038d0
xor edx, edx
jmp 0x100038f0
mov al, byte [ebp + ecx - 0x34c]
xor byte [ebp + edx - 0x248], al
add ecx, ebx
cmp ecx, esi
jl 0x10003906
xor ecx, ecx
add edx, ebx
cmp edx, 0x100
jl 0x100038f0
push 0x10055450
push 0x10055450
mov edx, 0x104
lea eax, [ebp - 0x248]
call fcn.10012820
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push 0x10055450
call esi
test eax, eax
jne 0x1000396e
lea ecx, [ebp - 4]
push ecx
push 0x101
push eax
lea edx, [ebp - 0x34]
push edx
push 0x80000001
call edi
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x3c]
push eax
push 0x10055450
lea ecx, [ebp - 0x38]
push ecx
push 0
push str.userinit
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x10055450
call esi
pop edi
pop esi
pop ebx
test eax, eax
jne 0x1000398f
push 0x104
push eax
push 0x10055450
call sub.ntdll.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000399d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret