Function at 0x431a00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e24b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4b74b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x20a
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x21c]
push ebx
push eax
mov dword [ebp - 0x434], 0x104
call sub.VCRUNTIME140.dll_memset
xor esi, esi
xor eax, eax
xor edi, edi
mov dword [ebp - 0x438], esi
add esp, 0xc
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x42c]
push eax
push 0x30019
push edi
push dword [ebp - 0x428]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x431ded
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x448]
push eax
push edi
push edi
push edi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x431b0b
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x431b0b
cmp eax, 0xaaaaaaa
ja 0x431e0e
push eax
lea ecx, [ebp - 0x444]
call fcn.00407d20
mov eax, dword [ebp - 0x43c]
mov esi, dword [ebp - 0x444]
mov edi, dword [ebp - 0x440]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x438], esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x431c12
mov esi, dword [ebp - 0x430]
lea ecx, [ecx]
mov eax, dword [ebp - 0x434]
add eax, eax
cmp eax, 0x20a
jae 0x431e13
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
cmp edi, esi
je 0x431ba9
mov dword [edi + 0x10], ecx
xor eax, eax
lea ecx, [ebp - 0x21c]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431b80
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00404550
add edi, 0x18
mov dword [ebp - 0x440], edi
jmp 0x431bd0
lea eax, [ebp - 0x21c]
push eax
push edi
lea ecx, [ebp - 0x444]
call fcn.0042ffc0
mov eax, dword [ebp - 0x43c]
mov esi, eax
mov edi, dword [ebp - 0x440]
mov dword [ebp - 0x430], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x104
push eax
lea eax, [ebp - 0x21c]
inc ebx
push eax
push ebx
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x431b40
mov esi, dword [ebp - 0x444]
mov dword [ebp - 0x438], esi
push 0
call fcn.0047f3a0
xor ebx, ebx
add esp, 4
test al, al
mov ecx, edi
mov eax, 0x2aaaaaab
setne bl
sub ecx, esi
imul ecx
lea ebx, [ebx*4 + 2]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x431d35
mov ebx, dword [ebp - 0x438]
mov esi, dword [ebp - 0x42c]
cmp ebx, edi
je 0x431c70
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x431c61
mov eax, dword [ebx]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add ebx, 0x18
cmp ebx, edi
jne 0x431c57
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp - 0x428]
lea ecx, [ebp - 0x424]
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub ebx, eax
jmp 0x431ca0
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x431cbe
movzx eax, word [ecx + ebx]
test ax, ax
je 0x431cbe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x431ca0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x431d35
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x431d35
lea eax, [ebp - 0x424]
cmp esi, eax
je 0x431d35
xor eax, eax
mov word [esi - 2], ax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x428]
push eax
push 0x30019
push 0
lea eax, [ebp - 0x424]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x431d35
push esi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x438]
test ebx, ebx
je 0x431ded
mov esi, ebx
cmp esi, edi
je 0x431da4
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x431d8a
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x431d80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431ddd
mov eax, edx
push ecx
push eax
call fcn.00487869
add esp, 8
xor ecx, ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], cx
add esi, 0x18
cmp esi, edi
jne 0x431d55
mov ecx, dword [ebp - 0x430]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x431de3
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x431de3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.00487869
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487877
mov esp, ebp
pop ebp
ret
call fcn.00401c80
call fcn.00487fdc
int3