Function at 0x1031a39
Capabilities:
Create process on windows
Query or enumerate registry value
Resume thread

Disassembly:
push 0xa8
push 0x1031dd8
call fcn.010027c0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x54], esi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0xb8], ebx
push 0x40
push ebx
lea eax, [ebp - 0xb4]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x6c], ebx
xor eax, eax
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [esi]
call fcn.0102bb06
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x1040184]
mov esi, 0x1040184
mov ebx, 0x40000
cmp eax, esi
je 0x1031ac0
test dword [eax + 0x1c], ebx
je 0x1031ac0
mov edi, 0x1002538
cmp byte [eax + 0x19], 4
jb 0x1031ac5
push dword [ebp - 0x4c]
push edi
push 0x55
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1031ac5
mov edi, 0x1002538
cmp dword [ebp - 0x4c], 0xfffffffe
je 0x1031bd0
cmp dword [ebp - 0x4c], 0xffffffff
je 0x1031b8b
cmp dword [ebp - 0x4c], 0xc8
jb 0x1031b54
and dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
push eax
push 0x2000000
call dword [sym.imp.ntdll.dll_RtlOpenCurrentUser]
test eax, eax
jl 0x1031b4b
mov dword [ebp - 0x70], 4
lea eax, [ebp - 0x58]
push eax
push 0x20019
push 0
push 0x1026014
push dword [ebp - 0x50]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1031b42
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0x1025ff4
push dword [ebp - 0x58]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
push dword [ebp - 0x58]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
push dword [ebp - 0x50]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 0x5c], 0
je 0x1031b54
inc dword [ebp - 0x4c]
push dword [ebp - 0x4c]
push 0x1025fd8
push 0x14
lea eax, [ebp - 0x44]
push eax
call fcn.01004d53
add esp, 0x10
test eax, eax
jge 0x1031c00
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1031bc4
test dword [eax + 0x1c], ebx
je 0x1031bc4
cmp byte [eax + 0x19], 2
jb 0x1031bc4
push edi
push 0x58
jmp 0x1031bb9
push 0x1025f98
push 0x14
lea eax, [ebp - 0x44]
push eax
call fcn.01004d53
add esp, 0xc
test eax, eax
jge 0x1031c00
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1031bc4
test dword [eax + 0x1c], ebx
je 0x1031bc4
cmp byte [eax + 0x19], 2
jb 0x1031bc4
push edi
push 0x56
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
mov dword [ebp - 0x48], 0x57
jmp 0x1031d97
push 0x1025fc0
push 0x14
lea eax, [ebp - 0x44]
push eax
call fcn.01004d53
add esp, 0xc
test eax, eax
jge 0x1031c00
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1031bc4
test dword [eax + 0x1c], ebx
je 0x1031bc4
cmp byte [eax + 0x19], 2
jb 0x1031bc4
push edi
push 0x57
jmp 0x1031bb9
mov dword [ebp - 0xb8], 0x44
xor eax, eax
inc eax
mov dword [ebp - 0x8c], eax
mov word [ebp - 0x88], ax
xor eax, eax
cmp dword [0x1042e18], eax
mov ecx, 0x1012cb4
jne 0x1031c2e
mov ecx, 0x1007e44
mov dword [ebp - 0xb0], ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0xb8]
push ecx
push eax
push eax
push 0x404
push eax
push eax
push eax
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1031c97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1031d97
test dword [eax + 0x1c], ebx
je 0x1031d97
cmp byte [eax + 0x19], 2
jb 0x1031d97
push dword [ebp - 0x48]
push edi
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1031d97
push 1
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 8]
call fcn.0102b99a
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x1031cdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1031d97
test dword [eax + 0x1c], ebx
je 0x1031d97
cmp byte [eax + 0x19], 2
jb 0x1031d97
push dword [ebp - 0x48]
push edi
push 0x5a
jmp 0x1031c87
push dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x1031d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1031d97
test dword [eax + 0x1c], ebx
je 0x1031d97
cmp byte [eax + 0x19], 2
jb 0x1031d97
push dword [ebp - 0x48]
push edi
push 0x5b
jmp 0x1031c87
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1031d54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1031d97
test dword [eax + 0x1c], ebx
je 0x1031d97
cmp byte [eax + 0x19], 2
jb 0x1031d97
push dword [ebp - 0x48]
push edi
push 0x5c
jmp 0x1031c87
cmp dword [0x1042e1c], 0
jne 0x1031d6d
push 0x42b
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
jmp 0x1031d97
mov eax, dword [0x1040184]
cmp eax, esi
je 0x1031d93
test dword [eax + 0x1c], ebx
je 0x1031d93
cmp byte [eax + 0x19], 4
jb 0x1031d93
lea ecx, [ebp - 0x44]
push ecx
push edi
push 0x5d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010020c5
and dword [ebp - 0x48], 0
mov dword [ebp - 4], 0xfffffffe
call fcn.01031db3
mov eax, dword [ebp - 0x48]
call fcn.01002808
ret 4