Function at 0x40aea0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x593dc0]
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
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov esi, ecx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x68], 0x3d0021
mov dword [ebp - 0x64], 0x260034
mov dword [ebp - 0x60], 0x330025
mov dword [ebp - 0x5c], 0x370020
mov dword [ebp - 0x58], 0x3f002e
mov dword [ebp - 0x54], 0x11001b
mov dword [ebp - 0x50], 0x1d0000
mov dword [ebp - 0x4c], 0x1d0001
mov dword [ebp - 0x48], 0x60014
mov dword [ebp - 0x44], 0x31002e
mov dword [ebp - 0x40], 0xb0000
mov dword [ebp - 0x3c], 0x60002
mov dword [ebp - 0x38], 0x15001d
mov dword [ebp - 0x34], 0x130000
mov dword [ebp - 0x30], 0x1a0002
mov dword [ebp - 0x2c], 0xb
xor eax, eax
lea ebx, [ebx]
xor word [ebp + eax*2 - 0x68], 0x72
inc eax
cmp eax, 0x1f
jb 0x40af50
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
push 0x20119
lea edx, [ebp - 0x68]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], ebx
call fcn.0040e8e0
test eax, eax
je 0x40afcf
call fcn.00415eb7
cmp eax, ebx
jne 0x40af95
push 0x80004005
call fcn.00402460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x40afb1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.0051d79f
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], 0x13003f
mov dword [ebp - 0x24], 0x1a0011
mov dword [ebp - 0x20], 0x1c001b
mov dword [ebp - 0x1c], 0x350017
mov dword [ebp - 0x18], 0x1b0007
mov dword [ebp - 0x14], 0x16
xor eax, eax
jmp 0x40b000
xor word [ebp + eax*2 - 0x28], 0x72
inc eax
cmp eax, 0xb
jb 0x40b000
call fcn.00415eb7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b026
push 0x80004005
call fcn.00402460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x74], esi
mov byte [ebp - 4], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x64
or eax, ecx
jge 0x40b058
push 0x64
lea ecx, [ebp - 0x74]
call fcn.004023c0
mov esi, dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x80]
push esi
lea edx, [ebp - 0x6c]
push edx
push ebx
lea eax, [ebp - 0x28]
push eax
push ecx
mov dword [ebp - 0x70], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40b096
mov eax, dword [ebp - 0x6c]
cmp eax, 1
je 0x40b088
cmp eax, 2
jne 0x40b096
cmp esi, ebx
je 0x40b096
cmp dword [ebp - 0x70], ebx
jne 0x40b096
xor edx, edx
mov word [esi], dx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0051e211
add esp, 8
cmp eax, ebx
jl 0x40b15b
cmp eax, dword [esi - 8]
jg 0x40b15b
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x40b0e3
cmp eax, dword [esi]
jne 0x40b0e3
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b11f
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
jne 0x40b0fc
call fcn.004017d0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0051dbc1
add esp, 0x10
lea edx, [edi + 0x10]
mov edi, dword [ebp - 0x84]
mov dword [edi], edx
mov byte [ebp - 4], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b146
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x40b154
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40afb3
push 0x80070057
call fcn.00402460
int3