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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0220
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 0x433fed
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 0x433d0b
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x433d0b
cmp eax, 0xaaaaaaa
ja 0x43400e
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 0x433e12
mov esi, dword [ebp - 0x430]
lea ecx, [ecx]
mov eax, dword [ebp - 0x434]
add eax, eax
cmp eax, 0x20a
jae 0x434013
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
cmp edi, esi
je 0x433da9
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 0x433d80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433d80
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 0x433dd0
lea eax, [ebp - 0x21c]
push eax
push edi
lea ecx, [ebp - 0x444]
call fcn.00432040
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 0x433d40
mov esi, dword [ebp - 0x444]
mov dword [ebp - 0x438], esi
push 0
call fcn.0048efd0
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 0x433f35
mov ebx, dword [ebp - 0x438]
mov esi, dword [ebp - 0x42c]
cmp ebx, edi
je 0x433e70
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x433e61
mov eax, dword [ebx]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add ebx, 0x18
cmp ebx, edi
jne 0x433e57
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 0x433ea0
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x433ebe
movzx eax, word [ecx + ebx]
test ax, ax
je 0x433ebe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x433ea0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x433f35
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x433f35
lea eax, [ebp - 0x424]
cmp esi, eax
je 0x433f35
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 0x433f35
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 0x433fed
mov esi, ebx
cmp esi, edi
je 0x433fa4
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x433f8a
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x433f80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433fdd
mov eax, edx
push ecx
push eax
call fcn.0049995e
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 0x433f55
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 0x433fe3
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x433fe3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.0049995e
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.0049996c
mov esp, ebp
pop ebp
ret
call fcn.00401c60
call fcn.0049a109
int3