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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f5f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d8
push esi
mov ecx, 0x56c5c2
call fcn.00500c8d
movaps xmm0, xmmword [0x536c40]
lea eax, [ebp - 0xd]
movups xmmword [ebp - 0xb4], xmm0
lea ecx, [ebp - 0x66]
mov dword [ebp - 0x1c], 0
movaps xmm0, xmmword [0x536c30]
lea edx, [ebp - 0xb4]
movups xmmword [ebp - 0xa4], xmm0
push eax
movaps xmm0, xmmword [0x536c10]
push ecx
movups xmmword [ebp - 0x94], xmm0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x18], 0
movaps xmm0, xmmword [str._E325_11CE_BFC1_Class4D36E972NetCfgInstanceIdntrolSetControlSYSTEMCurrentCoN:]
push edx
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x74], 0x30303830
mov dword [ebp - 0x70], 0x31454232
mov dword [ebp - 0x6c], 0x38313330
mov word [ebp - 0x68], 0x7d
call fcn.00404080
mov edx, dword [eax]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d517
push edi
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.00402fd0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 2
call fcn.0040bc00
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d78e
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [ebp - 0x18]
test eax, eax
mov edx, 0x64
cmovne ecx, edx
xor esi, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], esi
test ecx, ecx
je 0x40d78e
nop dword [eax + eax]
push 0x104
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x14], 0
push 0
push eax
call fcn.00503f20
push 0x104
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x28], 0
push 0
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0x104
call fcn.00503f20
push esi
push str._04u
lea eax, [ebp - 0x1e0]
push 0x104
push eax
call fcn.0040ca70
add esp, 0x28
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d76b
movaps xmm0, xmmword [0x536c20]
lea edx, [ebp - 0x64]
mov byte [ebp - 0x54], al
xor ecx, ecx
lea eax, [ebp - 0x53]
mov esi, ecx
mov dword [ebp - 0x30], eax
mov edi, ecx
sub eax, edx
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x34], eax
je 0x40d68b
cmp eax, 0x7fffffff
ja 0x40d7d8
push eax
lea ecx, [ebp - 0xc0]
call fcn.004029a0
mov edi, eax
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x38], edi
push eax
mov eax, ecx
push eax
push edi
call fcn.005039a0
mov esi, edi
add esp, 0xc
add edi, dword [ebp - 0x34]
mov ecx, esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne al
mov byte [ebp - 0xd], al
test esi, esi
je 0x40d6df
sub edi, esi
cmp edi, 0x1000
jb 0x40d6d2
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40d7dd
mov esi, ecx
push edi
push esi
call fcn.00500c7f
mov al, byte [ebp - 0xd]
add esp, 8
test al, al
jne 0x40d760
mov ecx, dword [ebp + 8]
mov eax, ecx
cmp dword [ecx + 0x14], 0x10
jb 0x40d6f0
mov eax, dword [ecx]
lea ecx, [ebp - 0x2e4]
push ecx
push eax
call fcn.0050dc4c
add esp, 8
test eax, eax
jne 0x40d760
movaps xmm0, xmmword [0x536bf0]
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x20], 4
push ecx
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0xdc]
movups xmmword [ebp - 0xc4], xmm0
call fcn.00404080
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push 0
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0xdc]
mov esi, eax
call fcn.0040bc00
test esi, esi
je 0x40d77e
push dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x18]
jae 0x40d78e
mov esi, eax
jmp 0x40d5b0
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x40d791
or esi, 0xffffffff
push dword [ebp - 0x1c]
call edi
mov ecx, dword [ebp - 0x3c]
pop edi
cmp ecx, 0x10
jb 0x40d7c7
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d7bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d7dd
push ecx
push edx
call fcn.00500c7f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0040bcc0
call fcn.00507f1f
int3