Function at 0x406f30
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], 0x1fe
cmp ecx, 1
jne 0x407046
lea eax, [ebp - 0x208]
push eax
push 0x20119
push 0
push str.SOFTWARE
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40728f
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push str.crypted
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40728f
mov ecx, str.0__:
lea eax, [ebp - 0x204]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406fd8
test dx, dx
je 0x406fd4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406fd8
add eax, 4
add ecx, 4
test dx, dx
jne 0x406fb2
xor eax, eax
jmp 0x406fdd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406ff1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042654c
mov esp, ebp
pop ebp
ret
mov ecx, 0x44db50
lea eax, [ebp - 0x204]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407026
test dx, dx
je 0x407022
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407026
add eax, 4
add ecx, 4
test dx, dx
jne 0x407000
xor eax, eax
jmp 0x40702b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407283
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042654c
mov esp, ebp
pop ebp
ret
cmp ecx, 2
jne 0x4070ca
lea eax, [ebp - 0x208]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40728f
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push str.allkeeper
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40728f
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4070a5
sub ecx, edx
xor eax, eax
sar ecx, 1
cmp eax, ecx
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042654c
mov esp, ebp
pop ebp
ret
cmp ecx, 3
jne 0x4071a5
lea eax, [ebp - 0x208]
push eax
push 0x20119
push 0
push str.SOFTWARE
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40728f
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push str.testdecrypt
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40728f
mov ecx, str.0__:
lea eax, [ebp - 0x204]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407156
test dx, dx
je 0x407152
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407156
add eax, 4
add ecx, 4
test dx, dx
jne 0x407130
xor eax, eax
jmp 0x40715b
sbb eax, eax
or eax, 1
test eax, eax
je 0x406fe1
mov ecx, 0x44db50
lea eax, [ebp - 0x204]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407026
test dx, dx
je 0x407022
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407026
add eax, 4
add ecx, 4
test dx, dx
jne 0x407170
xor eax, eax
jmp 0x40702b
cmp ecx, 4
jne 0x40728f
lea eax, [ebp - 0x208]
push eax
push 0x20119
push 0
push str.SOFTWARE
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40728f
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push str.Decrypt50
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40728f
mov ecx, str.0__:
lea eax, [ebp - 0x204]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407236
test dx, dx
je 0x407232
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407236
add eax, 4
add ecx, 4
test dx, dx
jne 0x407210
xor eax, eax
jmp 0x40723b
sbb eax, eax
or eax, 1
test eax, eax
je 0x406fe1
mov ecx, 0x44db50
lea eax, [ebp - 0x204]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407276
test dx, dx
je 0x407272
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407276
add eax, 4
add ecx, 4
test dx, dx
jne 0x407250
xor eax, eax
jmp 0x40727b
sbb eax, eax
or eax, 1
test eax, eax
je 0x407033
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.0042654c
mov esp, ebp
pop ebp
ret