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

Disassembly:
sub esp, 0x46c
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x47c], ebx
jne 0x41096f
xor eax, eax
jmp 0x410bbe
push 0xfe
lea eax, [esp + 0x5d]
push ebx
push eax
mov byte [esp + 0x64], bl
call fcn.00417ce0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
push esi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x410968
cmp dword [esp + 0xc], ebx
je 0x410968
push 0x103
lea eax, [esp + 0x15d]
push ebx
push eax
mov byte [esp + 0x164], bl
call fcn.00417ce0
add esp, 0xc
lea ecx, [esp + 0x158]
call fcn.0040fc40
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0xc], ebx
jbe 0x410bb9
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x410a0b
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x6c]
push ecx
push eax
push esi
mov dword [esp + 0x3c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x410ba6
push 0x103
lea edx, [esp + 0x36d]
push ebx
push edx
mov byte [esp + 0x374], bl
call fcn.00417ce0
xor eax, eax
add esp, 0xc
push 0x103
mov dword [esp + 0x55], eax
mov word [esp + 0x59], ax
mov byte [esp + 0x5b], al
lea eax, [esp + 0x265]
push ebx
push eax
mov dword [esp + 0x2c], 0x102
mov byte [esp + 0x50], 0x4c
mov byte [esp + 0x51], 0x61
mov byte [esp + 0x52], 0x79
mov byte [esp + 0x53], 0x6f
mov byte [esp + 0x54], 0x75
mov byte [esp + 0x55], 0x74
mov byte [esp + 0x56], 0x20
mov byte [esp + 0x57], 0x54
mov byte [esp + 0x58], 0x65
mov byte [esp + 0x59], 0x78
mov byte [esp + 0x5a], 0x74
mov byte [esp + 0x5b], bl
mov byte [esp + 0x5c], bl
mov byte [esp + 0x26c], bl
call fcn.00417ce0
add esp, 0xc
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x15c]
push edx
push str._s_s
push 0xffffffffffffffff
lea eax, [esp + 0x270]
push 0x104
push eax
call fcn.0041640e
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebx
lea edx, [esp + 0x26c]
push edx
push closesocket
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x410ba6
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x36c]
push ecx
push ebx
push ebx
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410b44
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410ba6
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x47c]
lea esi, [esp + 0x368]
lea ecx, [ecx]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x410b80
cmp cl, bl
je 0x410b7c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x410b80
add eax, 2
add esi, 2
cmp cl, bl
jne 0x410b60
xor eax, eax
jmp 0x410b85
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x410ba6
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, 1
sub dword [esp + 0x10], eax
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0xc]
jb 0x410a07
mov eax, 1
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00415dd3
add esp, 0x46c
ret 4