Function at 0x4025f0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40fb14
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x41413c]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41413c]
xor eax, esp
push eax
lea eax, [esp + 0x2ec]
mov dword fs:[0], eax
xor ebx, ebx
push 0x204
lea edx, [esp + 0xe4]
mov dword [esp + 0x2f8], ebx
xor eax, eax
xor ecx, ecx
push ebx
push edx
mov word [esp + 0xe8], ax
mov word [esp + 0xea], cx
call fcn.00405370
add esp, 0xc
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea eax, [esp + 0x14]
push eax
push 0x2001f
push ebx
push 0x411f80
push 0x80000002
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402953
mov ebp, dword [esp + 0x14]
push 0x88
lea eax, [esp + 0x54]
xor ecx, ecx
xor edx, edx
push ebx
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x58], cx
mov word [esp + 0x5a], dx
call fcn.00405370
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x60]
push eax
push ebx
push ebp
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x402948
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2f4], 2
mov edx, dword [0x414fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x414fac
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x4c]
push ecx
push str.CLSID_s
lea edi, [esp + 0x24]
mov byte [esp + 0x2fc], 3
call fcn.004030b0
mov eax, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x24]
push edx
push 0x2001f
push ebx
push eax
push 0x80000000
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4028d8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
lea edx, [ecx + ecx]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], edx
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x3c]
push ecx
push ebx
push ebx
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x4027c4
mov eax, dword [esp + 0x34]
cmp eax, 1
je 0x402798
cmp eax, 2
jne 0x4027c4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4027b4
test al, 1
jne 0x4027c4
mov edx, eax
shr edx, 1
cmp word [esp + edx*2 + 0xda], bx
je 0x4027be
jmp 0x4027c4
xor ecx, ecx
mov word [esp + 0xdc], cx
shr eax, 1
mov dword [esp + 0x18], eax
push ecx
mov edx, esp
mov dword [esp + 0x24], esp
push edx
lea ecx, [esp + 0xe4]
call fcn.004029b0
mov byte [esp + 0x2f8], 4
mov esi, dword [esp + 0x300]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x48], esp
mov ebp, esp
call edx
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x402814
cmp eax, dword [esi]
jne 0x402814
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40284f
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
je 0x4029a9
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00404c7a
add esp, 0x10
add edi, 0x10
mov dword [ebp], edi
mov byte [esp + 0x2fc], 3
call fcn.00402040
add esp, 8
cmp eax, ebx
je 0x4028c1
cmp byte [0x415bb0], bl
jne 0x402898
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x402891
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415bb4], eax
mov byte [0x415bb0], 1
mov eax, dword [0x415bb4]
cmp eax, ebx
je 0x4028b1
mov edx, dword [esp + 0x14]
push ebx
push ebx
lea ecx, [esp + 0x54]
push ecx
push edx
call eax
jmp 0x4028c1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4028d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x44]
push edx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x60]
inc eax
push edx
push eax
push ebp
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x50], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
mov byte [esp + 0x2f4], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40292d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x402940
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], ebx
cmp esi, ebx
je 0x4026ec
cmp ebp, ebx
je 0x402953
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2f4], 0xffffffff
mov eax, dword [esp + 0x2fc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.00404c1a
add esp, 0x2e4
ret
call fcn.00401730
int3