Function at 0x401a04
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xd00
mov eax, 0x456dbd
call fcn.00456afc
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xcf8], eax
lea eax, [ebp - 0xce4]
push eax
push 0x20019
push edi
push edx
push ecx
mov dword [ebp - 0xce4], edi
call ebx
cmp dword [ebp - 0xce4], edi
jne 0x401a4a
mov al, 1
jmp 0x401d6e
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xcec]
mov dword [ebp - 0xcec], 0x200
push eax
lea eax, [ebp - 0x814]
mov dword [ebp - 0xcf4], 1
push eax
push edi
push dword [ebp - 0xce4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401d59
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.00403fc1
lea eax, [ebp - 0x814]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
lea eax, [ebp - 0x414]
push str._shellopencommand
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
add esp, 0x10
mov dword [ebp - 0xce0], edi
lea eax, [ebp - 0xce0]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xce4]
call ebx
cmp dword [ebp - 0xce0], 0
jne 0x401afa
or dword [ebp - 4], 0xffffffff
jmp 0x401d16
lea eax, [ebp - 0xce8]
mov dword [ebp - 0xcf0], 1
push eax
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xce8], 0x200
push eax
lea eax, [ebp - 0xcf0]
push eax
push edi
push 0x463d18
push dword [ebp - 0xce0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xce0]
mov edi, eax
call esi
cmp dword [ebp - 0xce8], 0
je 0x401d10
test edi, edi
jne 0x401d10
lea eax, [ebp - 0xc14]
push eax
lea ecx, [ebp - 0xc44]
call fcn.00403fc1
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
lea eax, [ebp - 0x414]
push str.CapabilitiesURLAssociations
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
and dword [ebp - 0xce0], edi
lea eax, [ebp - 0xce0]
add esp, 0x10
push eax
push 0x20019
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xce4]
call ebx
xor eax, eax
lea edi, [ebp - 0xc2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
xor edi, edi
mov dword [ebp - 0xc18], 7
mov dword [ebp - 0xc1c], edi
mov word [ebp - 0xc2c], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0xce0], eax
jne 0x401beb
mov eax, 0x463d18
jmp 0x401c20
lea eax, [ebp - 0xce8]
push eax
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xcf0]
push eax
push edi
push str.http
push dword [ebp - 0xce0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xce0]
call esi
lea eax, [ebp - 0xc14]
push eax
lea ecx, [ebp - 0xc2c]
call fcn.00403f25
sub esp, 0x18
lea eax, [ebp - 0xc2c]
mov ecx, esp
mov dword [ebp - 0xcfc], esp
push eax
call fcn.00404000
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0xc44]
mov dword [ebp - 0xd00], esp
mov ecx, esp
push eax
call fcn.00404000
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0xc5c]
mov ecx, esp
push eax
call fcn.00404000
lea ecx, [ebp - 0xcdc]
mov byte [ebp - 4], 2
call fcn.004016e3
mov ecx, dword [ebp - 0xcf8]
push eax
lea eax, [ebp - 0xd0c]
mov byte [ebp - 4], 5
push eax
call fcn.004052be
lea ecx, [ebp - 0xcdc]
call fcn.0040180e
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc18]
cmp ecx, 7
jbe 0x401ce7
mov edx, dword [ebp - 0xc2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401cde
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d74
push ecx
push edx
call fcn.00455501
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0xc1c], edi
lea ecx, [ebp - 0xc44]
mov dword [ebp - 0xc18], 7
mov word [ebp - 0xc2c], ax
call fcn.004044f6
jmp 0x401af1
or dword [ebp - 4], 0xffffffff
xor edi, edi
lea ecx, [ebp - 0xc5c]
call fcn.004044f6
mov ecx, dword [ebp - 0xcf4]
mov eax, ecx
push edi
push edi
push edi
inc ecx
mov dword [ebp - 0xcec], 0x200
push edi
mov dword [ebp - 0xcf4], ecx
lea ecx, [ebp - 0xcec]
push ecx
lea ecx, [ebp - 0x814]
push ecx
push eax
push dword [ebp - 0xce4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x401a88
push dword [ebp - 0xce4]
call esi
xor al, al
call fcn.00456aba
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3