Function at 0x403430
Capabilities:
Create process on windows
Create process suspended
Delete registry value
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, 0xac
test byte [0x409090], 8
jne 0x4034a9
mov edi, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov dword [esp + 0x20], 0
lea eax, [ebp - 0x84]
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 edi
sub esp, 0x24
test eax, eax
je 0x4034db
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004024e0
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], 0x409090
mov dword [esp], 3
call fcn.004027a0
jmp 0x403449
lea edx, [ebp - 0x7c]
xor eax, eax
cmp esi, 1
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
sbb eax, eax
xor ecx, ecx
mov dword [esp + 0x20], edx
lea edx, [ebp - 0x80]
and eax, 0xfff2ffda
mov dword [esp + 0x1c], edx
add eax, 0xf003f
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call edi
sub esp, 0x24
test eax, eax
jne 0x40361d
cmp dword [ebp - 0x7c], 1
mov eax, dword [ebp - 0x80]
je 0x4035bf
lea edx, [ebp - 0x74]
xor edi, edi
mov dword [esp], eax
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x70]
mov dword [esp + 0x20], edx
lea edx, [ebp - 0x78]
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], edx
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
test eax, eax
jne 0x4035bf
cmp dword [ebp - 0x78], 0
jne 0x403634
test byte [0x409090], 8
je 0x4035bf
mov dword [esp + 0xc], str.No_commands_to_execute._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x409090
mov dword [esp], 3
call fcn.004027a0
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x88], esi
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x80]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
push eax
test byte [0x409090], 8
je 0x403623
mov dword [esp + 0xc], str.Done._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x409090
mov dword [esp], 3
call fcn.004027a0
jmp 0x403623
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call ebx
push ecx
jmp 0x4034a1
mov eax, dword [ebp - 0x74]
mov ebx, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], eax
call ebx
mov dword [ebp - 0x88], eax
test eax, eax
je 0x403a30
mov eax, dword [ebp - 0x70]
add eax, 1
mov dword [ebp - 0x70], eax
add eax, eax
mov dword [esp], eax
call ebx
mov ebx, eax
mov eax, dword [ebp - 0x78]
test ebx, ebx
je 0x4039fa
mov edx, dword [ebp - 0x80]
test eax, eax
je 0x4035c9
mov ecx, dword [ebp - 0x70]
sub eax, 1
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x68]
mov dword [esp + 0x1c], ecx
mov edi, dword [ebp - 0x88]
lea ecx, [ebp - 0x64]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x6c]
mov dword [esp], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
mov edx, eax
test eax, eax
jne 0x403719
test esi, esi
jne 0x40373b
mov edx, dword [ebp - 0x64]
cmp edx, 1
je 0x40376c
mov eax, dword [ebp - 0x78]
test byte [0x409090], 2
je 0x40366d
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], 0x409090
mov dword [esp], 1
call fcn.004027a0
mov eax, dword [ebp - 0x78]
jmp 0x40366d
mov eax, dword [ebp - 0x78]
test byte [0x409090], 2
je 0x40366d
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_read_value__lu___ld_._n
jmp 0x4036f5
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
push edx
push edx
test eax, eax
je 0x4036cd
test byte [0x409090], 2
jne 0x40390c
cmp dword [ebp - 0x64], 1
jne 0x40382e
lea edx, [ebp - 0x4c]
xor eax, eax
mov ecx, 0x10
mov dword [ebp - 0x50], 0x44
mov edi, edx
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x60]
mov ecx, 4
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
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 - 0x88]
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 0x4038a7
test byte [0x409090], 8
jne 0x403836
mov eax, dword [ebp - 0x5c]
mov edi, dword [sym.imp.kernelbase.dll_CloseHandle]
mov dword [esp], eax
call edi
push edx
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call edi
push ecx
movzx edx, byte [0x409090]
and dl, 8
mov eax, dword [ebp - 0x78]
je 0x40366d
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], 0x409090
mov dword [esp], 3
call fcn.004027a0
mov eax, dword [ebp - 0x78]
jmp 0x40366d
mov eax, dword [ebp - 0x88]
mov edi, dword [ebp - 0x60]
shr eax, 0x10
test eax, eax
je 0x403940
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x4039d1
mov eax, dword [ebp - 0x88]
call fcn.004020c0
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], 0x409090
mov dword [esp], 3
call fcn.004027a0
jmp 0x4037db
movzx edx, byte [0x409090]
test dl, 4
jne 0x40395b
test dl, 2
je 0x4037fa
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, dword [ebp - 0x88]
call fcn.004024e0
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], 0x409090
mov dword [esp], 1
call fcn.004027a0
movzx edx, byte [0x409090]
jmp 0x4037fa
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x78]
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], 0x409090
mov dword [esp + 0x10], eax
mov dword [esp], 1
call fcn.004027a0
jmp 0x4036cd
mov eax, dword [ebp - 0x88]
mov dword [esp], 0x40b1c0
mov dword [esp + 4], eax
call fcn.00402280
jmp 0x403876
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, dword [ebp - 0x88]
shr eax, 0x10
test eax, eax
je 0x4039db
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push ecx
push ecx
test eax, eax
jne 0x4039f3
mov eax, dword [ebp - 0x88]
call fcn.004020c0
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], 0x409090
mov dword [esp], 2
call fcn.004027a0
movzx edx, byte [0x409090]
jmp 0x4038b7
mov eax, str._invalid_
jmp 0x403876
mov eax, dword [ebp - 0x88]
mov dword [esp], 0x40b1c0
mov dword [esp + 4], eax
call fcn.00402280
jmp 0x403999
mov eax, str._invalid_
jmp 0x403999
test byte [0x409090], 2
je 0x4035c9
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], 0x409090
mov dword [esp], 1
call fcn.004027a0
jmp 0x4035c9
test byte [0x409090], 2
je 0x4035bf
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], 0x409090
mov dword [esp], 1
call fcn.004027a0
jmp 0x4035bf