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

Disassembly:
push 0xa0
push 0x1031a18
call fcn.010027c0
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x48], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0xb0], edi
push 0x40
push edi
lea eax, [ebp - 0xac]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x64], edi
xor eax, eax
lea edi, [ebp - 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [esi]
call fcn.0102bb06
mov edi, eax
cmp edi, 0xfffffffb
jb 0x103179d
cmp edi, 0xfffffffd
jbe 0x1031769
cmp edi, 0xfffffffe
je 0x1031735
cmp edi, 0xffffffff
jne 0x103179d
push dword [ebp + 0xc]
push esi
call fcn.01031229
mov esi, eax
test esi, esi
je 0x103172b
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x103172b
test dword [eax + 0x1c], 0x40000
je 0x103172b
cmp byte [eax + 0x19], 2
jb 0x103172b
push esi
push 0x1002538
push 0x4e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
mov eax, esi
call fcn.01002808
ret 8
push dword [ebp + 0xc]
push esi
call fcn.010313b9
mov esi, eax
test esi, esi
je 0x103172b
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x103172b
test dword [eax + 0x1c], 0x40000
je 0x103172b
cmp byte [eax + 0x19], 2
jb 0x103172b
push esi
push 0x1002538
push 0x4f
jmp 0x1031720
push dword [ebp + 0xc]
push esi
call fcn.01031549
mov esi, eax
test esi, esi
je 0x103172b
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x103172b
test dword [eax + 0x1c], 0x40000
je 0x103172b
cmp byte [eax + 0x19], 2
jb 0x103172b
push esi
push 0x1002538
push 0x50
jmp 0x1031720
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, 0xc8
jb 0x103183b
cmp dword [ebp + 0xc], eax
je 0x103181d
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
push 0x2000000
call dword [sym.imp.ntdll.dll_RtlOpenCurrentUser]
test eax, eax
jl 0x1031834
mov dword [ebp - 0x68], 4
lea eax, [ebp - 0x4c]
push eax
push 0x20019
push 0
push 0x1026014
push dword [ebp - 0x54]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1031812
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x1025ff4
push dword [ebp - 0x4c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
push dword [ebp - 0x4c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
push dword [ebp - 0x54]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x1031834
lea eax, [ebp - 0x50]
push eax
push ebx
push 0x1025ff4
push 0x1026014
mov ecx, dword [esi + 0xc]
call fcn.01004bd9
cmp dword [ebp - 0x50], 0
je 0x103183b
inc edi
push edi
push 0x1025fd8
push 0x14
lea eax, [ebp - 0x44]
push eax
call fcn.01004d53
add esp, 0x10
test eax, eax
jge 0x103188a
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1031880
test dword [eax + 0x1c], 0x40000
je 0x1031880
cmp byte [eax + 0x19], 2
jb 0x1031880
push 0x1002538
push 0x51
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
push 0x57
pop esi
xor edi, edi
jmp 0x10319c9
mov dword [ebp - 0xb0], 0x44
mov dword [ebp - 0x84], ebx
mov word [ebp - 0x80], bx
xor edi, edi
lea eax, [ebp - 0x64]
cmp dword [ebp + 0xc], edi
je 0x1031931
mov dword [ebp - 0xa8], 0x1012cb4
push eax
lea eax, [ebp - 0xb0]
push eax
push edi
push edi
push 0x404
push edi
push edi
push edi
lea eax, [ebp - 0x44]
push eax
push 0x1031a04
mov ecx, dword [esi]
call fcn.010103aa
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1031981
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x48], esi
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10319cc
test dword [eax + 0x1c], 0x40000
je 0x10319cc
cmp byte [eax + 0x19], 2
jb 0x10319cc
push esi
push 0x1002538
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x10319cc
mov dword [ebp - 0xa8], edi
push edi
push eax
lea eax, [ebp - 0xb0]
push eax
push 4
lea eax, [ebp - 0x44]
push eax
push 0x1031a04
mov ecx, dword [esi + 0xc]
call fcn.010083c1
mov esi, eax
mov dword [ebp - 0x48], esi
cmp esi, edi
je 0x1031981
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10319cc
test dword [eax + 0x1c], 0x40000
je 0x10319cc
cmp byte [eax + 0x19], 2
jb 0x10319cc
push esi
push 0x1002538
push 0x53
jmp 0x1031921
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x4c]
push eax
push 0x493e0
lea eax, [ebp - 0x64]
push eax
call fcn.0102e4b0
mov esi, eax
mov dword [ebp - 0x48], esi
cmp esi, edi
je 0x10319c7
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10319cc
test dword [eax + 0x1c], 0x40000
je 0x10319cc
cmp byte [eax + 0x19], 2
jb 0x10319cc
push esi
push 0x1002538
push 0x54
jmp 0x1031921
xor esi, esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.010319e7
jmp 0x103172b