Function at 0x435440
Capabilities:
Check os version
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dc80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5e6468]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, 1
cmp eax, 5
je 0x4354a7
cmp byte [0x5f4660], 0
jne 0x4354a7
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4354a1
push str.RegDeleteTreeW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f4664], eax
mov byte [0x5f4660], bl
xor edi, edi
cmp dword [0x5f4664], edi
je 0x43567a
mov eax, dword [0x5f22b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f22b0
mov dword [ebp - 0x10], edi
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x5f22b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f22b0
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 8]
mov byte [ebp - 4], bl
mov eax, dword [esi + 4]
add esi, 4
push 0x5c
push eax
call fcn.005654bb
add esp, 8
cmp eax, edi
jne 0x435505
or eax, 0xffffffff
jmp 0x435509
sub eax, dword [esi]
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004468b0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004275f0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435545
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
mov edi, dword [ebp - 0x14]
sub eax, dword [edi - 0xc]
lea edx, [ebp - 0x1c]
sub eax, ebx
push eax
push 0
push edx
mov ecx, esi
call fcn.004468e0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004275f0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43558f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [ebp - 0x18]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
or edx, 2
push edx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435623
mov ecx, dword [ebp - 0x10]
push edi
push ecx
call dword [0x5f4664]
mov edx, dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4355ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43560f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435643
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435666
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret