Function at 0x14004f0f0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1c8]
sub rsp, 0x2b0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x50], r14
movdqa xmm0, xmmword [0x1401332b0]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r14w
lea r8d, [r14 + 0x2b]
lea rdx, str.SYSTEMCurrentControlSetServicesEventLog_
lea rcx, [rsp + 0x70]
call fcn.140007ac0
nop
lea r9, [rsi + 0xc0]
cmp qword [rsi + 0xd8], 8
jb 0x14004f178
mov r9, qword [rsi + 0xc0]
mov rdx, qword [rsi + 0xd0]
mov rcx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x78]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x14004f1c0
lea rdi, [rcx + rdx]
mov qword [rbp - 0x80], rdi
lea rbx, [rsp + 0x70]
cmp r8, 8
cmovae rbx, qword [rsp + 0x70]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call fcn.1400c0dd0
mov word [rbx + rdi*2], r14w
jmp 0x14004f1d5
xor eax, eax
mov qword [rsp + 0x20], rdx
movzx r8d, al
lea rcx, [rsp + 0x70]
call fcn.14002dd10
mov rcx, qword [rbp - 0x80]
mov r8, rcx
mov rdx, qword [rbp - 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14004f20c
inc rcx
mov qword [rbp - 0x80], rcx
lea rax, [rsp + 0x70]
cmp rdx, 8
cmovae rax, qword [rsp + 0x70]
mov dword [rax + r8*2], 0x5c
jmp 0x14004f22f
xor eax, eax
mov ecx, 0x5c
mov word [rsp + 0x20], cx
mov r9d, 1
movzx r8d, al
mov edx, r9d
lea rcx, [rsp + 0x70]
call fcn.140033940
lea r9, [rsi + 0xe0]
cmp qword [rsi + 0xf8], 8
jb 0x14004f247
mov r9, qword [rsi + 0xe0]
mov rdx, qword [rsi + 0xf0]
mov rcx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x78]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x14004f28f
lea rdi, [rcx + rdx]
mov qword [rbp - 0x80], rdi
lea rbx, [rsp + 0x70]
cmp r8, 8
cmovae rbx, qword [rsp + 0x70]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call fcn.1400c0dd0
mov word [rbx + rdi*2], r14w
jmp 0x14004f2a4
xor eax, eax
mov qword [rsp + 0x20], rdx
movzx r8d, al
lea rcx, [rsp + 0x70]
call fcn.14002dd10
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004f446
cmp dword [rsp + 0x58], 1
jne 0x14004f446
lea rcx, str.log4cxx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14004f31a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x103
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14004f446
mov eax, eax
add rax, rax
cmp rax, 0x208
jae 0x14004f440
mov word [rbp + rax - 0x70], r14w
lea rcx, [rbp - 0x70]
or rbx, 0xffffffffffffffff
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14004f360
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.EventMessageFile
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rbp - 0x70]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004f3a0
add ebx, ebx
mov dword [rsp + 0x28], ebx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.CategoryMessageFile
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x5c], 7
mov dword [rsp + 0x60], 6
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.TypesSupported
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.CategoryCount
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14004f446
call fcn.1400278c4
int3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rbp - 0x78]
cmp rax, 8
jb 0x14004f4a9
inc rax
mov rcx, qword [rsp + 0x70]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
ja 0x14004f4a3
add rax, rax
cmp rax, 0x1000
jb 0x14004f49c
test cl, 0x1f
jne 0x14004f4a3
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14004f4a3
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x14004f4a3
mov rcx, rax
call fcn.140028154
jmp 0x14004f4a9
call fcn.1400c6d18
int3
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140027790
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret