Function at 0x406ef0
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fe15
mov eax, dword fs:[0]
push eax
sub esp, 0x3f0
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov edi, ecx
push 0x104
lea eax, [ebp - 0x3b4]
push 0
push eax
call fcn.004179d0
mov bh, byte [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x3f0], reloc.WS2_32.dll_bind
test bh, bh
je 0x406f5e
lea ecx, [ebp - 0x3b4]
mov dword [ebp - 0x3f0], reloc.WS2_32.dll_closesocket
call fcn.00496d30
push 0x104
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x33], 0x6e6f6973
push 0
push eax
mov dword [ebp - 0x47], 0x69575c74
mov dword [ebp - 0x3a], 0x746e6572
mov word [ebp - 0x26], 0x6c
mov dword [ebp - 0x4b], 0x666f736f
mov dword [ebp - 0x43], 0x776f646e
mov word [ebp - 0x57], 0x464f
mov word [ebp - 0x2b], 0x736e
mov dword [ebp - 0x3f], 0x75435c73
mov dword [ebp - 0x50], 0x63694d5c
mov word [ebp - 0x2e], 0x6e55
mov dword [ebp - 0x54], 0x45524157
mov word [ebp - 0x29], 0x6174
mov byte [ebp - 0x58], 0x53
mov byte [ebp - 0x3b], 0x72
mov byte [ebp - 0x55], 0x54
mov byte [ebp - 0x27], 0x6c
mov word [ebp - 0x36], 0x6556
mov byte [ebp - 0x4c], 0x72
mov byte [ebp - 0x34], 0x72
mov byte [ebp - 0x2c], 0x69
mov byte [ebp - 0x2f], 0x5c
call fcn.004179d0
push 0x104
lea eax, [ebp - 0x1a4]
push 0
push eax
call fcn.004179d0
add esp, 0x18
mov dword [ebp - 0x3c4], 0x104
mov eax, 0x20019
mov dword [ebp - 0x3cc], 0
test bl, bl
lea ecx, [ebp - 0x3cc]
mov esi, 0x20119
cmove esi, eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x3f4], esi
call fcn.0040bf20
mov dword [ebp - 4], 0
test bh, bh
je 0x407071
lea eax, [ebp - 0x58]
mov dword [ebp - 0x20], 0x255c7325
push eax
lea eax, [ebp - 0x3b4]
mov word [ebp - 0x1c], 0x73
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3cc]
push eax
call fcn.0040ae40
add esp, 0x10
lea eax, [ebp - 0x3e4]
push eax
push esi
push 0
push dword [ebp - 0x3cc]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4070dd
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x3cc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4070d6
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4070d2
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x40764e
mov ecx, edx
call esi
xor al, al
jmp 0x40764e
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x3c4]
push eax
lea eax, [ebp - 0x2ac]
push eax
push 0
push dword [ebp - 0x3e4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, 1
or esi, 0xffffffff
mov dword [ebp - 0x3e8], ebx
test eax, eax
jne 0x4075f9
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1a4]
push 0x104
push 0
push eax
call fcn.004179d0
add esp, 0xc
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x1a4]
call fcn.00410f10
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x1a4]
call fcn.00410f10
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x3c8], 0
push eax
lea ecx, [ebp - 0x3c8]
call fcn.0040bf20
cmp byte [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x4071af
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x9c], 0x255c7325
push eax
lea eax, [ebp - 0x3b4]
mov word [ebp - 0x98], 0x73
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.0040ae40
add esp, 0x10
lea eax, [ebp - 0x3e0]
push eax
push dword [ebp - 0x3f4]
push 0
push dword [ebp - 0x3c8]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407265
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3c4], 0x104
push eax
lea eax, [ebp - 0x2ac]
push eax
push ebx
push dword [ebp - 0x3e4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov byte [ebp - 4], 0
inc ebx
mov edx, dword [ebp - 0x3c8]
mov esi, eax
mov dword [ebp - 0x3e8], ebx
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4075ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x3ec], ebx
mov ebx, dword [ebp - 0x3e8]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40725a
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4075ee
call dword [ebp - 0x3ec]
jmp 0x4075ee
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x3d0], 4
push eax
lea eax, [ebp - 0x3dc]
mov dword [ebp - 0x3dc], 0
push eax
lea eax, [ebp - 0x3d0]
mov dword [ebp - 0x3c0], 4
push eax
push 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x74737953
push eax
push dword [ebp - 0x3e0]
mov word [ebp - 0x5e], 0x74
mov word [ebp - 0x64], 0x706d
mov word [ebp - 0x61], 0x656e
mov dword [ebp - 0x68], 0x6f436d65
mov byte [ebp - 0x5f], 0x6e
mov byte [ebp - 0x62], 0x6f
call esi
cmp dword [ebp - 0x3dc], 0
jne 0x40755f
push 0x4b7de4
lea ecx, [ebp - 0x3b8]
mov dword [ebp - 0x3b8], 0
call fcn.0040bf20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3bc]
push 0x4b7de4
mov dword [ebp - 0x3bc], 0
call fcn.0040bf20
mov byte [ebp - 4], 3
mov edx, 1
mov eax, dword [ebp - 0x3b8]
mov dword [ebp - 0x3d0], 1
mov dword [ebp - 0x3c0], 0x800
mov word [ebp - 0x86], 0x65
mov word [ebp - 0x8d], 0x6c70
mov word [ebp - 0x90], 0x6944
mov dword [ebp - 0x8b], 0x614e7961
mov byte [ebp - 0x8e], 0x73
mov byte [ebp - 0x87], 0x6d
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x40738f
push 0x800
lea ecx, [ebp - 0x3b8]
call fcn.0040c200
mov eax, dword [ebp - 0x3b8]
lea ecx, [ebp - 0x3c0]
push ecx
push eax
lea eax, [ebp - 0x3d0]
push eax
push 0
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x3e0]
call esi
push ecx
lea ecx, [ebp - 0x3b8]
mov esi, eax
call fcn.00409300
test esi, esi
jne 0x407543
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x40744a
nop dword [eax]
lea eax, [esi + 8]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x3d8]
movq qword [ebp - 0x3d8], xmm0
call fcn.00406db0
lea eax, [ebp - 0x3f8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x3d8]
call fcn.00406760
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x40763e
push eax
push dword [ebp - 0x3b8]
call fcn.0042009f
add esp, 8
lea ecx, [ebp - 0x3f8]
test eax, eax
sete bl
call fcn.0040c260
lea ecx, [ebp - 0x3d8]
test bl, bl
jne 0x40753e
mov byte [ebp - 4], 3
call fcn.00406e30
mov esi, dword [esi]
cmp esi, dword [edi]
jne 0x4073d0
mov eax, dword [ebp - 0x3bc]
mov edx, 1
mov dword [ebp - 0x3c0], 0x800
mov dword [ebp - 0x7e], 0x616c7073
mov dword [ebp - 0x7a], 0x72655679
mov word [ebp - 0x73], 0x6e
mov word [ebp - 0x76], 0x6973
mov word [ebp - 0x80], 0x6944
mov byte [ebp - 0x74], 0x6f
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x4074a9
push 0x800
lea ecx, [ebp - 0x3bc]
call fcn.0040c200
mov eax, dword [ebp - 0x3bc]
lea ecx, [ebp - 0x3c0]
push ecx
push eax
lea eax, [ebp - 0x3d0]
push eax
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x3e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea ecx, [ebp - 0x3bc]
call fcn.00409300
push ecx
mov esi, esp
mov dword [ebp - 0x3ec], esp
mov dword [ebp - 0x3d4], esi
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x3bc]
add ecx, 0xfffffff0
movq qword [ebp - 0x20], xmm0
call fcn.0040bfe0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 6
mov esi, esp
mov dword [ebp - 0x3d4], esi
mov ecx, dword [ebp - 0x3b8]
lea ecx, [ecx - 0x10]
call fcn.0040bfe0
add eax, 0x10
lea ecx, [ebp - 0x20]
mov dword [esi], eax
mov byte [ebp - 4], 3
call fcn.004065a0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.00407f60
lea ecx, [ebp - 0x20]
call fcn.00406e30
lea ecx, [ebp - 0x3bc]
call fcn.0040c260
lea ecx, [ebp - 0x3b8]
call fcn.0040c260
mov ebx, dword [ebp - 0x3e8]
push dword [ebp - 0x3e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3c4], 0x104
push eax
lea eax, [ebp - 0x2ac]
push eax
push ebx
push dword [ebp - 0x3e4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov byte [ebp - 4], 0
inc ebx
mov ecx, dword [ebp - 0x3c8]
mov esi, eax
mov dword [ebp - 0x3e8], ebx
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4075ee
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x3ec], ebx
mov ebx, dword [ebp - 0x3e8]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4075e6
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4075ee
mov ecx, edx
call dword [ebp - 0x3ec]
test esi, esi
je 0x407117
or esi, 0xffffffff
push dword [ebp - 0x3e4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3cc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x40764c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x407648
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40764c
push 0x80004005
call fcn.0040c2a0
mov ecx, edx
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041553e
mov esp, ebp
pop ebp
ret