Function at 0x40ca50
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e004b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push esi
push edi
mov ecx, 0x5133b4
call fcn.004ba18d
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2a]
lea eax, [ebp - 0x15]
mov dword [ebp - 0x4c], 0x4f005c
push eax
push ecx
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x48], 0x650070
push edx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x44], 0x57006e
mov dword [ebp - 0x40], 0x740069
mov dword [ebp - 0x3c], 0x500068
mov dword [ebp - 0x38], 0x6f0072
mov dword [ebp - 0x34], 0x690067
mov dword [ebp - 0x30], 0x730064
call fcn.00403eb0
push dword [eax]
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 1
push dword [ebp + 8]
push eax
call fcn.0040bc80
add esp, 0xc
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.0040b7b0
cmp dword [ebp - 0x11c], 8
lea eax, [ebp - 0x130]
push 0x20019
cmovae eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x60]
push eax
push SysReAllocString
call fcn.0040c990
test eax, eax
jne 0x40d0dc
xor edi, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x68], eax
mov esi, dword [ebp - 0x60]
lea eax, [ebp - 0x50]
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x330]
mov byte [ebp - 4], 4
push eax
push edi
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x50], 0x200
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40cc6b
nop
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x330]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cba0
sub eax, edx
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
lea eax, [ebp - 0x330]
push eax
call fcn.00403040
cmp dword [ebp - 0x34], 0
mov byte [ebp - 4], 5
je 0x40cbf3
lea eax, [ebp - 0x44]
push eax
cmp edi, dword [ebp - 0x54]
je 0x40cbe1
mov ecx, edi
call fcn.00403d70
add edi, 0x18
mov dword [ebp - 0x6c], edi
jmp 0x40cbf3
push edi
lea ecx, [ebp - 0x70]
call fcn.0040bdb0
mov eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x50], 0x200
mov byte [ebp - 4], 4
cmp ecx, 8
jb 0x40cc42
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cc35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d105
push ecx
push edx
call fcn.004ba17f
mov eax, dword [ebp - 0x10]
add esp, 8
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x330]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40cb80
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x40cc7e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x60], esi
xor eax, eax
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x8c], ax
lea ecx, [ebp - 0x8a]
lea eax, [ebp - 0x15]
mov dword [ebp - 0x118], 0x6f0053
push eax
push ecx
lea edx, [ebp - 0x118]
mov dword [ebp - 0x114], 0x740066
push edx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x110], 0x610077
mov dword [ebp - 0x10c], 0x650072
mov dword [ebp - 0x108], 0x4d005c
mov dword [ebp - 0x104], 0x630069
mov dword [ebp - 0x100], 0x6f0072
mov dword [ebp - 0xfc], 0x6f0073
mov dword [ebp - 0xf8], 0x740066
mov dword [ebp - 0xf4], 0x57005c
mov dword [ebp - 0xf0], 0x6e0069
mov dword [ebp - 0xec], 0x6f0064
mov dword [ebp - 0xe8], 0x730077
mov dword [ebp - 0xe4], 0x43005c
mov dword [ebp - 0xe0], 0x720075
mov dword [ebp - 0xdc], 0x650072
mov dword [ebp - 0xd8], 0x74006e
mov dword [ebp - 0xd4], 0x650056
mov dword [ebp - 0xd0], 0x730072
mov dword [ebp - 0xcc], 0x6f0069
mov dword [ebp - 0xc8], 0x5c006e
mov dword [ebp - 0xc4], 0x700041
mov dword [ebp - 0xc0], 0x6c0070
mov dword [ebp - 0xbc], 0x630069
mov dword [ebp - 0xb8], 0x740061
mov dword [ebp - 0xb4], 0x6f0069
mov dword [ebp - 0xb0], 0x41006e
mov dword [ebp - 0xac], 0x730073
mov dword [ebp - 0xa8], 0x63006f
mov dword [ebp - 0xa4], 0x610069
mov dword [ebp - 0xa0], 0x690074
mov dword [ebp - 0x9c], 0x6e006f
mov dword [ebp - 0x98], 0x6f0054
mov dword [ebp - 0x94], 0x730061
mov dword [ebp - 0x90], 0x730074
call fcn.00403eb0
mov dword [ebp - 0x10], 0
mov ecx, dword [eax]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x40ce75
cmp dword [eax], 0
je 0x40ce68
push 0x4e7878
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40ce3a
lea ecx, [ebp - 0x7c]
call fcn.0040b7b0
jmp 0x40d074
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ce6e
mov ecx, dword [ebp - 0x58]
push 0
push dword [ecx]
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x28]
push SysReAllocString
call eax
jmp 0x40ce8c
cmp dword [eax + 4], 0
jne 0x40ce75
mov eax, 1
jmp 0x40ce8c
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40ceb4
mov dword [ebp - 0x14], eax
test esi, esi
je 0x40cea4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x7c]
call fcn.0040b7b0
cmp dword [ebp - 0x14], 0
jne 0x40d074
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
cmp ecx, edi
je 0x40d05d
mov edx, dword [ecx + 0x10]
mov eax, SysReAllocString
sub eax, edx
mov dword [ebp - 0x64], edx
cmp eax, 1
jb 0x40d10a
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x10], ecx
jb 0x40cef8
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
lea ecx, [edx + 1]
mov dword [ebp - 0x78], 0
mov esi, 7
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x1c], ecx
xorps xmm0, xmm0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x88], xmm0
cmp ecx, esi
jbe 0x40cf65
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40cf3c
mov esi, SysReAllocString
jmp 0x40cf47
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x88]
call fcn.00403640
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x74], esi
lea esi, [edx + edx]
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x78], ecx
push eax
call fcn.004bcc90
mov eax, dword [ebp - 0x14]
mov ecx, 0x5f
xor edx, edx
add esp, 0xc
mov word [eax + esi], cx
mov ecx, dword [ebp - 0x64]
mov word [eax + ecx*2 + 2], dx
push dword [ebp + 8]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.0040fa40
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
mov byte [ebp - 4], 4
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x88]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.0040f9c0
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 4
push ecx
push 4
push 0
push eax
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x40d04c
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d042
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d105
push ecx
push edx
call fcn.004ba17f
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, 0x18
mov dword [ebp - 0x28], ecx
cmp ecx, edi
jne 0x40ced4
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test esi, esi
je 0x40d074
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40d0df
mov eax, ecx
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x40d09a
mov esi, ecx
mov ecx, esi
call fcn.0040f9c0
add esi, 0x18
cmp esi, edi
jne 0x40d086
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x54]
mov eax, 0x2aaaaaab
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, ecx
shl edx, 3
cmp edx, 0x1000
jb 0x40d0d0
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d105
push edx
push ecx
call fcn.004ba17f
add esp, 8
jmp 0x40d0df
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x130]
call fcn.0040f9c0
test esi, esi
je 0x40d0f5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004c10cf
call fcn.00402950
int3