Function at 0x4016e0
Capabilities:
Create process on windows
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2870
call fcn.004045e0
push ebx
push ebp
push esi
push edi
mov ecx, 5
mov esi, 0x40a258
lea edi, [esp + 0x480]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x7a
lea edi, [esp + 0x496]
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x480]
stosw word es:[edi], ax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0x200
push eax
push ecx
push 0x80000002
call ebx
test eax, eax
jne 0x40189d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x80]
push edx
push eax
push 0
push 0
push 0x40a24c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40189d
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [0x40b150]
mov dword [esp + 0x3c], 0x44
test eax, eax
je 0x4018db
mov ecx, 6
mov esi, 0x40a230
lea edi, [esp + 0x280]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x79
lea edi, [esp + 0x299]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x280]
push eax
push ecx
push 0x80000001
call ebx
test eax, eax
jne 0x40189d
mov eax, dword [0x40f154]
xor esi, esi
test eax, eax
jle 0x40189d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, 0x40b154
push esi
lea edx, [esp + 0x30]
push 0x40a22c
push edx
call fcn.00404580
push edi
lea eax, [esp + 0x690]
push 0x40a220
push eax
call fcn.00404580
mov eax, dword [esp + 0x28]
add esp, 0x18
lea ecx, [esp + 0x680]
lea edx, [esp + 0x2c]
push 0x104
push ecx
push 1
push 0
push edx
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x80]
lea eax, [esp + 0x880]
push edx
push 0x40a1e8
push eax
call fcn.00404580
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x880]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call ebp
test eax, eax
jne 0x4018aa
mov eax, dword [0x40f154]
inc esi
add edi, 0x200
cmp esi, eax
jl 0x4017f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2870
ret
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2870
ret
lea ecx, [esp + 0x80]
lea edx, [esp + 0x880]
push ecx
push 0x40a1d8
push edx
call fcn.00404580
lea eax, [esp + 0x88c]
push 0
push eax
call fcn.00408146
add esp, 0x14
cmp eax, 0xffffffff
je 0x40189d
lea ecx, [esp + 0x80]
lea edx, [esp + 0x880]
push ecx
push 0x40a1c4
push edx
call fcn.00404580
mov eax, dword [0x40f154]
add esp, 0xc
test eax, eax
jle 0x401a01
xor edx, edx
mov dword [esp + 0x10], eax
lea ebp, [edx + 0x40b154]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [edx + ecx + 0x40b152], 0x5c
jne 0x401960
mov byte [edx + ecx + 0x40b152], 0
or ecx, 0xffffffff
mov edi, 0x40a0bc
xor eax, eax
lea ebx, [esp + 0x880]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 0x200
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0x880]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x880]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a0b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebp
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
jne 0x40193c
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x89c]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40189d
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2870
ret