Function at 0x10000f384
Capabilities:
Delete registry value
Log keystrokes via polling
Persist via winlogon helper dll registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
mov eax, 0x1290
call fcn.100003b00
sub rsp, rax
mov rax, qword [0x10001d1d0]
xor rax, rsp
mov qword [rsp + 0x1280], rax
lea rbx, str.Userinit
mov edi, 6
mov rcx, rbx
call fcn.10000ee4c
add rbx, 0x18
sub rdi, 1
jne 0x10000f3c3
lea rax, [rsp + 0x58]
mov rdi, 0xffffffff80000002
lea rdx, str.SYSTEMSetup
mov r9d, 0x2000000
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
xor r12d, r12d
lea r14, [0x100018400]
mov ebp, 4
cmp eax, r12d
jne 0x10000f4cb
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
lea rdx, str.Cmdline
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x280]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x68], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, r12d
jne 0x10000f48b
mov rcx, qword [0x10001d1e0]
lea rbx, [0x10001d1e0]
cmp rcx, rbx
je 0x10000f4be
test byte [rcx + 0x1c], bpl
je 0x10000f4be
cmp byte [rcx + 0x19], 5
jb 0x10000f4be
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 7]
lea r9, [rsp + 0x280]
mov r8, r14
call fcn.100003504
jmp 0x10000f4be
mov rcx, qword [0x10001d1e0]
lea rbx, [0x10001d1e0]
cmp rcx, rbx
je 0x10000f4be
test byte [rcx + 0x1c], bpl
je 0x10000f4be
cmp byte [rcx + 0x19], 2
jb 0x10000f4be
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov r9d, eax
mov r8, r14
call fcn.100001e70
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10000f4fe
mov rcx, qword [0x10001d1e0]
lea rbx, [0x10001d1e0]
cmp rcx, rbx
je 0x10000f4fe
test byte [rcx + 0x1c], bpl
je 0x10000f4fe
cmp byte [rcx + 0x19], 2
jb 0x10000f4fe
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
mov r9d, eax
mov r8, r14
call fcn.100001e70
lea rax, [rsp + 0x60]
lea rdx, str.SYSTEMSetup
mov r9d, 0x20006
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, r12d
jne 0x10000f55c
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea rdx, str.SetupType
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [0x10001d1a8]
cmp eax, ebp
je 0x10000f5aa
cmp eax, 2
je 0x10000f5aa
lea rax, [rsp + 0x58]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
mov r9d, 0x2001b
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, r12d
jne 0x10000f5aa
mov rcx, qword [rsp + 0x58]
lea rdx, str.AutoAdminLogon
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
cmp dword [0x10001d1b0], r12d
je 0x10000f627
lea r9, str.WinSta0
lea r8, str._sWinlogon
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.100002858
lea rcx, str.syssetup.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp rax, r12
je 0x10000f627
lea rdx, str.SetupSetDisplay
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, r12
je 0x10000f61e
mov dword [rsp + 0x30], 0x10
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x258
mov dword [rsp + 0x20], 0x320
call rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, 0xa0
lea rdi, [rsp + 0x280]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0xa1
movzx esi, ax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov r11w, ax
mov eax, 0x8000
cmp dword [0x10001e020], r12d
je 0x10000f65d
mov r11d, eax
movzx ecx, r11w
or cx, si
test ax, cx
je 0x10000f6ad
test ax, r11w
lea rax, [0x100018c50]
lea r9, [0x100015c90]
cmovne r9, rax
lea rax, [rsp + 0x280]
lea r8, str.ntsd__s__s
lea rcx, [rsp + 0xa80]
mov edx, 0x400
mov qword [rsp + 0x20], rax
call fcn.100002858
lea rdi, [rsp + 0xa80]
cmp dword [0x10001d1b0], r12d
mov qword [rsp + 0x40], r12
lea rax, str.winsta0Default
lea rdx, [rsp + 0x70]
mov rcx, rdi
cmove rdx, rax
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
lea r8d, [r9 + 2]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call fcn.100004e00
cmp eax, r12d
je 0x10000f738
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x10000f836
test byte [rcx + 0x1c], bpl
je 0x10000f836
cmp byte [rcx + 0x19], 2
jb 0x10000f836
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov r9d, eax
mov r8, r14
mov qword [rsp + 0x20], rdi
call fcn.10000eda0
jmp 0x10000f836
mov eax, dword [0x10001d1b0]
neg eax
sbb edi, edi
or r12d, 0xffffffff
and edi, 0xf731401
add edi, r12d
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x10000f778
test byte [rcx + 0x1c], bpl
je 0x10000f778
cmp byte [rcx + 0x19], 5
jb 0x10000f778
mov rcx, qword [rcx + 0x10]
mov edx, 0xf
mov r8, r14
call fcn.10000121c
mov rsi, qword [rsp + 0x60]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10000f801
cmp eax, r12d
je 0x10000f7d2
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x10000f82d
test byte [rcx + 0x1c], bpl
je 0x10000f82d
cmp byte [rcx + 0x19], 5
jb 0x10000f82d
mov r9d, dword [rsp + 0x50]
mov edx, 0x12
mov rcx, qword [rcx + 0x10]
mov r8, r14
call fcn.100001e70
jmp 0x10000f82d
mov rax, qword [0x10001d1e0]
cmp rax, rbx
je 0x10000f82d
test byte [rax + 0x1c], bpl
je 0x10000f82d
cmp byte [rax + 0x19], 2
jb 0x10000f82d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10001d1e0]
mov edx, 0x11
mov r9d, eax
jmp 0x10000f7c4
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x10000f82d
test byte [rcx + 0x1c], bpl
je 0x10000f82d
cmp byte [rcx + 0x19], 2
jb 0x10000f82d
mov rcx, qword [rcx + 0x10]
mov edx, 0x10
mov r9d, edi
mov r8, r14
call fcn.100001e70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1280]
xor rcx, rsp
call fcn.100001000
lea r11, [rsp + 0x1290]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret