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

Disassembly:
push 0x4a0
push 0x1010fe0
call fcn.0103e7b6
mov eax, dword [0x107342c]
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 0x10174d3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x101773d
call edi
jmp 0x1017749
cmp eax, 0x102
je 0x1017737
xor edi, edi
inc edi
mov dword [ebp - 0x444], edi
push dword [esi]
call fcn.01017442
test eax, eax
jne 0x101761f
push eax
push dword [esi + 0x10]
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x10174bc
push edi
push 0x1010fdc
push 0x1010fac
lea eax, [ebp - 0x434]
push eax
call fcn.0101df76
test eax, eax
je 0x1017541
push edi
push 0x1010fa8
push 0x1010f80
lea eax, [ebp - 0x434]
push eax
call fcn.0101df76
test eax, eax
jne 0x1017550
mov dword [ebp - 0x430], 0x80004005
jmp 0x1017737
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, 0x1010d8c
jne 0x101758c
mov eax, 0x1010f70
push eax
mov eax, dword [0x1074480]
mov eax, dword [eax + 8]
push dword [eax + 8]
push 0x1010f64
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x1010f48
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 0x10175f0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x10175f9
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x10174bc
push 0xffffffffffffffff
push dword [ebp - 0x458]
call ebx
mov dword [ebp - 0x460], eax
cmp eax, 0xffffffff
jne 0x1017731
jmp 0x10174bc
mov dword [ebp - 0x438], 8
mov dword [ebp - 0x43c], 0x80000002
xor edi, edi
cmp dword [esi], edi
jne 0x101764f
lea eax, [ebp - 0x43c]
push eax
push 0x20019
call dword [sym.imp.ntdll.dll_RtlOpenCurrentUser]
test eax, eax
jl 0x10176be
lea eax, [ebp - 0x440]
push eax
push 0x20019
push edi
push 0x1010ef0
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10176ae
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 0x1010eb8
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 0x10176be
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x438]
mov ecx, 0x438
cmp eax, ecx
jl 0x10176d1
mov eax, ecx
jmp 0x10176d7
cmp eax, edi
jge 0x10176dd
xor eax, eax
mov dword [ebp - 0x438], eax
imul eax, eax, 0x36ee80
mov dword [ebp - 0x438], eax
cmp eax, edi
jne 0x10176f8
mov eax, 0x1b58
mov dword [ebp - 0x438], eax
cdq
push 0xffffffffffffffff
push 0xffffd8f0
push edx
push eax
call fcn.0103e807
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 0x10174bc
xor edi, edi
mov dword [ebp - 0x430], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1017770
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x430], eax
jmp 0x1017737
xor edi, edi
cmp dword [ebp - 0x444], edi
je 0x1017783
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x434], edi
je 0x1017797
push dword [ebp - 0x434]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x458], edi
je 0x10177ab
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x454], edi
je 0x10177bf
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
call fcn.0103e4d8
call fcn.0103e7f1
ret 8