Function at 0x14004c178
Capabilities:
Encode data using xor
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401a2e90]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, rdx
mov r15, rcx
lea rdi, [rcx + 0x1b8]
mov edx, 0x5c
mov rcx, qword [rdi]
call fcn.1400c0294
or esi, 0xffffffff
xor r13d, r13d
test rax, rax
jne 0x14004c1d4
mov eax, esi
jmp 0x14004c1da
sub rax, qword [rdi]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rbp - 0x71]
mov rcx, rdi
call fcn.14002358c
nop
mov r8d, dword [0x1401aad80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
mov ebx, 1
lea r14d, [rbx + 2]
cmp ecx, r14d
jne 0x14004c272
lea r10d, [rbx + 0x76]
mov ecx, r13d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
test r14d, r14d
jle 0x14004c264
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
mov r9d, r13d
mov rsi, r14
test eax, eax
jle 0x14004c25c
mov edx, r9d
mov r11d, eax
add r10d, edx
sub edx, ebx
sub r11, rbx
jne 0x14004c252
add r9d, ecx
sub rsi, rbx
jne 0x14004c248
add ecx, ebx
cmp ecx, r10d
jl 0x14004c231
or esi, 0xffffffff
lea r14d, [rsi + 4]
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [r15 + 0x2e0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r8d, 0xd
lea rdi, [0x1401a5da0]
test eax, eax
jne 0x14004c3e6
mov r9d, dword [0x1401aad80]
mov ecx, r9d
imul ecx, r9d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, r8d
jne 0x14004c2e4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov dword [0x1401aad80], eax
lea r8d, [r9 + 2]
lea ecx, [r9 + 1]
imul r8d, ecx
imul r8d, r9d
mov eax, 0x38e38e39
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub r8d, eax
cmp r8d, 0xb
jne 0x14004c33d
mov eax, 0xe1
mov r8d, 0x29
test r8d, r8d
je 0x14004c334
mov ecx, r8d
cdq
idiv r8d
mov r8d, edx
mov eax, ecx
test ecx, ecx
jne 0x14004c31f
add eax, r8d
mov dword [0x1401aad80], eax
lea r8, [0x1401a6860]
cmp byte [0x1401acf24], r13b
jne 0x14004c389
mov dword [rbp - 0x51], 0x13004c
mov dword [rbp - 0x4d], 0x2001b
mov dword [rbp - 0x49], 0x30015
mov dword [rbp - 0x45], 0x22
mov rcx, r13
movzx eax, byte [rcx + rdi]
xor ax, word [rbp + rcx*2 - 0x51]
mov word [r8 + rcx*2], ax
add rcx, rbx
cmp rcx, 7
jl 0x14004c36c
mov byte [0x1401acf24], bl
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x69]
call fcn.140019018
nop
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], r12
mov r9d, r14d
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14004c3d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
je 0x14004c4cc
lea rdi, [0x1401a5da0]
lea r11, [0x1401a65f0]
cmp byte [0x1401acf38], r13b
jne 0x14004c491
mov dword [rbp - 0x39], 0x60004
mov dword [rbp - 0x35], 0xc001b
mov dword [rbp - 0x31], 0x2c0014
mov dword [rbp - 0x2d], 0xe0008
mov dword [rbp - 0x29], 0xf000c
mov dword [rbp - 0x25], 0x5001c
mov dword [rbp - 0x21], 0x100001
mov dword [rbp - 0x1d], 0x190000
mov dword [rbp - 0x19], 0x1b000b
mov dword [rbp - 0x15], 0x2d0016
mov dword [rbp - 0x11], 0x1e0005
mov dword [rbp - 0xd], 0x380009
mov dword [rbp - 9], 0x8001f
mov dword [rbp - 5], 0x190012
mov dword [rbp - 1], 0x40016
mov dword [rbp + 3], 0xd0001
mov word [rbp + 7], r13w
mov r8, r13
movzx eax, byte [r8 + rdi]
xor ax, word [rbp + r8*2 - 0x39]
mov word [r11 + r8*2], ax
add r8, rbx
cmp r8, 0x20
jl 0x14004c472
mov byte [0x1401acf38], bl
mov rdx, r11
lea rcx, [rbp - 0x79]
call fcn.140001f6c
nop
lea rdx, [rbp - 0x79]
mov rcx, r15
call fcn.14004d1ec
nop
mov rdx, qword [rbp - 0x79]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14004c4c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov bl, r13b
mov rdx, qword [rbp - 0x71]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14004c4eb
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400bd920
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret