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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497c53
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x80]
mov dword [ebp - 0xa8], 0
lea ecx, [ebp - 0x88]
push eax
mov dword [ebp - 0xac], edi
mov dword [ebp - 0x3b], 0x6e657272
mov word [ebp - 0x53], 0x5241
mov dword [ebp - 0x29], 0x6c6c6174
mov word [ebp - 0x2b], 0x736e
mov dword [ebp - 0x43], 0x776f646e
mov word [ebp - 0x4a], 0x6f73
mov dword [ebp - 0x3f], 0x75435c73
mov word [ebp - 0x50], 0x4d5c
mov dword [ebp - 0x58], 0x54464f53
mov dword [ebp - 0x32], 0x5c6e6f69
mov word [ebp - 0x2e], 0x6e55
mov word [ebp - 0x4d], 0x7263
mov word [ebp - 0x37], 0x5674
mov word [ebp - 0x45], 0x6957
mov byte [ebp - 0x51], 0x45
mov byte [ebp - 0x2c], 0x69
mov word [ebp - 0x34], 0x7372
mov byte [ebp - 0x4e], 0x69
mov word [ebp - 0x48], 0x7466
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x46], 0x5c
mov byte [ebp - 0x4b], 0x6f
mov byte [ebp - 0x35], 0x65
mov byte [ebp - 0x54], 0x57
mov word [ebp - 0x61], 0x6974
mov word [ebp - 0x5e], 0x6e
mov dword [ebp - 0x6c], 0x74736e49
mov dword [ebp - 0x68], 0x4c6c6c61
mov word [ebp - 0x63], 0x6163
mov byte [ebp - 0x64], 0x6f
mov byte [ebp - 0x5f], 0x6f
mov dword [ebp - 0x78], 0x65726946
mov dword [ebp - 0x74], 0x786f66
mov word [ebp - 0x7b], 0x616c
mov dword [ebp - 0x80], 0x697a6f4d
mov byte [ebp - 0x79], 0x20
mov byte [ebp - 0x7c], 0x6c
mov dword [ebp - 0x88], 0
call fcn.0040bf20
mov dword [ebp - 4], 1
mov ecx, edi
mov dword [ebp - 0x18], 0x200
mov dword [ebp - 0x14], 0x100
mov dword [edi], 0
call fcn.0040c650
xor eax, eax
mov dword [ebp - 0xa8], 1
mov dword [ebp - 0xa4], eax
nop dword [eax + eax]
mov eax, dword [ebp + eax*4 - 0x18]
lea ecx, [ebp - 0x9c]
push ecx
or eax, 0x20019
mov dword [ebp - 0x9c], 0
push eax
push 0
lea eax, [ebp - 0x58]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
call fcn.0040c560
mov ecx, eax
test ecx, ecx
je 0x495909
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x495702
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x495704
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x84], esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x98], 0
test ebx, ebx
jne 0x4958aa
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x49574d
push 0x104
lea ecx, [ebp - 0x84]
call fcn.0040c200
mov esi, dword [ebp - 0x84]
push 0x104
push esi
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [esi - 8]
inc dword [ebp - 0x98]
mov ebx, eax
push esi
call fcn.00420290
add esp, 8
test eax, eax
js 0x4958ff
cmp eax, dword [esi - 8]
jg 0x4958ff
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
test ebx, ebx
jne 0x4958aa
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
push dword [eax - 0xc]
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.00408cb0
mov ecx, eax
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x495909
push eax
push dword [ecx]
call fcn.004205e0
mov edx, dword [ebp - 0x90]
add esp, 8
test eax, eax
sete byte [ebp - 0x9d]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x495810
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49580e
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x495810
call ebx
cmp byte [ebp - 0x9d], 0
je 0x495723
mov eax, dword [edi]
mov ecx, 1
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x94], 0x104
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x495853
push 0x104
mov ecx, edi
call fcn.0040c200
lea eax, [ebp - 0x94]
push eax
push dword [edi]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x9c]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov ebx, eax
mov eax, dword [edi]
test eax, eax
jne 0x495880
xor ecx, ecx
jmp 0x495892
push dword [eax - 8]
push eax
call fcn.00420290
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4958ff
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x4958ff
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
mov byte [ecx + eax], 0
test ebx, ebx
jne 0x495723
mov eax, dword [edi]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x495913
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4958e7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4958e5
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4958e7
call edx
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
cmp eax, 2
jl 0x4956b0
jmp 0x495941
push 0x80070057
call fcn.0040c2a0
push 0x80004005
call fcn.0040c2a0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x495941
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49593f
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x495941
call edx
xor eax, eax
mov dword [ebp - 0xa4], eax
nop dword [eax]
mov eax, dword [ebp + eax*4 - 0x18]
lea ecx, [ebp - 0x98]
push ecx
or eax, 0x20019
mov dword [ebp - 0x98], 0
push eax
push 0
lea eax, [ebp - 0x58]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
call fcn.0040c560
mov ecx, eax
test ecx, ecx
je 0x495909
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49599e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4959a0
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x84], esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x9c], 0
test ebx, ebx
jne 0x495b4f
nop
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4959ea
push 0x104
lea ecx, [ebp - 0x84]
call fcn.0040c200
mov esi, dword [ebp - 0x84]
push 0x104
push esi
push dword [ebp - 0x9c]
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [esi - 8]
inc dword [ebp - 0x9c]
mov ebx, eax
push esi
call fcn.00420290
add esp, 8
test eax, eax
js 0x4958ff
cmp eax, dword [esi - 8]
jg 0x4958ff
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
test ebx, ebx
jne 0x495b4f
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
push dword [eax - 0xc]
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.00408cb0
mov ecx, eax
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x495909
push eax
push dword [ecx]
call fcn.004205e0
mov edx, dword [ebp - 0x8c]
add esp, 8
test eax, eax
sete byte [ebp - 0x9d]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x495aad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x495aab
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x495aad
call ebx
cmp byte [ebp - 0x9d], 0
je 0x4959c0
mov eax, dword [edi]
mov ecx, 1
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x94], 0x104
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x495af0
push 0x104
mov ecx, edi
call fcn.0040c200
lea eax, [ebp - 0x94]
push eax
push dword [edi]
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x98]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov ebx, eax
mov eax, dword [edi]
test eax, eax
jne 0x495b1d
xor ecx, ecx
jmp 0x495b33
push dword [eax - 8]
push eax
call fcn.00420290
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4958ff
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x4958ff
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
mov byte [ecx + eax], 0
test ebx, ebx
jne 0x4959c0
mov eax, dword [edi]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x495ba4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x495b8c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x495b8a
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x495b8c
call edx
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
cmp eax, 2
jl 0x495950
jmp 0x495bd4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x495bd4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x495bd2
mov eax, dword [ecx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call ebx
jmp 0x495bda
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x495c14
lea eax, [ebp - 0x20]
mov word [ebp - 0x20], 0x665c
push eax
push edi
mov word [ebp - 0x1d], 0x6572
mov word [ebp - 0x1a], 0x786f
mov dword [ebp - 0x17], 0x657865
mov byte [ebp - 0x18], 0x2e
mov byte [ebp - 0x1b], 0x66
mov byte [ebp - 0x1e], 0x69
call fcn.0040bb80
add esp, 8
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x88]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x495c4d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x495c49
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x495c4d
mov ecx, edx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041553e
mov esp, ebp
pop ebp
ret