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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b8a7
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x555750]
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
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x438], ebx
test esi, esi
jne 0x405365
xor eax, eax
jmp 0x405600
xor edi, edi
mov dword [ebp - 0x424], edi
test ebx, ebx
je 0x405373
mov dword [ebx], edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e27f0
add esp, 0xc
call fcn.00405650
push str.ADBlockMasterTray.exe
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x4053e1
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x424]
call fcn.00406910
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push str.ADBlockMasterTray
lea ecx, [ebp - 0x424]
call fcn.00408d50
lea ecx, [ebp - 0x424]
mov edi, eax
call fcn.004074a0
jmp 0x4055fe
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4055fe
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push str.ADBlockMasterTray
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x42c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4055fe
call fcn.00405230
mov ecx, eax
test ecx, ecx
je 0x40561c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x434]
call fcn.00404e00
test al, al
jne 0x40549c
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x434]
call fcn.00404930
mov edi, dword [ebp - 0x434]
mov dword [ebp - 4], 2
mov esi, dword [edi - 0xc]
test esi, esi
js 0x405626
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4054d7
push esi
lea ecx, [ebp - 0x434]
call fcn.00405710
mov edi, dword [ebp - 0x434]
lea eax, [esi + 1]
push eax
push edi
call fcn.004e61c1
add esp, 8
cmp esi, dword [edi - 8]
jg 0x405626
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
call fcn.00405230
mov ecx, eax
test ecx, ecx
je 0x405630
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x430]
call fcn.00404e00
test al, al
jne 0x40553f
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x430]
call fcn.00404930
mov esi, dword [ebp - 0x430]
mov byte [ebp - 4], 4
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x40563a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or ecx, eax
jge 0x405577
push ebx
lea ecx, [ebp - 0x430]
call fcn.00405710
mov esi, dword [ebp - 0x430]
lea eax, [ebx + 1]
push eax
push esi
call fcn.004e61c1
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x405626
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
cmp dword [edi - 0xc], eax
jl 0x4055c9
push esi
push edi
call fcn.004e1650
add esp, 8
test eax, eax
je 0x4055c9
sub eax, edi
sar eax, 1
js 0x4055c9
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x424], 1
test eax, eax
je 0x4055c9
mov dword [eax], 1
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4055e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4055f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x424]
mov eax, edi
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.0049ec90
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404de0
push 0x80070057
call fcn.00404de0
push 0x80004005
call fcn.00404de0
push 0x80070057
call fcn.00404de0
int3