Function at 0x421804
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 0x42185d
cmp dword [0x443534], 0xffffffff
push 2
pop esi
jne 0x421843
push ecx
mov edx, esi
call fcn.0041e530
mov edx, 0x405078
mov ecx, esi
call fcn.0041e988
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x421c8c
push 0x4050a4
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4218bc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x4218bc
push 0x4050c4
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4218bc
cmp dword [0x443534], 0xffffffff
push 4
pop edi
jne 0x42189f
push ecx
mov edx, edi
call fcn.0041e530
mov edx, 0x4050dc
mov ecx, edi
call fcn.0041fb3c
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x421c8c
test esi, esi
je 0x4218e2
mov ecx, esi
call fcn.0041f47f
test eax, eax
jne 0x4218e2
push esi
push 0x405118
push 2
pop esi
push esi
call fcn.0041ea5f
add esp, 0xc
jmp 0x42184f
mov ecx, ebx
push 2
pop esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, di
jne 0x4218ea
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.0044183a
mov dword [esp + 0x24], eax
pop ecx
test eax, eax
jne 0x42191e
push 8
jmp 0x421850
push edi
mov edx, eax
mov ecx, ebx
call fcn.0041ec55
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 0x4017c0
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 0x4219fb
push 0x405160
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x40519c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4051d0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
push 0x405204
push 4
pop edi
push edi
call fcn.0041ea5f
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 0x421a7e
push dword [esp + 0x20]
call fcn.00441807
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x421a4a
push 0x57
pop eax
test eax, eax
jle 0x421a54
movzx eax, ax
or eax, 0x80070000
push eax
push ebx
push 0x405220
push esi
call fcn.0041ea5f
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x421856
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421856
cmp dword [esp + 0x34], 0
je 0x421a97
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esp + 0x34], eax
jmp 0x421a99
xor eax, eax
cmp dword [ebp + 8], 0
je 0x421c24
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 0x421bae
test esi, esi
jne 0x421b2f
cmp dword [esp + 0x10], esi
jne 0x421acf
inc esi
jmp 0x421b93
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 0x405160
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421b2f
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x2c], eax
inc esi
mov eax, dword [0x444f94]
test eax, eax
je 0x421b2f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x421b2f
push dword [esp + 0x2c]
xor eax, eax
push eax
push 0x5d9
push dword [0x444f94]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0x10], 0
je 0x421b93
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 0x40519c
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421b93
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x444f94]
test eax, eax
je 0x421b93
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x421b93
push dword [esp + 0x2c]
xor eax, eax
push eax
push 0x5d8
push dword [0x444f94]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x28]
mov ecx, 0x2932e0
cmp eax, ecx
ja 0x421bc9
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 0x421abf
jmp 0x421c00
push ecx
push ebx
push 0x405250
push 1
mov dword [esp + 0x24], 1
call fcn.0041ea5f
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x421bf4
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 0x421c24
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x421c24
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0x20]
call fcn.00441807
cmp dword [esp + 0x34], 0
pop ecx
je 0x421c45
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 0x421c83
push 0x405160
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x40519c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4051d0
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