Function at 0x4bda10
Capabilities:
Check os version
Get common file path
Persist via winlogon helper dll registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc1f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0x1c4]
mov dword [ebp - 0x1c8], 0x94
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c8]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x20], ebx
cmp eax, 2
jne 0x4bda85
cmp dword [ebp - 0x1c4], 6
jne 0x4bda85
cmp dword [ebp - 0x1c0], ebx
jne 0x4bda85
mov dword [ebp - 0x20], 1
push 0x100
mov dword [ebp - 0x18], ebx
call fcn.004f266a
add esp, 4
mov esi, 0x80
lea ecx, [ebp - 0x248]
mov edi, eax
push esi
push ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonGPExtensions
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4bde6f
jmp 0x4bdad7
mov esi, 0x80
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push 0
push eax
push edi
push ecx
push edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [ebp - 0x18]
mov esi, eax
inc ecx
cmp esi, 0x103
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], ecx
je 0x4bde6f
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x134]
push edx
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
push eax
push ecx
push 0
push str.DllName
push edx
mov dword [ebp - 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4bde07
lea eax, [ebp - 0x134]
push str.gptext.dll
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
lea ecx, [ebp - 0x134]
push str.fdeploy.dll
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
lea edx, [ebp - 0x134]
push str.dskquota.dll
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
lea eax, [ebp - 0x134]
push str.iedkcs32.dll
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
lea ecx, [ebp - 0x134]
push str.scecli.dll
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
lea edx, [ebp - 0x134]
push str.cscui.dll
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
lea eax, [ebp - 0x134]
push str.appmgmts.dll
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
lea ecx, [ebp - 0x134]
push str._SystemRoot_System32cscui.dll
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
cmp dword [ebp - 0x20], 1
jne 0x4bdccb
lea edx, [ebp - 0x134]
push str._SystemRoot_System32dskquota.dll
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
lea eax, [ebp - 0x134]
push str._SystemRoot_System32_srchadmin.dll
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
lea ecx, [ebp - 0x134]
push str._SystemRoot_System32cscobj.dll
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
lea edx, [ebp - 0x134]
push str._systemroot__system32gpprnext.dll
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
lea eax, [ebp - 0x134]
push str._SystemRoot_System32polstore.dll
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4bde63
mov edx, dword [ebp + 8]
lea ecx, [ebx + ebx*2]
shl ecx, 7
push edi
push str.HKLMSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonNotify_s
lea esi, [ecx + edx]
push esi
call fcn.004f175f
lea eax, [ebp - 0x134]
push 0x5147e0
push eax
call fcn.004f2d80
add esp, 0x14
test eax, eax
je 0x4bdd0c
lea edi, [ebp - 0x134]
lea edx, [esi + 0x80]
jmp 0x4bde2d
lea ecx, [ebp - 0x134]
push str._systemroot_
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4bdd63
lea edx, [ebp - 0x134]
push str._SystemRoot_
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4bdd63
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x248]
push eax
push ecx
add esi, 0x80
push str._s_s
push esi
call fcn.004f175f
add esp, 0x10
jmp 0x4bde4d
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x348]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x348]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea edx, [esi - 1]
test edx, edx
jle 0x4bddb2
cmp byte [ebp + edx - 0x348], 0x5c
je 0x4bddb2
dec edx
jmp 0x4bdda1
xor eax, eax
mov ecx, esi
sub ecx, edx
dec ecx
cmp eax, ecx
jge 0x4bddd1
lea ecx, [eax + edx]
inc eax
mov cl, byte [ebp + ecx - 0x347]
mov byte [ebp + eax - 0x449], cl
jmp 0x4bddb4
lea edx, [ebp - 0x448]
lea ecx, [ebx + ebx*2]
mov byte [ebp + eax - 0x448], 0
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x248]
shl ecx, 7
push eax
push str._s_s
lea eax, [ecx + edx + 0x80]
push eax
call fcn.004f175f
add esp, 0x10
jmp 0x4bde4a
mov edx, dword [ebp + 8]
lea ecx, [ebx + ebx*2]
shl ecx, 7
push edi
push str.HKLMSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonNotify_s
lea esi, [ecx + edx]
push esi
call fcn.004f175f
add esp, 0xc
lea edx, [esi + 0x80]
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, 0x100
je 0x4bde6f
mov esi, dword [ebp - 0x2c]
cmp esi, 0x103
jne 0x4bdad2
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
push eax
mov dword [edx], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004f265f
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret