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

Disassembly:
mov eax, 0x2870
call fcn.00405580
push ebx
push ebp
push esi
push edi
mov ecx, 5
mov esi, 0x40b27c
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 0x401aad
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x80]
push edx
push eax
push 0
push 0
push 0x40b270
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401aad
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 [0x40c2d0]
mov dword [esp + 0x3c], 0x44
test eax, eax
je 0x401aeb
mov ecx, 6
mov esi, 0x40b254
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 0x401aad
mov eax, dword [0x4102d4]
xor esi, esi
test eax, eax
jle 0x401aad
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, 0x40c2d4
push esi
lea edx, [esp + 0x30]
push 0x40b250
push edx
call fcn.00405520
push edi
lea eax, [esp + 0x690]
push 0x40b244
push eax
call fcn.00405520
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 0x40b20c
push eax
call fcn.00405520
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 0x401aba
mov eax, dword [0x4102d4]
inc esi
add edi, 0x200
cmp esi, eax
jl 0x401a08
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 0x40b1fc
push edx
call fcn.00405520
lea eax, [esp + 0x88c]
push 0
push eax
call fcn.00409106
add esp, 0x14
cmp eax, 0xffffffff
je 0x401aad
lea ecx, [esp + 0x80]
lea edx, [esp + 0x880]
push ecx
push 0x40b1e8
push edx
call fcn.00405520
mov eax, dword [0x4102d4]
add esp, 0xc
test eax, eax
jle 0x401c11
xor edx, edx
mov dword [esp + 0x10], eax
lea ebp, [edx + 0x40c2d4]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [edx + ecx + 0x40c2d2], 0x5c
jne 0x401b70
mov byte [edx + ecx + 0x40c2d2], 0
or ecx, 0xffffffff
mov edi, 0x40b0bc
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, 0x40b0b8
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 0x401b4c
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 0x401aad
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