Function at 0x406d10
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bc88
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x562494]
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 dword [ebp - 0x1c], edx
mov esi, ecx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x18], 0
mov eax, 0x100
mov edi, 0x200
mov dword [ebp - 0x20], 0
cmovne edi, eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
call fcn.00406f40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00409430
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0
push eax
push 0
or edi, 0x20006
push edi
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
or ebx, 0xffffffff
test eax, eax
jne 0x406ea4
mov dword [ebp - 0x40], 0x6e0041
mov dword [ebp - 0x3c], 0x740079
mov dword [ebp - 0x38], 0x690068
mov dword [ebp - 0x34], 0x67006e
mov dword [ebp - 0x30], 0x65002e
mov dword [ebp - 0x2c], 0x650078
mov word [ebp - 0x28], ax
call fcn.00409bb0
mov ecx, eax
test ecx, ecx
je 0x406f0f
mov eax, dword [ecx]
push 2
push 0xc
call dword [eax]
test eax, eax
je 0x406f19
cmp dword [eax + 8], 0xc
lea edi, [eax + 0x10]
jl 0x406f32
xor eax, eax
mov dword [edi - 0xc], 0xc
mov word [edi + 0x18], ax
lea edx, [ebx + 0x19]
lea eax, [ebp - 0x40]
mov ecx, edi
push 0x18
push eax
call fcn.0040a070
add esp, 8
lea ecx, [edi - 0x10]
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x406e83
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x14]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x406f28
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x14]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x406f1e
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x406ea4
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x406ea4
lea edi, [eax + 1]
jmp 0x406ea6
xor edi, edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x406eb4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x406ef1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x406f3c
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x406f3c
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
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.004affa8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040a130
call fcn.00409240
mov ecx, edx
call dword [ebp - 0x24]
jmp 0x406e83
mov ecx, edx
call dword [ebp - 0x24]
jmp 0x406e83
push 0x80070057
call fcn.0040a130
call edx
jmp 0x406ef1