Function at 0x32435f0c
Capabilities:
Encode data using xor
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
and byte [ebp - 1], 0
and byte [ebp - 9], 0
push ebx
push esi
push edi
push 0x34
pop eax
call fcn.32438510
mov dword [ebp - 0x14], esp
push dword [0x32439844]
pop esi
push dword [ebp - 0x14]
pop edi
push 0x33
pop ecx
lodsb al, byte [esi]
xor al, 0x9c
sub al, 0x50
stosb byte es:[edi], al
dec ecx
jne 0x32435f39
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push dword [ebp - 0x14]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x3243604b
push 0x10
mov dword [ebp - 0x14], 0x105
pop eax
call fcn.32438510
mov dword [ebp - 0x10], esp
mov esi, 0x324396f0
mov edi, dword [ebp - 0x10]
push 0xd
pop ecx
lodsb al, byte [esi]
xor al, 6
add al, 0xd3
stosb byte es:[edi], al
dec ecx
jne 0x32435f80
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
push eax
pop esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or esi, esi
jne 0x3243604b
cmp dword [ebp - 0x18], 1
je 0x32435fc9
cmp dword [ebp - 0x18], 2
jne 0x3243604b
cmp dword [ebp - 0x18], 2
jne 0x32435fe8
lea eax, [ebp - 0x120]
push 0x104
push eax
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push 8
lea esi, [eax + ebp - 0x120]
pop eax
call fcn.32438510
cmp byte [esi - 1], 0x5c
lea eax, [esi - 1]
mov dword [ebp - 0x10], esp
mov edx, eax
je 0x32436014
mov edx, esi
push dword [0x324398b8]
pop esi
push dword [ebp - 0x10]
pop edi
push 7
pop ecx
lodsb al, byte [esi]
add al, 0xde
xor al, 0xd9
stosb byte es:[edi], al
dec ecx
jne 0x32436022
push dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x120]
mov byte [ebp - 9], 1
push eax
call fcn.32433afc
mov byte [ebp - 1], al
lea eax, [ebp - 0x228]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0xc
pop eax
call fcn.32438510
mov dword [ebp - 0x10], esp
mov esi, 0x3243982c
push dword [ebp - 0x10]
pop edi
mov ecx, 9
lodsb al, byte [esi]
xor al, 0x28
sub al, 0x17
stosb byte es:[edi], al
dec ecx
jne 0x32436076
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x120]
push dword [ebp - 0x10]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x120]
push dword [ebp + 8]
push eax
call fcn.32433afc
test al, al
je 0x324360b2
mov byte [ebp - 1], 1
cmp byte [ebp - 9], 0
jne 0x3243611a
lea eax, [ebp - 0x228]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x18
pop eax
call fcn.32438510
mov dword [ebp - 0x10], esp
push dword [0x324395d0]
pop esi
mov edi, dword [ebp - 0x10]
mov ecx, 0x15
lodsb al, byte [esi]
sub al, 0xc9
add al, 0x3f
stosb byte es:[edi], al
dec ecx
jne 0x324360e4
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x120]
push dword [ebp - 0x10]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x120]
push dword [ebp + 8]
push eax
call fcn.32433afc
test al, al
je 0x3243611a
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
lea esp, [ebp - 0x33c]
pop edi
pop esi
pop ebx
leave
ret 4