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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call edi
cmp dword [ebp + 0xc], esi
jne 0x1018a14
push 0x10066bc
push 2
call fcn.010281c7
push 2
call edi
xor eax, eax
jmp 0x1018da3
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
mov ebx, 0x10066a4
push ebx
call edi
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0x10
test eax, eax
jne 0x1018a6c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, esi
je 0x1018a6c
push 0x100668c
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1018a6c
push 0x1006650
push 5
call fcn.010281c7
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x1018da2
cmp dword [ebp + 8], esi
je 0x1018a9e
push dword [ebp + 8]
call fcn.01016f8a
test eax, eax
jne 0x1018a9e
push dword [ebp + 8]
push 0x1006608
push 2
call fcn.01028201
add esp, 0xc
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1018da2
push dword [ebp + 0xc]
call edi
mov edi, eax
add edi, 5
lea eax, [edi + edi]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x1018abe
push 8
jmp 0x1018a91
push edi
push eax
push dword [ebp + 0xc]
call fcn.01018224
xor eax, eax
cmp word [ebp + 0x14], 0xffff
push esi
setne al
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x64], esi
mov word [ebp - 0x36], si
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x3c], eax
mov ax, word [ebp + 0x14]
inc ax
neg ax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
sbb eax, eax
and eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], esi
mov word [ebp - 0x38], ax
lea eax, [ebp - 4]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x10017a8
push 0x80000001
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jne 0x1018b60
push 0x10065cc
push dword [ebp - 4]
call ebx
push 0x1006598
push dword [ebp - 4]
call ebx
push 0x1006564
push dword [ebp - 4]
call ebx
push dword [ebp + 0xc]
push 0x1006548
push 5
call fcn.01028201
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1018bf4
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
call edi
cmp eax, esi
jne 0x1018baa
push 0x57
pop eax
cmp eax, esi
jg 0x1018bb7
call edi
cmp eax, esi
jne 0x1018bca
push 0x57
pop eax
jmp 0x1018bca
call edi
cmp eax, esi
jne 0x1018bc0
push 0x57
pop eax
and eax, 0xffff
or eax, 0x80070000
push eax
push dword [ebp + 0xc]
push 0x1006518
push 2
call fcn.01028201
add esp, 0x10
cmp dword [ebp - 4], esi
je 0x1018a97
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1018a97
cmp dword [ebp - 0x20], esi
je 0x1018c05
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x10], esi
je 0x1018d54
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 4
mov dword [ebp + 8], esi
mov dword [ebp + 0x14], esi
mov edi, 0xfa
jmp 0x1018cb3
cmp dword [ebp + 0x10], esi
jne 0x1018c73
cmp dword [ebp - 4], esi
jne 0x1018c3e
mov dword [ebp + 0x10], 1
jmp 0x1018ca6
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x10065cc
push dword [ebp - 4]
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1018c73
push dword [ebp + 0x14]
mov dword [ebp + 0x10], 1
call fcn.01027c10
cmp dword [ebp - 4], esi
je 0x1018ca6
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x1006598
push dword [ebp - 4]
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1018ca6
push dword [ebp + 0x14]
call fcn.01027bd8
mov eax, 0x2932e0
cmp dword [ebp - 0x10], eax
ja 0x1018cce
add dword [ebp - 0x10], edi
push edi
push esi
lea eax, [ebp - 0x24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x1018c2b
jmp 0x1018d03
push eax
push dword [ebp + 0xc]
xor ecx, ecx
inc ecx
push 0x10064d8
push ecx
mov dword [ebp - 8], ecx
call fcn.01028201
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1018cf8
push 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 8], esi
jne 0x1018d22
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1018d22
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x10064bc
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1018d54
cmp dword [ebp - 8], 1
jne 0x1018d54
push 0x100649c
push 1
mov dword [0x102bd28], 0xc00d2afd
call fcn.01028201
pop ecx
pop ecx
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 0x24], esi
pop ecx
je 0x1018d6e
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], esi
cmp dword [ebp - 4], esi
je 0x1018d9a
push 0x10065cc
push dword [ebp - 4]
call ebx
push 0x1006598
push dword [ebp - 4]
call ebx
push 0x1006564
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], esi
sete al
pop ebx
pop edi
pop esi
leave
ret 0x10