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

Disassembly:
mov eax, 0x2860
call fcn.00405580
push ebx
push esi
push edi
mov ecx, 0xa
mov esi, 0x40b9cc
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x75
xor eax, eax
lea edi, [esp + 0x96]
mov dword [esp + 0x14], 0x200
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x6c]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404dc3
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
lea eax, [esp + 0x26c]
push edx
push eax
push 0
push 0
push 0x40b9c4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404dc3
lea edi, [esp + 0x26c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x86c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x86c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x40c2d0]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x404c4a
mov edi, 0x40b9b8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
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 eax, [esp + 0x870]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409106
add esp, 8
cmp eax, 0xffffffff
je 0x404be6
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0x44
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x88c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404be6
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
push 0x40b9a4
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x404c30
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push 0x40b988
push 0
push eax
call esi
test eax, eax
je 0x404c30
push 0
push 0x40b978
push 0
push eax
call esi
test eax, eax
je 0x404c30
push 0
push 0x9c4b
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2860
ret
mov edi, 0x40b968
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
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 eax, [esp + 0x870]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409106
add esp, 8
cmp eax, 0xffffffff
je 0x404db8
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
mov eax, dword [0x4102d4]
mov dword [esp + 0x28], 0x44
test eax, eax
jle 0x404d9e
mov edi, dword [sym.imp.USER32.dll_FindWindowExA]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
mov ebp, 0x40c2d4
lea ecx, [esp + 0x870]
push ebp
push ecx
lea edx, [esp + 0x478]
push 0x40b95c
push edx
call fcn.00405520
add esp, 0x10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x470]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404d2f
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
push 0x40b948
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x404d80
push 0x40b93c
push 0x40b934
push 0
push esi
call edi
test eax, eax
je 0x404d61
push 0
push 0
push 0xf5
push eax
call ebx
push 0
push 0x40b978
push 0
push esi
call edi
test eax, eax
je 0x404d80
push 0
push 0x9c4b
push 0x111
push eax
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4102d4]
inc eax
add ebp, 0x200
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x404cc6
pop ebp
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2860
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2860
ret