Function at 0x406d60
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x44b620
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4638dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.0041591e
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406da2
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ebx
call fcn.0041591e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406dd0
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.004111e0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
mov byte [esp + 0x38], 2
jge 0x406e17
push edi
lea ecx, [esp + 0x18]
call fcn.00401490
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], edi
jge 0x406e26
push 0x80070057
call fcn.00401010
push edi
push esi
mov dword [esi - 0xc], edi
push ebx
mov byte [esi + 0x104], bl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x406e6a
mov ecx, dword [0x46732c]
mov edx, dword [ecx]
cmp edx, ebx
je 0x406e5b
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406e50
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00401980
mov esi, dword [esp + 0x14]
cmp esi, ebx
jne 0x406e72
xor eax, eax
jmp 0x406e84
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406e77
sub eax, edx
js 0x406e1c
cmp eax, dword [esi - 8]
jg 0x406e1c
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edx, [esp + 0x24]
push SysReAllocStringLen
mov dword [esi - 0xc], eax
push edx
mov byte [eax + esi], bl
call fcn.00411680
add esp, 0xc
test eax, eax
je 0x406f10
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.00411200
lea eax, [esi - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edi, 0xffffffff
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406eda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x38], edi
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x406efb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x44e90f
call fcn.00402ab0
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.VirtualDriveManager
mov byte [esp + 0x48], 3
call fcn.00402ab0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 2
call fcn.00411750
cmp eax, ebx
lea ecx, [esp + 0x20]
je 0x406f77
mov byte [esp + 0x38], 1
call fcn.00411200
lea eax, [esi - 0x10]
or edi, 0xffffffff
mov byte [esp + 0x38], bl
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x406ece
call fcn.00411210
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
or edi, 0xffffffff
cmp ecx, ebx
jl 0x406fa0
push esi
push eax
call fcn.00431da6
add esp, 8
cmp eax, ebx
je 0x406fa0
sub eax, dword [esp + 0x10]
cmp eax, edi
jne 0x406fbd
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.00411200
lea eax, [esi - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
jmp 0x406ec5
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.00411200
lea eax, [esi - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406fea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x38], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40700b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret