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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f8d0
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4ce4bc]
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 0x43406d
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 0x433d8b
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x433d8b
cmp eax, 0xaaaaaaa
ja 0x43408e
push eax
lea ecx, [ebp - 0x444]
call fcn.00407a80
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 0x433e92
mov esi, dword [ebp - 0x430]
lea ecx, [ecx]
mov eax, dword [ebp - 0x434]
add eax, eax
cmp eax, 0x20a
jae 0x434093
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
cmp edi, esi
je 0x433e29
mov dword [edi], ecx
xor eax, eax
mov dword [edi + 0x10], ecx
lea ecx, [ebp - 0x21c]
mov dword [edi + 0x14], 7
lea edx, [ecx + 2]
mov word [edi], ax
jmp 0x433e00
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433e00
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00404580
add edi, 0x18
mov dword [ebp - 0x440], edi
jmp 0x433e50
lea eax, [ebp - 0x21c]
push eax
push edi
lea ecx, [ebp - 0x444]
call fcn.004320c0
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 0x433dc0
mov esi, dword [ebp - 0x444]
mov dword [ebp - 0x438], esi
push 0
call fcn.0048e8e0
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 0x433fb5
mov ebx, dword [ebp - 0x438]
mov esi, dword [ebp - 0x42c]
cmp ebx, edi
je 0x433ef0
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x433ee1
mov eax, dword [ebx]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add ebx, 0x18
cmp ebx, edi
jne 0x433ed7
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 0x433f20
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x433f3e
movzx eax, word [ecx + ebx]
test ax, ax
je 0x433f3e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x433f20
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x433fb5
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x433fb5
lea eax, [ebp - 0x424]
cmp esi, eax
je 0x433fb5
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 0x433fb5
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 0x43406d
mov esi, ebx
cmp esi, edi
je 0x434024
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x43400a
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x434000
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43405d
mov eax, edx
push ecx
push eax
call fcn.0049900e
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 0x433fd5
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 0x434063
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x434063
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.0049900e
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.0049901c
mov esp, ebp
pop ebp
ret
call fcn.00401c60
call fcn.0049977f
int3