Function at 0x4017c0
Capabilities:
Create process on windows
Delete registry key
Print debug messages
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40c81e
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x41207c]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x41207c]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x1c]
mov byte [ebx + 0x44], 0
cmp dword [eax + 0x14], 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], eax
jb 0x401819
mov eax, dword [eax]
lea edi, [ebx + 0x40]
push edi
push 0x20019
push 0
push eax
push 0x80000002
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x401944
xor eax, eax
mov word [esp + 0x4c], ax
xor edi, edi
push 0x16
mov eax, str.fail_in_RegOpenKeyEx__
lea esi, [esp + 0x50]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
call fcn.00403aa0
mov dword [esp + 0x120], edi
cmp byte [ebx + 0x3a], 1
jne 0x40187e
mov ecx, esi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004011e0
mov dword [esp + 0x120], 0xffffffff
cmp dword [esp + 0x60], 8
jb 0x40189d
mov edx, dword [esp + 0x4c]
push edx
call fcn.00406964
add esp, 4
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x4c]
push str.regHive_:
push eax
call fcn.00403eb0
add esp, 8
mov edx, dword [esp + 0x14]
mov ecx, 1
mov dword [esp + 0x120], ecx
cmp byte [edx + 0x3a], cl
jne 0x401925
xor ecx, ecx
push ecx
mov word [esp + 0x34], cx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
call fcn.004033e0
mov eax, dword [esp + 0x30]
mov edi, 8
cmp dword [esp + 0x44], edi
jae 0x401900
lea eax, [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push eax
call esi
push 0x40f0d8
call esi
cmp dword [esp + 0x44], edi
jb 0x40192a
mov edx, dword [esp + 0x30]
push edx
call fcn.00406964
add esp, 4
jmp 0x40192a
mov edi, 8
cmp dword [esp + 0x60], edi
jb 0x40193d
mov eax, dword [esp + 0x4c]
push eax
call fcn.00406964
add esp, 4
xor al, al
jmp 0x401f4d
mov eax, dword [edi]
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor ecx, ecx
mov dword [esp + 0x18], eax
test eax, eax
je 0x4019c9
mov edi, 7
push 0x19
mov eax, str.fail_in_RegQueryInfoKey__
lea esi, [esp + 0x50]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ecx
mov word [esp + 0x50], cx
call fcn.00403aa0
mov dword [esp + 0x120], edi
cmp byte [ebx + 0x3a], 1
jne 0x4019ae
mov ecx, dword [esp + 0x18]
mov edx, esi
push edx
call fcn.004011e0
cmp dword [esp + 0x60], 8
jb 0x40193d
mov eax, dword [esp + 0x4c]
push eax
call fcn.00406964
add esp, 4
xor al, al
jmp 0x401f4d
mov ebx, 0x100
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], cx
lea esi, [esp + 0x68]
mov dword [esp + 0x120], 8
call fcn.00403a10
mov ecx, 7
xor eax, eax
xor edx, edx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb0], eax
mov word [esp + 0xa0], dx
mov dword [esp + 0xd0], ecx
xor ecx, ecx
mov dword [esp + 0xcc], eax
mov word [esp + 0xbc], cx
mov byte [esp + 0x120], 0xa
mov dword [esp + 0x18], eax
cmp dword [esp + 0x24], eax
jbe 0x401ec0
jmp 0x401a50
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
mov dword [esp + 0x78], 0
jae 0x401a67
lea eax, [esp + 0x68]
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x78]
mov ecx, 0x100
mov dword [esp + 0x1c], ecx
lea esi, [esp + 0x68]
cmp eax, ecx
jb 0x401a8b
or eax, 0xffffffff
call fcn.00403b90
jmp 0x401a94
mov ebx, ecx
sub ebx, eax
call fcn.00403a10
cmp dword [esp + 0x78], 0
jbe 0x401f71
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x401aae
lea eax, [esp + 0x68]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x78]
lea esi, [esp + 0x68]
cmp ecx, eax
ja 0x401ae4
or eax, 0xffffffff
call fcn.00403b90
jmp 0x401aed
mov ebx, ecx
sub ebx, eax
call fcn.00403a10
xor ecx, ecx
mov ebx, 7
push 0xb
mov eax, str.DisplayName
lea esi, [esp + 0x50]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], 0
mov word [esp + 0x50], cx
call fcn.00403aa0
lea edx, [esp + 0xa0]
push edx
mov eax, esi
mov byte [esp + 0x124], 0xb
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.004013c0
mov byte [esp + 0x120], 0xa
cmp dword [esp + 0x60], 8
mov esi, eax
jb 0x401b52
mov edx, dword [esp + 0x4c]
push edx
call fcn.00406964
add esp, 4
test esi, esi
jne 0x401ea1
xor eax, eax
mov dword [esp + 0x5c], esi
mov word [esp + 0x4c], ax
push 0xf
mov eax, str.UninstallString
lea esi, [esp + 0x50]
mov dword [esp + 0x64], ebx
call fcn.00403aa0
lea ecx, [esp + 0xbc]
push ecx
mov edx, esi
mov byte [esp + 0x124], 0xc
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x74]
call fcn.004013c0
mov byte [esp + 0x120], 0xa
cmp dword [esp + 0x60], 8
jb 0x401bb4
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00406964
add esp, 4
xor edx, edx
xor edi, edi
push 0x37
mov eax, str._______________________________________________________
lea esi, [esp + 0x50]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edi
mov word [esp + 0x50], dx
call fcn.00403aa0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x120], 0xd
cmp byte [eax + 0x3a], 1
jne 0x401c3e
xor ecx, ecx
push edi
mov edx, esi
mov word [esp + 0x34], cx
push edx
or eax, 0xffffffff
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
call fcn.004033e0
mov eax, dword [esp + 0x30]
mov edi, 8
cmp dword [esp + 0x44], edi
jae 0x401c19
lea eax, [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push eax
call esi
push 0x40f0d8
call esi
cmp dword [esp + 0x44], edi
jb 0x401c49
mov eax, dword [esp + 0x30]
push eax
call fcn.00406964
add esp, 4
jmp 0x401c49
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 8
mov byte [esp + 0x120], 0xa
cmp dword [esp + 0x60], edi
jb 0x401c64
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00406964
add esp, 4
lea edx, [esp + 0x84]
push str.DisplayName_____:
push edx
lea ebx, [esp + 0xa8]
call fcn.00403eb0
add esp, 8
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x120], 0x13
cmp byte [ecx + 0x3a], 1
jne 0x401ce9
xor edx, edx
push edx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], dx
call fcn.004033e0
mov eax, dword [esp + 0x30]
mov edi, 8
cmp dword [esp + 0x44], edi
jae 0x401cca
lea eax, [esp + 0x30]
push eax
call esi
push 0x40f0d8
call esi
cmp dword [esp + 0x44], edi
jb 0x401cee
mov eax, dword [esp + 0x30]
push eax
call fcn.00406964
add esp, 4
jmp 0x401cee
mov edi, 8
mov byte [esp + 0x120], 0xa
cmp dword [esp + 0x98], edi
jb 0x401d0f
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00406964
add esp, 4
lea edx, [esp + 0x84]
push str.UninstallString_:
push edx
lea ebx, [esp + 0xc4]
call fcn.00403eb0
add esp, 8
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov byte [esp + 0x120], 0x19
cmp byte [ecx + 0x3a], bl
jne 0x401d91
xor edx, edx
push edx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], dx
call fcn.004033e0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x401d74
lea eax, [esp + 0x30]
push eax
call esi
push 0x40f0d8
call esi
cmp dword [esp + 0x44], edi
jb 0x401d91
mov eax, dword [esp + 0x30]
push eax
call fcn.00406964
add esp, 4
mov byte [esp + 0x120], 0xa
cmp dword [esp + 0x98], edi
jb 0x401db2
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00406964
add esp, 4
mov eax, dword [esp + 0xa0]
cmp dword [esp + 0xb4], edi
jae 0x401dc9
lea eax, [esp + 0xa0]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0xb0]
push eax
mov eax, dword [ecx + 0x10]
call fcn.004038e0
test eax, eax
jne 0x401ea8
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x38], bl
je 0x401f7b
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x10], eax
xor edx, edx
mov dword [esp + 0x44], esp
push edx
lea eax, [esp + 0x88]
push eax
mov dword [ecx + 0x14], 7
or eax, 0xffffffff
mov word [ecx], dx
call fcn.004033e0
call fcn.00401510
test al, al
je 0x401ea8
mov eax, str.MsiExec.exe
lea ecx, [esp + 0x84]
call fcn.00402ed0
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
lea ecx, [esp + 0x30]
push ecx
mov eax, 0x40f0dc
mov byte [esp + 0x124], 0x22
call fcn.004030a0
lea edx, [esp + 0x30]
push edx
mov eax, 0x40f360
call fcn.004030a0
push 0
lea eax, [esp + 0x6c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x38]
call fcn.004032f0
mov eax, dword [edi + 0x3c]
cmp eax, ebx
jne 0x402055
mov ecx, esi
push ecx
mov eax, 0x40f368
jmp 0x402092
mov ebx, 1
jmp 0x401eac
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x24]
jb 0x401a50
mov ebx, 1
cmp dword [esp + 0xd0], 8
mov edx, dword [esp + 0x14]
mov byte [edx + 0x44], bl
jb 0x401ee6
mov eax, dword [esp + 0xbc]
push eax
call fcn.00406964
add esp, 4
xor esi, esi
xor ecx, ecx
cmp dword [esp + 0xb4], 8
mov edi, 7
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], esi
mov word [esp + 0xbc], cx
jb 0x401f1f
mov edx, dword [esp + 0xa0]
push edx
call fcn.00406964
add esp, 4
xor eax, eax
cmp dword [esp + 0x7c], 8
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], esi
mov word [esp + 0xa0], ax
jb 0x401f4b
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00406964
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00406271
mov esp, ebp
pop ebp
ret
push str.invalid_string_position
call fcn.00406203
mov eax, str.Force_delete_registry
lea ecx, [esp + 0x84]
call fcn.00402ed0
mov byte [esp + 0x120], 0x1f
cmp byte [edi + 0x3a], bl
jne 0x401fa8
lea ecx, [esp + 0x84]
push ecx
xor ecx, ecx
call fcn.004011e0
mov esi, 8
mov byte [esp + 0x120], 0xa
cmp dword [esp + 0x98], esi
jb 0x401fce
mov edx, dword [esp + 0x84]
push edx
call fcn.00406964
add esp, 4
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x7c], esi
jae 0x401fdc
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x401ec5
mov eax, str.fail_in_RegDeleteKeyEx__
lea ecx, [esp + 0x84]
call fcn.00402ed0
mov byte [esp + 0x120], 0x20
cmp byte [edi + 0x3a], bl
jne 0x402021
lea edx, [esp + 0x84]
push edx
mov ecx, esi
call fcn.004011e0
lea esi, [esp + 0x84]
call fcn.00402f10
lea esi, [esp + 0xbc]
call fcn.00402f10
lea esi, [esp + 0xa0]
call fcn.00402f10
lea esi, [esp + 0x68]
call fcn.00402f10
xor al, al
jmp 0x401f4d
cmp eax, 2
jne 0x402061
mov eax, str.__qn
jmp 0x40208d
cmp eax, 3
jne 0x402072
lea eax, [esp + 0x30]
push eax
mov eax, 0x40f380
jmp 0x402092
cmp eax, 4
jne 0x402083
lea ecx, [esp + 0x30]
push ecx
mov eax, str.__qb
jmp 0x402092
cmp eax, 5
jne 0x402097
mov eax, str.__qf
lea edx, [esp + 0x30]
push edx
call fcn.004030a0
lea eax, [esp + 0xf4]
push str.Execute_string_is__:
push eax
lea ebx, [esp + 0x8c]
call fcn.00403eb0
add esp, 8
mov byte [esp + 0x120], 0x23
cmp byte [edi + 0x3a], 1
jne 0x4020c9
push eax
xor ecx, ecx
call fcn.004011e0
lea esi, [esp + 0xf4]
mov byte [esp + 0x120], 0x22
call fcn.00402f10
lea ecx, [esp + 0xf4]
push str.Argument_string_is_:
push ecx
lea ebx, [esp + 0x38]
call fcn.00403eb0
add esp, 8
mov byte [esp + 0x120], 0x24
cmp byte [edi + 0x3a], 1
jne 0x40210c
push eax
xor ecx, ecx
call fcn.004011e0
lea esi, [esp + 0xf4]
call fcn.00402f10
xor edx, edx
mov dword [esp + 0xec], 7
mov dword [esp + 0xe8], 0
mov word [esp + 0xd8], dx
mov byte [esp + 0x120], 0x25
cmp byte [edi + 0x39], 1
jne 0x402158
lea eax, [esp + 0xd8]
push eax
mov eax, str.runas
call fcn.00402f40
mov edx, dword [esp + 0x30]
mov eax, 8
cmp dword [esp + 0x44], eax
jae 0x40216b
lea edx, [esp + 0x30]
mov ecx, dword [esp + 0x84]
cmp dword [esp + 0x98], eax
jae 0x402182
lea ecx, [esp + 0x84]
cmp dword [esp + 0xec], eax
mov eax, dword [esp + 0xd8]
jae 0x402199
lea eax, [esp + 0xd8]
push 1
push 0
push edx
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, eax
mov eax, str.Execute_uninstall
lea ecx, [esp + 0xf4]
call fcn.00402ed0
mov byte [esp + 0x120], 0x26
cmp byte [edi + 0x3a], 1
jne 0x4021d8
lea ecx, [esp + 0xf4]
push ecx
mov ecx, ebx
call fcn.004011e0
lea esi, [esp + 0xf4]
call fcn.00402f10
lea esi, [esp + 0xd8]
call fcn.00402f10
lea esi, [esp + 0x30]
call fcn.00402f10
lea esi, [esp + 0x84]
call fcn.00402f10
lea esi, [esp + 0xbc]
call fcn.00402f10
lea esi, [esp + 0xa0]
call fcn.00402f10
lea esi, [esp + 0x68]
call fcn.00402f10
cmp ebx, 0x20
jbe 0x40193d
mov al, 1
jmp 0x401f4d