Function at 0x1017108
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0x4a0
push 0x1010d20
call fcn.0103d528
mov eax, dword [0x10723e4]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x45c], esi
xor ecx, ecx
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x434], ecx
xor eax, eax
lea edi, [ebp - 0x458]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
push ecx
push dword [esi + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call ebx
mov dword [ebp - 0x460], eax
cmp eax, 0xffffffff
jne 0x1017173
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x10173dd
call edi
jmp 0x10173e9
cmp eax, 0x102
je 0x10173d7
xor edi, edi
inc edi
mov dword [ebp - 0x444], edi
push dword [esi]
call fcn.010170e2
test eax, eax
jne 0x10172bf
push eax
push dword [esi + 0x10]
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x101715c
push edi
push 0x1010d1c
push 0x1010cec
lea eax, [ebp - 0x434]
push eax
call fcn.0101de16
test eax, eax
je 0x10171e1
push edi
push 0x1010ce8
push 0x1010cc0
lea eax, [ebp - 0x434]
push eax
call fcn.0101de16
test eax, eax
jne 0x10171f0
mov dword [ebp - 0x430], 0x80004005
jmp 0x10173d7
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x4b0]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4b0], 0x44
mov word [ebp - 0x480], 2
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x4a8], eax
xor edi, edi
cmp dword [esi], edi
mov eax, 0x1010acc
jne 0x101722c
mov eax, 0x1010cb0
push eax
mov eax, dword [0x10733bc]
mov eax, dword [eax + 8]
push dword [eax + 8]
push 0x1010ca4
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x1010c88
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x18
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x224]
push edi
push dword [ebp - 0x434]
push 0x400
push edi
push edi
push edi
push eax
push edi
cmp dword [esi], edi
je 0x1017290
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x1017299
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x101715c
push 0xffffffffffffffff
push dword [ebp - 0x458]
call ebx
mov dword [ebp - 0x460], eax
cmp eax, 0xffffffff
jne 0x10173d1
jmp 0x101715c
mov dword [ebp - 0x438], 8
mov dword [ebp - 0x43c], 0x80000002
xor edi, edi
cmp dword [esi], edi
jne 0x10172ef
lea eax, [ebp - 0x43c]
push eax
push 0x20019
call dword [sym.imp.ntdll.dll_RtlOpenCurrentUser]
test eax, eax
jl 0x101735e
lea eax, [ebp - 0x440]
push eax
push 0x20019
push edi
push 0x1010c30
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101734e
mov dword [ebp - 0x448], 4
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x46c]
push eax
push edi
push 0x1010bf8
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], edi
jne 0x101735e
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x438]
mov ecx, 0x438
cmp eax, ecx
jl 0x1017371
mov eax, ecx
jmp 0x1017377
cmp eax, edi
jge 0x101737d
xor eax, eax
mov dword [ebp - 0x438], eax
imul eax, eax, 0x36ee80
mov dword [ebp - 0x438], eax
cmp eax, edi
jne 0x1017398
mov eax, 0x1b58
mov dword [ebp - 0x438], eax
cdq
push 0xffffffffffffffff
push 0xffffd8f0
push edx
push eax
call fcn.0103d579
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], edx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x468]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
je 0x101715c
xor edi, edi
mov dword [ebp - 0x430], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1017410
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x430], eax
jmp 0x10173d7
xor edi, edi
cmp dword [ebp - 0x444], edi
je 0x1017423
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x434], edi
je 0x1017437
push dword [ebp - 0x434]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x458], edi
je 0x101744b
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x454], edi
je 0x101745f
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
call fcn.0103d24a
call fcn.0103d563
ret 8