Function at 0x403eb0
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
mov ebx, eax
sub esp, 0x1f0
cmp ecx, 1
mov dword [ebp - 0x1b8], ecx
lea ecx, [ebp - 0x1ac]
sbb eax, eax
mov dword [esp + 0x20], ecx
lea ecx, [ebp - 0x1b0]
and eax, 0xfff2ffda
mov dword [esp + 0x1c], ecx
add eax, 0xf003f
mov dword [esp + 0x18], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
jne 0x40400a
cmp dword [ebp - 0x1ac], 1
je 0x403fcf
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 0x403fcf
mov ebx, dword [ebp - 0x1a8]
test ebx, ebx
jne 0x404038
test byte [0x40a39c], 8
jne 0x404565
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 0x404012
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.Done._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x40a39c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40400a
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 0x40481a
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 0x4047e4
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x1c0], eax
movzx eax, si
mov dword [ebp - 0x1c4], eax
jmp 0x4040fe
mov edi, dword [ebp - 0x1b8]
test edi, edi
jne 0x4041b5
mov eax, dword [ebp - 0x194]
cmp eax, 1
je 0x4041f2
test byte [0x40a39c], 2
je 0x4040f0
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], str.process_run_key
mov dword [esp + 4], 0x40a39c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
nop
lea esi, [esi]
mov ebx, dword [ebp - 0x1a8]
test ebx, ebx
je 0x403fdb
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 0x404090
test byte [0x40a39c], 2
je 0x4040f0
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], str.process_run_key
mov dword [esp + 4], 0x40a39c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4040f0
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 0x40409e
test byte [0x40a39c], 2
jne 0x40461d
cmp dword [ebp - 0x194], 1
jne 0x4040f0
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 0x4044a7
test byte [0x40a39c], 8
jne 0x4043f4
cmp dword [ebp + 8], 0
jne 0x4043bb
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 [0x40a39c]
push ecx
je 0x40436b
test al, 8
je 0x4040f0
mov eax, dword [ebp - 0x1a8]
mov dword [esp + 0xc], str.Done_processing_cmd__lu._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40a39c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4040f0
mov byte [edx], 0x22
mov esi, dword [ebp - 0x1cc]
lea eax, [edx + 1]
test edi, edi
jle 0x404321
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 sym.___wine_dbg_strdup
mov edi, dword [ebp - 0x1c8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_run_command__s___ld__n
mov dword [esp + 0x14], edi
mov dword [esp + 8], str.runCmd
mov dword [esp + 4], 0x40a39c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x40a39c]
test al, 2
je 0x4042c9
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
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], str.process_run_key
mov dword [esp + 4], 0x40a39c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x40a39c]
jmp 0x4042c9
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 0x404297
mov eax, dword [ebp - 0x18c]
cmp dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c8], eax
je 0x40458e
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
je 0x40442c
jmp 0x404720
add eax, 1
cmp word [esi + eax*2], 0
jne 0x404429
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 0x4046e1
test eax, eax
jle 0x4046e1
add dword [ebp - 0x1bc], 2
mov eax, dword [ebp - 0x1bc]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x4046c3
ja 0x4045db
cmp ax, 9
je 0x4046d2
cmp ax, 0xa
jne 0x404661
mov word [edx], 0x6e5c
mov eax, ebx
add edx, 2
jmp 0x404453
movzx eax, byte [0x40a39c]
test al, 4
je 0x40436b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
cmp dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c8], eax
je 0x4047b3
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push ecx
push ecx
test eax, eax
je 0x4044f1
jmp 0x4047da
add eax, 1
cmp word [esi + eax*2], 0
jne 0x4044ee
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 0x404304
test eax, eax
jle 0x404304
movzx eax, word [ebx]
add ebx, 2
cmp ax, 0xd
je 0x40472a
ja 0x4045fa
cmp ax, 9
je 0x404739
cmp ax, 0xa
jne 0x404751
mov word [edx], 0x6e5c
mov eax, edi
add edx, 2
jmp 0x404518
mov dword [esp + 0xc], str.No_commands_to_execute._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x40a39c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x403fcf
mov eax, dword [ebp - 0x1c4]
mov dword [esp], 0x40b7e1
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edi, 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], edi
mov dword [esp + 8], str.runCmd
mov dword [esp + 4], 0x40a39c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40428d
cmp ax, 0x22
je 0x4046b4
cmp ax, 0x5c
jne 0x404654
mov word [edx], 0x5c5c
mov eax, ebx
add edx, 2
jmp 0x404453
cmp ax, 0x22
je 0x4047a4
cmp ax, 0x5c
jne 0x404748
mov word [edx], 0x5c5c
mov eax, edi
add edx, 2
jmp 0x404518
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], str.process_run_key
mov dword [esp + 4], 0x40a39c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x40409e
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x404714
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 0x404453
mov word [edx], 0x225c
mov eax, ebx
add edx, 2
jmp 0x404453
mov word [edx], 0x725c
mov eax, ebx
add edx, 2
jmp 0x404453
mov word [edx], 0x745c
mov eax, ebx
add edx, 2
jmp 0x404453
mov byte [edx], 0x22
mov esi, dword [ebp - 0x1cc]
lea eax, [edx + 1]
test ebx, ebx
jle 0x4046fe
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 sym.___wine_dbg_strdup
jmp 0x4045a4
mov byte [edx], al
add edx, 1
mov eax, ebx
jmp 0x404453
mov eax, str._invalid_
jmp 0x4045a4
mov word [edx], 0x725c
mov eax, edi
add edx, 2
jmp 0x404518
mov word [edx], 0x745c
mov eax, edi
add edx, 2
jmp 0x404518
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x4047ce
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 0x404518
mov word [edx], 0x225c
mov eax, edi
add edx, 2
jmp 0x404518
mov eax, dword [ebp - 0x1c4]
mov dword [esp], 0x40b7e1
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x404332
mov byte [edx], al
add edx, 1
mov eax, edi
jmp 0x404518
mov eax, str._invalid_
jmp 0x404332
test byte [0x40a39c], 2
je 0x403fdb
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], 0x40a39c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x403fdb
test byte [0x40a39c], 2
je 0x403fcf
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], 0x40a39c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov dword [ebp - 0x1b4], 0
jmp 0x403fdb