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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa9c
mov eax, dword [0x42b4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x40
lea eax, [ebp - 0xa94]
mov dword [ebp - 0xa98], 0
push 0
push eax
mov esi, ecx
call fcn.0040ef90
add esp, 8
lea ecx, [ebp - 0x210]
call fcn.004019e0
lea eax, [ebp - 0xa34]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4039d8
lea eax, [ebp - 0xa3c]
mov dword [ebp - 0xa3c], 0x400
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0xa38], 1
push eax
lea eax, [ebp - 0xa38]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00401a40
push esi
lea eax, [ebp - 0x210]
push eax
push str.__s____s_
lea eax, [ebp - 0xa30]
push 0x410
push eax
call fcn.00401ac0
add esp, 0x14
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0xa98]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xa30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403a5c
push dword [ebp - 0xa4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xa48]
call esi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d1eb
mov esp, ebp
pop ebp
ret
push esi
push str.__s_
lea eax, [ebp - 0xa30]
push 0x410
push eax
call fcn.00401ac0
add esp, 0x10
lea eax, [ebp - 0xa30]
push 1
push 0
push eax
push str.explorer
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop esi
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0040d1eb
mov esp, ebp
pop ebp
ret

Function at 0x405630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push dword [edx]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0xc], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4056dc
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4056dc
add eax, eax
push eax
call fcn.0040e456
mov esi, eax
add esp, 4
test esi, esi
je 0x4056dc
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4056dc
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00403ea0
push esi
call fcn.0040d1fa
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x4056d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x4056ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret