Function at 0x105983a
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
sub esp, 0x68
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
xor esi, esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call ebx
cmp dword [ebp + 0xc], esi
jne 0x1059871
push 0x100a2fc
push 2
call fcn.01055c50
push 2
call ebx
xor eax, eax
jmp 0x1059bc0
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
push 0x100833c
push dword [ebp + 0xc]
call edi
pop ecx
pop ecx
test eax, eax
je 0x10598b7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, esi
je 0x10598b7
push 0x100a2e4
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x10598b7
push 0x100a2a8
push 4
call fcn.01055c50
push esi
call ebx
xor eax, eax
inc eax
jmp 0x1059bbf
cmp dword [ebp + 8], esi
je 0x10598de
push dword [ebp + 8]
call fcn.010561eb
test eax, eax
jne 0x10598de
push dword [ebp + 8]
push 0x100a260
push 2
call fcn.01055c8a
add esp, 0xc
push 2
jmp 0x1059915
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x10598e4
sub eax, edx
sar eax, 1
lea edi, [eax + 5]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x105991c
push 8
call ebx
jmp 0x1059a3c
push edi
push eax
push dword [ebp + 0xc]
call fcn.010582f3
xor ecx, ecx
mov edi, 0xffff
mov eax, edi
cmp word [ebp + 0x14], ax
push esi
setne cl
xor eax, eax
mov word [ebp - 0x36], ax
mov eax, edi
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], ecx
mov cx, word [ebp + 0x14]
sub cx, ax
movzx eax, cx
neg eax
sbb eax, eax
and eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], esi
mov word [ebp - 0x38], ax
lea eax, [ebp - 4]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x1001c88
push 0x80000001
mov dword [ebp - 0x5c], esi
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
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x10599ca
push 0x100a224
push dword [ebp - 4]
call ebx
push 0x100a1f0
push dword [ebp - 4]
call ebx
push 0x100a1bc
push dword [ebp - 4]
call ebx
push dword [ebp + 0xc]
push 0x100a1a0
push 4
call fcn.01055c8a
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 - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1059a43
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x1059a12
push 0x57
pop eax
cmp eax, esi
jle 0x1059a1b
and eax, edi
or eax, 0x80070000
push eax
push dword [ebp + 0xc]
push 0x100a170
push 2
call fcn.01055c8a
add esp, 0x10
cmp dword [ebp - 4], esi
je 0x1059a3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1059bbf
cmp dword [ebp - 0x20], esi
je 0x1059a54
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x10], esi
je 0x1059b71
mov dword [ebp + 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], 4
mov dword [ebp + 8], esi
mov dword [ebp + 0x14], esi
mov edi, 0xfa
jmp 0x1059b02
cmp dword [ebp + 0x10], esi
jne 0x1059ac2
cmp dword [ebp - 4], esi
jne 0x1059a8d
mov dword [ebp + 0x10], 1
jmp 0x1059af5
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x100a224
push dword [ebp - 4]
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1059ac2
push dword [ebp + 0x14]
mov dword [ebp + 0x10], 1
call fcn.01055455
cmp dword [ebp - 4], esi
je 0x1059af5
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x100a1f0
push dword [ebp - 4]
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1059af5
push dword [ebp + 0x14]
call fcn.0105541d
mov eax, 0x2932e0
cmp dword [ebp - 0xc], eax
ja 0x1059b1d
add dword [ebp - 0xc], edi
push edi
push esi
lea eax, [ebp - 0x24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x1059a7a
jmp 0x1059b52
push eax
push dword [ebp + 0xc]
xor ecx, ecx
inc ecx
push 0x100a130
push ecx
mov dword [ebp - 8], ecx
call fcn.01055c8a
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1059b47
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 0x1059b71
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1059b71
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x24], esi
je 0x1059b8b
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], esi
cmp dword [ebp - 4], esi
je 0x1059bb7
push 0x100a224
push dword [ebp - 4]
call ebx
push 0x100a1f0
push dword [ebp - 4]
call ebx
push 0x100a1bc
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 edi
pop esi
pop ebx
leave
ret 0x10