Function at 0x421037
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.0040488a
call fcn.0040486a
test eax, eax
je 0x42106d
mov eax, dword [ebp - 4]
mov dword [eax + 8], closesocket
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 5
jmp 0x421081
mov eax, dword [ebp - 4]
mov dword [eax + 8], closesocket
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 5
push 0x429ae8
lea ecx, [ebp - 0xc]
call fcn.00406f64
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x10
call fcn.00406bfc
lea ecx, [ebp - 0xc]
call fcn.00406be2
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040afc3
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00406cc1
lea ecx, [ebp - 0x14]
call fcn.00406be2
push 0x429ac0
lea ecx, [ebp - 0x18]
call fcn.00406f64
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.00406bfc
lea ecx, [ebp - 0x18]
call fcn.00406be2
push str.InitWindows
lea ecx, [ebp - 0x1c]
call fcn.00406f64
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.00406bfc
lea ecx, [ebp - 0x1c]
call fcn.00406be2
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
lea ecx, [ebp - 0x20]
call fcn.00406f64
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x14
call fcn.00406bfc
lea ecx, [ebp - 0x20]
call fcn.00406be2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
push 0
push 0xf003f
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
push closesocket
mov ecx, dword [ebp - 0x24]
call fcn.00420997
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041ea3f
pop ecx
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x20
call fcn.00406bfc
lea ecx, [ebp - 0x28]
call fcn.00406be2
mov ecx, dword [ebp + 8]
call fcn.0040affd
test eax, eax
je 0x421212
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0041e9f8
pop ecx
pop ecx
push 0x429bb0
lea ecx, [ebp - 8]
call fcn.00406c53
lea eax, [ebp - 0x2c]
push eax
call fcn.0041ea3f
pop ecx
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x20
call fcn.00406bfc
lea ecx, [ebp - 0x2c]
call fcn.00406be2
lea ecx, [ebp - 8]
call fcn.00406f44
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
add ecx, 0x20
call fcn.00406f44
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x42120a
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 1
lea ecx, [ebp - 8]
call fcn.00406be2
jmp 0x4212e4
lea ecx, [ebp - 8]
call fcn.00406be2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x4212e4
lea ecx, [ebp - 0x4c]
call fcn.00406692
mov ecx, dword [ebp + 8]
call fcn.0040b038
test eax, eax
je 0x4212b2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x38]
call fcn.0042080b
test eax, eax
je 0x4212ab
push ecx
push ecx
mov ecx, esp
lea eax, [ebp - 0x4c]
push eax
call fcn.004066fc
push ecx
push ecx
push esp
mov ecx, dword [ebp + 8]
call fcn.0040ae9f
lea eax, [ebp - 0x54]
push eax
call fcn.0040ba16
add esp, 0x14
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00406458
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x20
call fcn.00406bfc
lea ecx, [ebp - 0x40]
call fcn.00406be2
lea ecx, [ebp - 0x54]
call fcn.004066da
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 1
jmp 0x4212b2
mov eax, dword [ebp - 4]
and dword [eax + 0x28], 0
mov ecx, dword [ebp + 8]
call fcn.0040b00c
test eax, eax
je 0x4212dc
lea eax, [ebp - 0x44]
push eax
call fcn.0041ea3f
pop ecx
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x20
call fcn.00406bfc
lea ecx, [ebp - 0x44]
call fcn.00406be2
lea ecx, [ebp - 0x4c]
call fcn.004066da
leave
ret 4