Function at 0x4033a0
Capabilities:
Create process on windows
Create process suspended
Delete registry value
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0xcc
test byte [0x408090], 8
jne 0x403416
mov dword [esp + 0x20], 0
lea eax, [ebp - 0x90]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x20019
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegCreateKeyExW
sub esp, 0x24
test eax, eax
je 0x403448
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00402c30
mov dword [esp + 0xc], str.Processing__s_entries_under_HKLM._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.ProcessRunKeys
mov dword [esp + 4], 0x408090
mov dword [esp], 3
call fcn.00402cb0
jmp 0x4033b9
lea edx, [ebp - 0x88]
xor ecx, ecx
cmp esi, 1
sbb eax, eax
mov dword [ebp - 0x80], ecx
xor edi, edi
and eax, 0xfff2ffda
mov dword [ebp - 0x7c], ecx
add eax, 0xf003f
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
lea edx, [ebp - 0x8c]
xor eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call sub.advapi32.dll_RegCreateKeyExW
sub esp, 0x24
test eax, eax
jne 0x4035c9
cmp dword [ebp - 0x88], 1
je 0x403540
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
lea eax, [ebp - 0x80]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x7c]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x84]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryInfoKeyW
sub esp, 0x30
test eax, eax
jne 0x403540
cmp dword [ebp - 0x84], 0
jne 0x4035dd
test byte [0x408090], 8
je 0x403540
mov dword [esp + 0xc], str.No_commands_to_execute._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x408090
mov dword [esp], 3
call fcn.00402cb0
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x9c], eax
xor eax, eax
mov dword [esp + 8], ebx
mov ebx, dword [sym.imp.kernelbase.dll_HeapFree]
mov dword [esp + 4], eax
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x9c]
xor edx, edx
sub esp, 0xc
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x8c]
sub esp, 0xc
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
push ecx
test byte [0x408090], 8
je 0x4035c9
mov dword [esp + 0xc], str.Done._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x408090
mov dword [esp], 3
call fcn.00402cb0
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
push edx
jmp 0x40340e
mov eax, dword [ebp - 0x80]
mov edi, dword fs:[0x18]
mov ebx, dword [sym.imp.kernelbase.dll_HeapAlloc]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x403823
mov eax, dword [ebp - 0x7c]
add eax, 1
mov dword [ebp - 0x7c], eax
add eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x403966
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40354a
mov edx, dword [ebp - 0x7c]
lea ecx, [ebp - 0x74]
sub eax, 1
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x78], edx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x74], edx
lea edx, [ebp - 0x78]
mov dword [esp + 0x1c], ecx
mov edi, dword [ebp - 0x9c]
lea ecx, [ebp - 0x70]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sub.advapi32.dll_RegEnumValueW
sub esp, 0x20
mov edx, eax
test eax, eax
jne 0x4036fd
test esi, esi
jne 0x403722
mov edx, dword [ebp - 0x70]
cmp edx, 1
je 0x403755
mov eax, dword [ebp - 0x84]
test byte [0x408090], 2
je 0x403646
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Incorrect_type_of_value__lu___lu_._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x408090
mov dword [esp], 1
call fcn.00402cb0
mov eax, dword [ebp - 0x84]
jmp 0x403646
mov eax, dword [ebp - 0x84]
test byte [0x408090], 2
je 0x403646
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_read_value__lu___ld_._n
jmp 0x4036d6
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sub.advapi32.dll_RegDeleteValueW
push edx
push edx
test eax, eax
je 0x4036ab
test byte [0x408090], 2
jne 0x40392f
cmp dword [ebp - 0x70], 1
jne 0x403640
lea edx, [ebp - 0x58]
xor eax, eax
mov ecx, 0x10
mov dword [ebp - 0x5c], 0x44
mov edi, edx
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x6c]
mov ecx, 4
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
xor edi, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x9c]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x4038ca
test byte [0x408090], 8
jne 0x403859
mov eax, dword [ebp - 0x68]
mov edi, dword [sym.imp.kernelbase.dll_CloseHandle]
mov dword [esp], eax
call edi
push eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call edi
push eax
movzx edx, byte [0x408090]
and dl, 8
mov eax, dword [ebp - 0x84]
je 0x403646
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Done_processing_cmd__lu._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x408090
mov dword [esp], 3
call fcn.00402cb0
jmp 0x403640
test byte [0x408090], 2
je 0x403540
mov dword [esp + 0xc], str.Couldnt_allocate_memory_for_the_commands_to_be_executed._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x408090
mov dword [esp], 1
call fcn.00402cb0
jmp 0x403540
mov eax, dword [ebp - 0x9c]
mov edi, dword [ebp - 0x6c]
shr eax, 0x10
test eax, eax
je 0x403a1a
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x403a36
mov eax, dword [ebp - 0x9c]
call fcn.004025b0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Successfully_ran_command__s___Created_process_handle__p_n
mov dword [esp + 8], str.runCmd
mov dword [esp + 4], 0x408090
mov dword [esp], 3
call fcn.00402cb0
jmp 0x4037c8
movzx edx, byte [0x408090]
test dl, 4
jne 0x40399c
test dl, 2
je 0x4037e7
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, dword [ebp - 0x9c]
call fcn.00402c30
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Error_running_cmd__s___lu_._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x408090
mov dword [esp], 1
call fcn.00402cb0
movzx edx, byte [0x408090]
jmp 0x4037e7
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x84]
mov dword [esp + 0xc], str.Couldnt_delete_value__lu___ld_._Running_command_anyways._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x408090
mov dword [esp + 0x10], eax
mov dword [esp], 1
call fcn.00402cb0
jmp 0x4036ab
test byte [0x408090], 2
je 0x40354a
mov dword [esp + 0xc], str.Couldnt_allocate_memory_for_the_value_names._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x408090
mov dword [esp], 1
call fcn.00402cb0
jmp 0x40354a
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, dword [ebp - 0x9c]
shr eax, 0x10
test eax, eax
je 0x403a40
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push ecx
push ecx
test eax, eax
jne 0x403a59
mov eax, dword [ebp - 0x9c]
call fcn.004025b0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_run_command__s___ld__n
mov dword [esp + 8], str.runCmd
mov dword [esp + 4], 0x408090
mov dword [esp], 2
call fcn.00402cb0
movzx edx, byte [0x408090]
jmp 0x4038da
movzx eax, word [ebp - 0x9c]
mov dword [esp], 0x409490
mov dword [esp + 4], eax
call fcn.004029c0
jmp 0x403899
mov eax, str._invalid_
jmp 0x403899
movzx eax, word [ebp - 0x9c]
mov dword [esp], 0x409490
mov dword [esp + 4], eax
call fcn.004029c0
jmp 0x4039e2
mov eax, str._invalid_
jmp 0x4039e2