Function at 0x403ed0
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
push ebx
lea ebx, [ebp - 0x1ac]
sub esp, 0x1f0
cmp ecx, 1
mov dword [ebp - 0x1b8], ecx
sbb ecx, ecx
mov dword [esp + 0x20], ebx
lea ebx, [ebp - 0x1b0]
and ecx, 0xfff2ffda
mov dword [esp + 0x1c], ebx
add ecx, 0xf003f
mov dword [esp + 0x18], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
jne 0x40402a
cmp dword [ebp - 0x1ac], 1
je 0x403fef
lea eax, [ebp - 0x1a4]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x1a0]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x1a8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x1b0]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
test eax, eax
jne 0x403fef
mov ebx, dword [ebp - 0x1a8]
test ebx, ebx
jne 0x404058
test byte [0x40a39c], 8
jne 0x404318
mov dword [ebp - 0x1b4], 0
xor esi, esi
mov eax, dword [ebp - 0x1b4]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call ebx
mov dword [esp], esi
call ebx
mov eax, dword [ebp - 0x1b0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
test byte [0x40a39c], 8
jne 0x404032
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.Done._n
mov dword [esp + 8], global___func__.4
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.6
jmp 0x40402a
mov eax, dword [ebp - 0x1a4]
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], eax
call edi
mov esi, eax
test eax, eax
je 0x40442f
mov eax, dword [ebp - 0x1a0]
add eax, 1
mov dword [ebp - 0x1a0], eax
add eax, eax
mov dword [esp], eax
call edi
mov dword [ebp - 0x1b4], eax
test eax, eax
je 0x4046df
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x1c0], eax
movzx eax, si
mov dword [ebp - 0x1c4], eax
jmp 0x404112
cmp dword [ebp - 0x1b8], 0
jne 0x4041c9
mov eax, dword [ebp - 0x194]
cmp eax, 1
je 0x404206
test byte [0x40a39c], 2
je 0x404104
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1a8]
mov dword [esp + 0xc], str.Incorrect_type_of_value__lu___lu_._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___func__.4
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.6
mov ebx, dword [ebp - 0x1a8]
test ebx, ebx
je 0x403ffb
mov eax, dword [ebp - 0x1a0]
sub ebx, 1
mov dword [esp + 0x18], esi
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x1a4]
mov dword [esp + 0x10], 0
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x198]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x194]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x19c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1b4]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1b0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x4040ad
test byte [0x40a39c], 2
je 0x404104
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1a8]
mov dword [esp + 0xc], str.Couldnt_read_value__lu___ld_._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___func__.4
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.6
jmp 0x404104
mov eax, dword [ebp - 0x1b4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1b0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
push ebx
push ebx
test eax, eax
je 0x4040ba
test byte [0x40a39c], 2
jne 0x404341
cmp dword [ebp - 0x194], 1
jne 0x404104
lea edx, [ebp - 0x178]
xor eax, eax
mov ecx, 0x10
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x17c], 0x44
mov edi, edx
lea edx, [ebp - 0x18c]
rep stosd dword es:[edi], eax
mov edi, edx
mov ecx, 4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x17c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.kernelbase.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x404577
test byte [0x40a39c], 8
jne 0x4044a8
cmp dword [ebp + 8], 0
jne 0x40446f
mov eax, dword [ebp - 0x188]
mov ebx, dword [sym.imp.kernelbase.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x18c]
push edx
mov dword [esp], eax
call ebx
cmp dword [ebp - 0x190], 0xffffffff
movzx eax, byte [global___dbch]
push ecx
je 0x4043df
test al, 8
je 0x404104
mov eax, dword [ebp - 0x1a8]
mov dword [esp + 0xc], str.Done_processing_cmd__lu._n
mov dword [esp + 8], global___func__.4
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.6
jmp 0x404104
mov dword [esp + 0xc], str.No_commands_to_execute._n
mov dword [esp + 8], global___func__.4
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.6
jmp 0x403fef
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1a8]
mov dword [esp + 0xc], str.Couldnt_delete_value__lu___ld_._Running_command_anyways._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___func__.4
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.6
jmp 0x4040ba
mov esi, dword [ebp - 0x1cc]
mov byte [edx], 0x22
lea eax, [edx + 1]
test edi, edi
jle 0x404395
mov word [edx + 1], 0x2e2e
lea eax, [edx + 4]
mov byte [edx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov edx, dword [ebp - 0x1c8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_run_command__s___ld__n
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.runCmd
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.6
movzx eax, byte [global___dbch]
test al, 2
je 0x4042dd
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, esi
call sym._wine_dbgstr_wn.constprop.4
mov dword [esp + 0xc], str.Error_running_cmd__s___lu_._n
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___func__.4
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.6
movzx eax, byte [global___dbch]
jmp 0x4042dd
test byte [0x40a39c], 2
je 0x403fef
mov dword [esp + 0xc], str.Couldnt_allocate_memory_for_the_commands_to_be_executed._n
mov dword [esp + 8], global___func__.4
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.6
mov dword [ebp - 0x1b4], 0
jmp 0x403ffb
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_WaitForSingleObject]
lea eax, [ebp - 0x190]
push ebx
push ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_GetExitCodeProcess]
push edi
push edi
jmp 0x4042ab
mov eax, dword [ebp - 0x18c]
cmp dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c8], eax
je 0x40477a
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
je 0x4044e0
jmp 0x40479e
add eax, 1
cmp word [esi + eax*2], 0
jne 0x4044dd
lea edi, [ebp - 0x16]
mov dword [ebp - 0x1cc], esi
lea edx, [ebp - 0x136]
mov word [ebp - 0x138], 0x224c
mov dword [ebp - 0x1bc], esi
mov esi, edi
lea ebx, [eax - 1]
cmp edx, esi
ja 0x404715
test eax, eax
jle 0x404715
add dword [ebp - 0x1bc], 2
mov eax, dword [ebp - 0x1bc]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x4046c1
ja 0x404557
cmp ax, 9
je 0x4046d0
cmp ax, 0xa
jne 0x404652
mov word [edx], 0x6e5c
mov eax, ebx
add edx, 2
jmp 0x404507
cmp ax, 0x22
je 0x4046b2
cmp ax, 0x5c
jne 0x404652
mov word [edx], 0x5c5c
mov eax, ebx
add edx, 2
jmp 0x404507
movzx eax, byte [global___dbch]
test al, 4
je 0x4043df
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
cmp dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c8], eax
je 0x404832
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push ecx
push ecx
test eax, eax
je 0x4045c1
jmp 0x404859
add eax, 1
cmp word [esi + eax*2], 0
jne 0x4045be
lea ecx, [ebp - 0x16]
mov dword [ebp - 0x1cc], esi
mov ebx, esi
lea edx, [ebp - 0x136]
mov word [ebp - 0x138], 0x224c
mov dword [ebp - 0x1bc], ecx
lea edi, [eax - 1]
cmp edx, dword [ebp - 0x1bc]
ja 0x404378
test eax, eax
jle 0x404378
add ebx, 2
movzx eax, word [ebx - 2]
cmp ax, 0xd
je 0x404823
ja 0x404632
cmp ax, 9
je 0x404814
cmp ax, 0xa
jne 0x4047b4
mov word [edx], 0x6e5c
mov eax, edi
add edx, 2
jmp 0x4045e8
cmp ax, 0x22
je 0x4047a5
cmp ax, 0x5c
jne 0x4047b4
mov word [edx], 0x5c5c
mov eax, edi
add edx, 2
jmp 0x4045e8
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x404792
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ecx, byte [edi + str.0123456789abcdefrootwinewinebus]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], cl
movzx ecx, byte [edi + str.0123456789abcdefrootwinewinebus]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefrootwinewinebus]
and edi, 0xf
mov byte [edx - 3], cl
movzx ecx, byte [edi + str.0123456789abcdefrootwinewinebus]
mov byte [edx - 1], al
mov eax, ebx
mov byte [edx - 2], cl
jmp 0x404507
mov word [edx], 0x225c
mov eax, ebx
add edx, 2
jmp 0x404507
mov word [edx], 0x725c
mov eax, ebx
add edx, 2
jmp 0x404507
mov word [edx], 0x745c
mov eax, ebx
add edx, 2
jmp 0x404507
test byte [0x40a39c], 2
je 0x403ffb
mov dword [esp + 0xc], str.Couldnt_allocate_memory_for_the_value_names._n
mov dword [esp + 8], global___func__.4
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.6
jmp 0x403ffb
mov esi, dword [ebp - 0x1cc]
mov byte [edx], 0x22
lea eax, [edx + 1]
test ebx, ebx
jle 0x404732
mov word [edx + 1], 0x2e2e
lea eax, [edx + 4]
mov byte [edx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov edx, dword [ebp - 0x1c8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Successfully_ran_command__s___Created_process_handle__p_n
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.runCmd
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.6
jmp 0x4042a1
mov eax, dword [ebp - 0x1c4]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.9
jmp 0x404743
mov byte [edx], al
add edx, 1
mov eax, ebx
jmp 0x404507
mov eax, str._invalid_
jmp 0x404743
mov word [edx], 0x225c
mov eax, edi
add edx, 2
jmp 0x4045e8
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x40484d
mov esi, eax
mov byte [edx], 0x5c
add edx, 5
shr si, 0xc
movzx esi, si
movzx ecx, byte [esi + str.0123456789abcdefrootwinewinebus]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [edx - 4], cl
movzx ecx, byte [esi + str.0123456789abcdefrootwinewinebus]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefrootwinewinebus]
and esi, 0xf
mov byte [edx - 3], cl
movzx ecx, byte [esi + str.0123456789abcdefrootwinewinebus]
mov byte [edx - 1], al
mov eax, edi
mov byte [edx - 2], cl
jmp 0x4045e8
mov word [edx], 0x745c
mov eax, edi
add edx, 2
jmp 0x4045e8
mov word [edx], 0x725c
mov eax, edi
add edx, 2
jmp 0x4045e8
mov eax, dword [ebp - 0x1c4]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.9
jmp 0x4043a6
mov byte [edx], al
add edx, 1
mov eax, edi
jmp 0x4045e8
mov eax, str._invalid_
jmp 0x4043a6