Function at 0x407d30
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x48fc70
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b8968]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0045258f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407d73
push 0x80004005
call fcn.00401090
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.0045258f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407da5
push 0x80004005
call fcn.00401090
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.0045258f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407dd4
push 0x80004005
call fcn.00401090
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.00402730
lea eax, [esp + 0x28]
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push eax
call fcn.00402730
add esp, 0x14
push 0
push 0x4978d6
lea ecx, [esp + 0x20]
call fcn.004020c0
cmp dword [esp + 0x3c], 0
push ecx
mov dword [esp + 0x40], esp
je 0x407ff2
mov eax, dword [esi + 0x1c]
sub eax, 0x10
mov edi, esp
push eax
call fcn.004019a0
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.004019a0
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x3c], bl
call fcn.0042f0f0
add esp, 8
test eax, eax
jge 0x407ef7
cmp byte [esi + 0x59], bl
jne 0x407ef7
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x497b80
call fcn.00402f40
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Reboot
mov byte [esp + 0x40], 4
call fcn.00402f40
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.004019a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x44], bl
call fcn.0042be20
add esp, 0x10
test eax, eax
jne 0x407ef7
lea ecx, [esp + 0x18]
call fcn.00401a80
lea ecx, [esp + 0x1c]
call fcn.00401a80
lea ecx, [esp + 0x14]
call fcn.00401a80
jmp 0x408231
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0x4ba0a0
call fcn.00402900
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.00402730
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 0x407f48
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.004019a0
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.004019a0
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.004019a0
add eax, 0x10
add esp, 4
mov dword [ebp], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x44], bl
call fcn.0042be20
mov esi, dword [esi + 0x1c]
add esp, 0xc
sub esi, 0x10
mov dword [esp + 0x2c], esp
mov ebp, esp
push esi
call fcn.004019a0
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.00402f40
mov ebp, dword [esp + 0x1c]
push ecx
mov byte [esp + 0x40], 0xa
mov dword [esp + 0x2c], esp
add ebp, 0xfffffff0
jmp 0x4081ab
mov ecx, esp
push str.Reboot
call fcn.00402f40
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.004019a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x40], bl
call fcn.0042c1e0
add esp, 0xc
cmp eax, 1
jne 0x408087
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x4978d6
call fcn.00402f40
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Reboot
mov byte [esp + 0x40], 0xc
call fcn.00402f40
push ecx
mov dword [esp + 0x30], esp
mov edi, esp
push ebp
mov byte [esp + 0x44], 0xd
call fcn.004019a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x44], bl
call fcn.0042be20
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.004019a0
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.004019a0
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.0042c1e0
add esp, 0xc
cmp eax, 1
jne 0x408139
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4978d6
call fcn.00402f40
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.004019a0
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.004019a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x44], bl
call fcn.0042be20
add esp, 0x10
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.DownVersion
call fcn.00402f40
push ecx
mov dword [esp + 0x30], esp
mov esi, esp
push ebp
mov byte [esp + 0x40], 0x11
call fcn.004019a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x40], bl
call fcn.0042c1e0
add esp, 0xc
cmp eax, 1
jne 0x4081cc
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x4978d6
call fcn.00402f40
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.DownVersion
mov byte [esp + 0x40], 0x12
call fcn.00402f40
push ecx
mov byte [esp + 0x40], 0x13
mov dword [esp + 0x30], esp
mov esi, esp
push ebp
call fcn.004019a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x44], bl
call fcn.0042be20
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 0x4081f1
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 0x40820f
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 0x408231
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