Function at 0x421540
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Delete registry value
Query or enumerate registry value
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
mov ebx, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x421599
cmp dword [0x442534], 0xffffffff
push 2
pop esi
jne 0x42157f
push ecx
mov edx, esi
call fcn.0041e30f
mov edx, 0x405088
mov ecx, esi
call fcn.0041e767
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4219c8
push 0x4050b4
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4215f8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x4215f8
push 0x4050d4
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4215f8
cmp dword [0x442534], 0xffffffff
push 4
pop edi
jne 0x4215db
push ecx
mov edx, edi
call fcn.0041e30f
mov edx, 0x4050ec
mov ecx, edi
call fcn.0041e767
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x4219c8
test esi, esi
je 0x42161e
mov ecx, esi
call fcn.0041f21e
test eax, eax
jne 0x42161e
push esi
push 0x405128
push 2
pop esi
push esi
call fcn.0041e83a
add esp, 0xc
jmp 0x42158b
mov ecx, ebx
push 2
pop esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, di
jne 0x421626
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 5]
xor ecx, ecx
mov eax, edi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov dword [esp + 0x24], eax
pop ecx
test eax, eax
jne 0x42165a
push 8
jmp 0x42158c
push edi
mov edx, eax
mov ecx, ebx
call fcn.0041ea11
xor edx, edx
mov dword [esp + 0x40], 0x44
xor eax, eax
mov dword [esp + 0x44], edx
mov ecx, 0xffff
mov dword [esp + 0x74], edx
cmp word [ebp + 0xc], cx
push edx
setne al
mov dword [esp + 0x4c], edx
mov dword [esp + 0x70], eax
xor eax, eax
mov word [esp + 0x76], ax
mov ax, word [ebp + 0xc]
sub ax, cx
mov dword [esp + 0x50], edx
movzx eax, ax
neg eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
sbb eax, eax
mov dword [esp + 0x5c], edx
and eax, dword [ebp + 0xc]
mov word [esp + 0x74], ax
lea eax, [esp + 0x14]
push eax
push edx
push 3
push edx
push edx
push edx
push 0x4017d0
push SysReAllocStringLen
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421737
push 0x405170
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4051ac
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4051e0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
push 0x405214
push 4
pop edi
push edi
call fcn.0041e83a
add esp, 0xc
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [esp + 0x40]
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4217ba
push dword [esp + 0x20]
call fcn.00440db7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x421786
push 0x57
pop eax
test eax, eax
jle 0x421790
movzx eax, ax
or eax, 0x80070000
push eax
push ebx
push 0x405230
push esi
call fcn.0041e83a
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x421592
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421592
cmp dword [esp + 0x34], 0
je 0x4217d3
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esp + 0x34], eax
jmp 0x4217d5
xor eax, eax
cmp dword [ebp + 8], 0
je 0x421960
mov esi, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0xfa
jmp 0x4218ea
test esi, esi
jne 0x42186b
cmp dword [esp + 0x10], esi
jne 0x42180b
inc esi
jmp 0x4218cf
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
xor eax, eax
push eax
push 0x405170
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42186b
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x2c], eax
inc esi
mov eax, dword [0x443f94]
test eax, eax
je 0x42186b
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42186b
push dword [esp + 0x2c]
xor eax, eax
push eax
push 0x5d9
push dword [0x443f94]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0x10], 0
je 0x4218cf
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
xor eax, eax
push eax
push 0x4051ac
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4218cf
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x443f94]
test eax, eax
je 0x4218cf
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4218cf
push dword [esp + 0x2c]
xor eax, eax
push eax
push 0x5d8
push dword [0x443f94]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x28]
mov ecx, 0x2932e0
cmp eax, ecx
ja 0x421905
mov ecx, 0xfa
add eax, ecx
mov dword [esp + 0x28], eax
xor eax, eax
push ecx
push eax
lea eax, [esp + 0x38]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x4217fb
jmp 0x42193c
push ecx
push ebx
push 0x405260
push 1
mov dword [esp + 0x24], 1
call fcn.0041e83a
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x421930
push 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0x14], 0
jne 0x421960
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x421960
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0x20]
call fcn.00440db7
cmp dword [esp + 0x34], 0
pop ecx
je 0x421981
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x10], 0
je 0x4219bf
push 0x405170
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4051ac
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4051e0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp + 0x14], eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8