Function at 0x4084b0
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x49db60
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cba68]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00460a7a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4084f3
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], 0
call fcn.00460a7a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408525
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x34], 1
call fcn.00460a7a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408554
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x18]
push str.SoftwareESTsoftALUpdate_s
mov bl, 2
push edx
mov byte [esp + 0x40], bl
call fcn.00402320
lea eax, [esp + 0x28]
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push eax
call fcn.00402320
add esp, 0x14
push 0
push 0x4a5956
lea ecx, [esp + 0x20]
call fcn.00401dd0
cmp dword [esp + 0x3c], 0
push ecx
mov dword [esp + 0x40], esp
je 0x408772
mov eax, dword [esi + 0x1c]
sub eax, 0x10
mov edi, esp
push eax
call fcn.004017c0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esi + 0x20]
sub eax, 0x10
mov dword [esp + 0x28], esp
mov edi, esp
push eax
mov byte [esp + 0x40], 3
call fcn.004017c0
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x3c], bl
call fcn.004342c0
add esp, 8
test eax, eax
jge 0x408677
cmp byte [esi + 0x5d], bl
jne 0x408677
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x4a5c14
call fcn.00403080
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Reboot
mov byte [esp + 0x40], 4
call fcn.00403080
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push eax
mov byte [esp + 0x44], 5
call fcn.004017c0
add eax, 0x10
add esp, 4
mov dword [edi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x44], bl
call fcn.0042fda0
add esp, 0x10
test eax, eax
jne 0x408677
lea ecx, [esp + 0x18]
call fcn.004016f0
lea ecx, [esp + 0x1c]
call fcn.004016f0
lea ecx, [esp + 0x14]
call fcn.004016f0
jmp 0x4089b1
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0x4cd010
call fcn.004024f0
mov edx, dword [esi + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x20]
push str.__s___afterreboot__s
push ecx
mov byte [esp + 0x44], 6
call fcn.00402320
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x34], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4086c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push eax
call fcn.004017c0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esi + 4]
sub eax, 0x10
mov dword [esp + 0x28], esp
mov edi, esp
push eax
mov byte [esp + 0x40], 7
call fcn.004017c0
add eax, 0x10
mov dword [edi], eax
mov edi, dword [esp + 0x28]
add edi, 0xfffffff0
mov dword [esp + 0x34], esp
mov ebp, esp
push edi
mov byte [esp + 0x44], 8
call fcn.004017c0
add eax, 0x10
add esp, 4
mov dword [ebp], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x44], bl
call fcn.0042fda0
mov esi, dword [esi + 0x1c]
add esp, 0xc
sub esi, 0x10
mov dword [esp + 0x2c], esp
mov ebp, esp
push esi
call fcn.004017c0
add eax, 0x10
mov dword [ebp], eax
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.DownVersion
mov byte [esp + 0x40], 9
call fcn.00403080
mov ebp, dword [esp + 0x1c]
push ecx
mov byte [esp + 0x40], 0xa
mov dword [esp + 0x2c], esp
add ebp, 0xfffffff0
jmp 0x40892b
mov ecx, esp
push str.Reboot
call fcn.00403080
mov ebp, dword [esp + 0x18]
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push ebp
mov byte [esp + 0x40], 0xb
call fcn.004017c0
add eax, 0x10
add esp, 4
mov dword [edi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x40], bl
call fcn.00430160
add esp, 0xc
cmp eax, 1
jne 0x408807
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x4a5956
call fcn.00403080
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Reboot
mov byte [esp + 0x40], 0xc
call fcn.00403080
push ecx
mov dword [esp + 0x30], esp
mov edi, esp
push ebp
mov byte [esp + 0x44], 0xd
call fcn.004017c0
add eax, 0x10
add esp, 4
mov dword [edi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x44], bl
call fcn.0042fda0
add esp, 0x10
mov eax, dword [esi + 4]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov edi, esp
push eax
call fcn.004017c0
add eax, 0x10
mov dword [edi], eax
mov edi, dword [esp + 0x24]
mov dword [esp + 0x44], esp
add edi, 0xfffffff0
mov dword [esp + 0x44], esp
push edi
mov byte [esp + 0x40], 0xe
call fcn.004017c0
mov ecx, dword [esp + 0x48]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x40], bl
call fcn.00430160
add esp, 0xc
cmp eax, 1
jne 0x4088b9
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4a5956
call fcn.00403080
mov esi, dword [esi + 4]
push ecx
sub esi, 0x10
mov dword [esp + 0x2c], esp
mov dword [esp + 0x44], esp
push esi
mov byte [esp + 0x40], 0xf
call fcn.004017c0
mov edx, dword [esp + 0x48]
add eax, 0x10
mov dword [edx], eax
mov dword [esp + 0x48], esp
mov esi, esp
push edi
mov byte [esp + 0x44], 0x10
call fcn.004017c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x44], bl
call fcn.0042fda0
add esp, 0x10
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.DownVersion
call fcn.00403080
push ecx
mov dword [esp + 0x30], esp
mov esi, esp
push ebp
mov byte [esp + 0x40], 0x11
call fcn.004017c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x40], bl
call fcn.00430160
add esp, 0xc
cmp eax, 1
jne 0x40894c
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x4a5956
call fcn.00403080
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.DownVersion
mov byte [esp + 0x40], 0x12
call fcn.00403080
push ecx
mov byte [esp + 0x40], 0x13
mov dword [esp + 0x30], esp
mov esi, esp
push ebp
call fcn.004017c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x44], bl
call fcn.0042fda0
add esp, 0x10
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x34], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408971
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40898f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x34], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4089b1
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4