Function at 0x420c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x471080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.00407b80
mov ecx, eax
test ecx, ecx
je 0x420e4f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push ecx
mov dword [ebp - 0x28], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x420cb9
cmp ecx, dword [esi - 0x10]
jne 0x420cb9
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x420ce3
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x420e59
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
call fcn.00409570
add esp, 8
mov ecx, dword [ebp - 0x28]
lea eax, [edi + 0x10]
mov dword [ecx], eax
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x28], esi
call fcn.00407b80
mov ecx, eax
test ecx, ecx
je 0x420e5e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.SOFTWARETencentBackupDownloader
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00409440
test al, al
jne 0x420d30
push 0x21
push str.SOFTWARETencentBackupDownloader
mov ecx, esi
call fcn.00409600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004205b0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
add esp, 8
push eax
push 1
push 0
push esi
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x420d6e
mov dword [ebx], 0
mov edi, 1
jmp 0x420dfe
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
push 0
push str.BitmapValue1
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.BitmapValue2
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
test eax, eax
jne 0x420dde
test ecx, ecx
jne 0x420dde
mov dword [ebx], ecx
lea edi, [ecx + 1]
jmp 0x420dfe
ror eax, 2
ror ecx, 3
xor eax, 0xa234
xor ecx, 0x456b
cmp eax, ecx
jne 0x420dfc
mov dword [ebx], eax
mov edi, 1
jmp 0x420dfe
xor edi, edi
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420e1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x420e3b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407690
call fcn.004096f0
push 0x80004005
call fcn.00407690
int3