Function at 0x428020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x449314]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x434], eax
push edi
mov edi, 0xffee
test ebx, ebx
je 0x428500
test eax, eax
je 0x428500
push esi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
call fcn.004287e0
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x424], eax
test eax, eax
jne 0x428227
push 0x104
push str.shell
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov ecx, 0x102
sub ecx, eax
lea eax, [ebp - 0x414]
push ecx
push ebx
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push 0x43d7d8
lea eax, [ebp - 0x414]
push 0x104
push eax
call esi
push str.shell
lea eax, [ebp - 0x414]
push 0x104
push eax
call esi
add esp, 0x30
lea eax, [ebp - 0x424]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x414]
push eax
push ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42821b
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0
push eax
push 0x20019
push 0
push ebx
push ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42821b
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x41c]
push eax
push 0
lea eax, [ebp - 0x42c]
push eax
push 0
push 0
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4281ff
push dword [ebp - 0x41c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4281ff
lea eax, [ebp - 0x41c]
push eax
push ebx
lea eax, [ebp - 0x42c]
push eax
push 0
push 0
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4281f5
cmp dword [ebp - 0x41c], 0x1fc
jae 0x4281f5
push str.shell
push ebx
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0041c2a0
add esp, 0x14
lea eax, [ebp - 0x424]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x414]
push eax
push ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [ebp - 0x420]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x418], eax
jmp 0x42822d
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x418], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4284e8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, str.PBrush
mov eax, 0x44a280
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42827b
test dx, dx
je 0x428277
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42827b
add eax, 4
add ecx, 4
test dx, dx
jne 0x428255
xor eax, eax
jmp 0x428280
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42828d
xor ecx, ecx
mov word [0x44a280], cx
test eax, eax
mov edx, 5
cmovne edx, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [str.Open], ecx
je case.default.0x428313
xor eax, eax
cmp dword [eax + 0x44920c], edx
je 0x4282db
inc ecx
lea eax, [ecx*8]
cmp dword [eax + 0x449208], 0
jne 0x4282a4
mov esi, dword [ebp - 0x418]
push esi
call ebx
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret 0x14
push dword [ecx*8 + 0x449208]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push 0x43d7d8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
mov eax, dword [ebp + 0x10]
add esp, 0x18
dec eax
cmp eax, 7
ja case.default.0x428313
jmp dword [eax*4 + 0x428514]
push str.command
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0xc
jmp 0x4283fa
push str.command_backup
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0xc
jmp 0x4283fa
push str.ddeexec
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0xc
jmp 0x4283fa
push str.ddeexec_backup
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0xc
jmp 0x4283fa
push str.ddeexec
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
push 0x43d7d8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
push str.Application
jmp 0x4283e9
push str.ddeexec_backup
jmp 0x428388
push str.ddeexec
jmp 0x4283c3
push str.ddeexec_backup
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
push 0x43d7d8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
push str.Topic
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0x24
mov esi, dword [ebp - 0x418]
lea eax, [ebp - 0x428]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x428], 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4284de
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x418]
push eax
push 0
lea eax, [ebp - 0x430]
push eax
push 0
push 0
push dword [ebp - 0x428]
call ebx
test eax, eax
jne 0x4284c6
mov ecx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x418]
cmp eax, dword [ecx]
ja 0x4284ac
mov edx, dword [ebp - 0x438]
test edx, edx
je 0x4284ac
push ecx
push edx
lea eax, [ebp - 0x430]
push eax
push 0
push 0
push dword [ebp - 0x428]
call ebx
push dword [ebp - 0x428]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb edi, edi
and edi, 0xffed
call ebx
jmp 0x4282c3
push dword [ebp - 0x428]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0xffef
mov dword [ecx], eax
call ebx
jmp 0x4282c3
push dword [ebp - 0x428]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0xffed
call ebx
jmp 0x4282c3
mov edi, 0xffed
jmp 0x4282c3
pop esi
pop edi
mov eax, 0xffed
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0043624e
mov esp, ebp
pop ebp
ret 0x14