Function at 0x4021d0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a7aa
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4213d4]
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
test byte [0x4236d8], 1
mov byte [ebp - 0x2d], 0
jne 0x402254
or dword [0x4236d8], 1
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov word [0x4236bc], ax
mov ebx, 7
push 0x22
mov eax, str.SOFTWAREAntimalwareSolutionBrand
mov esi, 0x4236bc
mov dword [0x4236d0], ebx
mov dword [0x4236cc], edi
call fcn.00405560
push 0x41ade0
call fcn.0040a456
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x402259
xor edi, edi
lea ebx, [edi + 7]
test byte [0x4236d8], 2
jne 0x4022aa
or dword [0x4236d8], 2
mov dword [ebp - 4], 1
xor ecx, ecx
push 0x20
mov eax, str.517D2D1F6AA5422188419CDFD3836761
mov esi, 0x423684
mov dword [0x423698], ebx
mov dword [0x423694], edi
mov word [0x423684], cx
call fcn.00405560
push 0x41ada0
call fcn.0040a456
add esp, 4
mov dword [ebp - 4], 0xffffffff
test byte [0x4236d8], 4
jne 0x4022fb
or dword [0x4236d8], 4
mov dword [ebp - 4], 2
xor edx, edx
push 4
mov eax, str.mode
mov esi, 0x4236a0
mov dword [0x4236b4], ebx
mov dword [0x4236b0], edi
mov word [0x4236a0], dx
call fcn.00405560
push 0x41ad60
call fcn.0040a456
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4236bc]
mov ebx, 8
cmp dword [0x4236d0], ebx
jae 0x402312
mov eax, 0x4236bc
lea ecx, [ebp - 0x34]
push ecx
push 0xf003f
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40242c
mov eax, 0x104
lea esi, [ebp - 0x48]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
call fcn.00404920
mov dword [ebp - 4], 3
mov eax, dword [0x4236a0]
mov dword [ebp - 0x38], 0x104
cmp dword [0x4236b4], ebx
jae 0x402366
mov eax, 0x4236a0
mov ebx, dword [ebp - 0x48]
lea edx, [ebp - 0x38]
push edx
push ebx
push edi
push edi
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x402415
cmp dword [0x4236b4], 8
mov eax, dword [0x4236a0]
jae 0x402396
mov eax, 0x4236a0
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor edx, edx
mov eax, ebx
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4023b6
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00405560
mov byte [ebp - 4], 4
cmp dword [0x423698], 8
mov eax, dword [0x423684]
jae 0x4023e7
mov eax, 0x423684
mov edi, dword [0x423694]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.00408c70
test eax, eax
jne 0x402401
mov byte [ebp - 0x2d], 1
cmp dword [ebp - 0x18], 8
jb 0x402413
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040a478
add esp, 4
xor edi, edi
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
je 0x40242c
push ebx
call fcn.0040a478
add esp, 4
mov al, byte [ebp - 0x2d]
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.00409cc0
mov esp, ebp
pop ebp
ret