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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401a60
push 0x414d30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x40d300
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x34], edi
or dword [ebp - 0x43c], 0xffffffff
push esi
call fcn.00414a60
pop ecx
mov dword [ebp - 0x440], eax
cmp byte [eax + esi - 1], 0x5c
je 0x40cf79
push 0x5c
push esi
call fcn.004157f0
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40cf79
mov dword [ebp - 0x43c], eax
inc eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x1c], esi
push 0x5c
push esi
call fcn.00415730
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40d0f0
mov dword [ebp - 0x1c], eax
lea ebx, [eax + 1]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], edi
push 0x11
push str.HKEY_CLASSES_ROOT
push esi
call fcn.004156e0
add esp, 0xc
test eax, eax
jne 0x40cfba
mov dword [ebp - 0x2c], CreateStatusWindowA
jmp 0x40d02c
push 0x11
push str.HKEY_CURRENT_USER
push esi
call fcn.004156e0
add esp, 0xc
test eax, eax
jne 0x40cfd7
mov dword [ebp - 0x2c], CreateStatusWindowA
jmp 0x40d02c
push 0x12
push str.HKEY_LOCAL_MACHINE
push esi
call fcn.004156e0
add esp, 0xc
test eax, eax
jne 0x40cff4
mov dword [ebp - 0x2c], CreateStatusWindowA
jmp 0x40d02c
push 0xa
push str.HKEY_USERS
push esi
call fcn.004156e0
add esp, 0xc
test eax, eax
jne 0x40d011
mov dword [ebp - 0x2c], CreateStatusWindowA
jmp 0x40d02c
push 0x13
push str.HKEY_CURRENT_CONFIG
push esi
call fcn.004156e0
add esp, 0xc
test eax, eax
jne 0x40d02c
mov dword [ebp - 0x2c], CreateStatusWindowA
cmp dword [ebp - 0x2c], edi
je 0x40d0f0
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x434]
push eax
call fcn.00414be0
add esp, 0xc
cmp dword [ebp - 0x43c], 0xffffffff
jne 0x40d064
push esi
push ebx
lea eax, [ebp - 0x434]
push eax
call fcn.00414ae0
jmp 0x40d07b
mov eax, dword [ebp - 0x43c]
sub eax, ebx
dec eax
push eax
push ebx
lea eax, [ebp - 0x434]
push eax
call fcn.004153a0
add esp, 0xc
lea eax, [ebp - 0x480]
push eax
push 1
pop esi
push esi
push edi
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x40d0f0
mov dword [ebp - 0x438], esi
cmp dword [ebp - 0x43c], 0xffffffff
je 0x40d0e4
mov dword [ebp - 0x484], edi
lea eax, [ebp - 0x484]
push eax
push edi
push edi
push edi
push dword [ebp - 0x43c]
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x40d0e4
cmp dword [ebp - 0x484], edi
je 0x40d0e4
mov dword [ebp - 0x34], esi
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x438], edi
jne 0x40d101
cmp dword [ebp + 0xc], edi
je 0x40d300
mov dword [ebp - 0x488], edi
push edi
mov edi, str.RegEdit_RegEdit
push edi
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
call ebx
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x40d174
push 0x3c
pop esi
push esi
push eax
lea eax, [ebp - 0x47c]
push eax
call fcn.00414be0
add esp, 0xc
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x478], 0x40
mov dword [ebp - 0x470], str.open
mov dword [ebp - 0x46c], str.regedit.exe
mov dword [ebp - 0x460], 1
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp - 0x444]
jmp 0x40d195
lea ecx, [ebp - 0x48c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x48c]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x488], eax
test eax, eax
je 0x40d300
push 0x2710
push eax
mov esi, dword [sym.imp.USER32.dll_WaitForInputIdle]
call esi
push 0
push edi
call ebx
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x40d2eb
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40d1d7
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
call edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetFocus]
call ebx
push 0x2710
push dword [ebp - 0x488]
call esi
push 0
push str.SysTreeView32
push 0
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0x28], eax
push eax
call edi
push dword [ebp - 0x28]
call ebx
and dword [ebp - 0x494], 0
mov ebx, pe_nt_image_headers32
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x494], 0x1e
push 0
jge 0x40d24d
push 0x25
push ebx
push dword [ebp - 0x28]
call edi
push 0x3e8
push dword [ebp - 0x488]
call esi
inc dword [ebp - 0x494]
jmp 0x40d225
push 0x27
push ebx
push dword [ebp - 0x28]
call edi
push 0x3e8
push dword [ebp - 0x488]
call esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x490], eax
mov cl, byte [eax]
test cl, cl
je 0x40d2c5
mov byte [ebp - 0x498], cl
cmp eax, dword [ebp - 0x43c]
je 0x40d2c5
cmp cl, 0x5c
je 0x40d29a
and cl, 0xdf
mov byte [ebp - 0x498], cl
push 0
movsx eax, cl
push eax
push 0x102
jmp 0x40d2a5
cmp byte [eax + 1], 0
je 0x40d2aa
push 0
push 0x27
push ebx
push dword [ebp - 0x28]
call edi
push 0x3e8
push dword [ebp - 0x488]
call esi
inc dword [ebp - 0x490]
mov eax, dword [ebp - 0x490]
jmp 0x40d26b
and dword [ebp - 0x494], 0
cmp dword [ebp - 0x494], 3
jge 0x40d2eb
push 0
push 1
push 0x115
push dword [ebp - 0x28]
call edi
inc dword [ebp - 0x494]
jmp 0x40d2cc
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d300
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret