Function at 0x140048dac
Capabilities:
Delete registry value
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b60]
mov eax, 0x1c60
call fcn.1400be0c0
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1c98], rbx
mov qword [rsp + 0x1ca0], rsi
mov qword [rsp + 0x1ca8], rdi
mov rax, qword [0x140197e90]
xor rax, rsp
mov qword [rbp + 0x1b50], rax
mov r12b, dl
mov byte [rsp + 0x54], dl
mov rsi, rcx
xor r13d, r13d
mov edi, r13d
mov dword [rsp + 0x50], r13d
lea rax, [rcx + 0x130]
mov qword [rbp - 0x78], rax
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0x160]
call fcn.14004a044
lea rcx, [rsi + 0x170]
call fcn.14004a044
lea edx, [r13 + 1]
mov rcx, rsi
call fcn.140049948
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rbx, [rsi + 0x1b0]
lea edx, [r13 + 0x5c]
mov rcx, qword [rbx]
call fcn.1400bb8f8
test rax, rax
jne 0x140048e75
or eax, 0xffffffff
jmp 0x140048e7b
sub rax, qword [rbx]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140021298
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r14d, 0x2001f
mov r9d, r14d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140048f9e
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140048f9e
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.14003f528
mov rbx, rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x78], rax
lea rcx, [0x1401979a8]
mov rdx, qword [0x1401979a8]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x78], rax
lea rcx, [0x1401979a8]
mov rax, qword [0x1401979a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rdx, str.error_in_clearRegKeysOfInject:
lea rcx, [rsp + 0x70]
call fcn.140002b78
cmp qword [rbx + 0x18], 0x10
jb 0x140048f66
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140002b78
lea r8, [0x14012e474]
lea rdx, [0x14012e478]
lea rcx, [rsp + 0x70]
call fcn.14000d0c4
nop
lea rdx, [0x140162f68]
lea rcx, [rsp + 0x70]
call fcn.1400c0ee8
nop
test r12b, r12b
je 0x140048fe4
lea r8, str._ver
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.140017478
nop
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140048fe0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov r14d, r13d
lea rcx, [0x1401979a8]
mov rax, qword [0x1401979a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov ecx, dword [0x14019fd80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x30c30c31
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r8d, edx
cmp r8d, 4
jne 0x1400490a8
mov word [rbp + 0x10], r13w
xor edx, edx
mov r8d, 0x1b30
lea rcx, [rbp + 0x12]
call fcn.1400be450
mov r10, r13
or r9, 0xffffffffffffffff
lea esi, [r9 + 2]
mov r8, r13
test r10, r10
je 0x140049080
test r8, r8
je 0x140049080
lea rcx, [r9 + r8]
lea rax, [r9 + r8]
movzx edx, word [rbp + rcx*2 - 0x64]
add dx, word [rbp + rax*2 + 0x10]
add dx, si
lea rax, [r9 + r8]
mov word [rbp + rax*2 + 0x12], dx
add r8, rsi
cmp r8, 0x3b
jl 0x140049058
add r10, rsi
add r9, 0x3b
cmp r9, 0xd98
jl 0x140049055
movsx eax, word [rbp + 0x1b40]
mov dword [0x14019fd80], eax
jmp 0x1400490ad
mov esi, 1
mov r15d, 0x7ffe
mov dword [rbp - 0x80], r15d
mov ecx, esi
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r15d
or eax, ecx
jge 0x1400490d8
mov edx, r15d
lea rcx, [rsp + 0x58]
call fcn.140001f54
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 0xc], r15d
jl 0x14004946a
mov dword [rbx - 0x10], r15d
mov word [rbx + 0xfffc], r13w
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x80]
mov r8, rbx
mov edx, r14d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r15d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400b9bfc
test eax, eax
js 0x14004945f
cmp eax, dword [rbx - 0xc]
jg 0x14004945f
mov dword [rbx - 0x10], eax
movsxd rcx, eax
mov word [rbx + rcx*2], r13w
call fcn.140041908
mov r8, rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x50]
call fcn.140017478
nop
or edi, esi
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x140049189
cmp dword [rbx - 0x10], r13d
jl 0x140049189
mov rcx, rbx
call fcn.1400b9dcc
test rax, rax
je 0x140049189
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400492b9
cmp byte [0x1401a16f9], r13b
jne 0x1400491d9
mov dword [rbp - 8], 0x120058
mov dword [rbp - 4], 0x1f0003
mov dword [rbp], 0x1e
mov rcx, r13
lea r13, [0x14019ada0]
lea rdx, [0x14019bc80]
movzx eax, byte [rcx + r13]
xor ax, word [rbp + rcx*2 - 8]
mov word [rdx + rcx*2], ax
add rcx, rsi
cmp rcx, 5
jl 0x1400491b8
mov byte [0x1401a16f9], sil
xor r13d, r13d
lea r8, [0x14019bc80]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.140017478
nop
or edi, 2
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x140049220
cmp dword [rbx - 0x10], r13d
jl 0x140049220
mov rcx, rbx
call fcn.1400b9dcc
test rax, rax
je 0x140049220
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400492b9
cmp byte [0x1401a16e9], r13b
jne 0x140049273
mov dword [rbp - 0x20], 0x58
mov dword [rbp - 0x1c], 0x1e
mov rcx, r13
lea r13, [0x14019ada0]
mov r12d, 3
lea rdx, [0x14019b460]
movzx eax, byte [rcx + r13]
xor ax, word [rbp + rcx*2 - 0x20]
mov word [rdx + rcx*2], ax
add rcx, rsi
cmp rcx, r12
jl 0x14004924e
mov byte [0x1401a16e9], sil
mov r12b, byte [rsp + 0x54]
xor r13d, r13d
lea r8, [0x14019b460]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.140017478
nop
or edi, 4
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x1400492b6
cmp dword [rbx - 0x10], r13d
jl 0x1400492b6
mov rcx, rbx
call fcn.1400b9dcc
test rax, rax
je 0x1400492b6
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400492b9
mov sil, r13b
test dil, 4
je 0x1400492e7
and edi, 0xfffffffb
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400492de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test dil, 2
je 0x140049315
and edi, 0xfffffffd
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004930c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov eax, 1
test al, dil
je 0x140049347
and edi, 0xfffffffe
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004933e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test sil, sil
je 0x140049364
mov r14d, r13d
mov rdx, rbx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, 1
jmp 0x14004936c
mov esi, 1
add r14d, esi
test r15d, r15d
mov r15d, 0x7ffe
je 0x1400490b3
test r12b, r12b
je 0x140049421
lea r8, [0x14019b600]
cmp byte [0x1401a16f7], r13b
jne 0x1400493d3
mov dword [rbp - 0x18], 0x20058
mov dword [rbp - 0x14], 0x20014
mov word [rbp - 0x10], r13w
mov rcx, r13
lea r13, [0x14019ada0]
movzx eax, byte [rcx + r13]
xor ax, word [rbp + rcx*2 - 0x18]
mov word [r8 + rcx*2], ax
add rcx, rsi
cmp rcx, 4
jl 0x1400493b1
mov byte [0x1401a16f7], sil
xor r13d, r13d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140017478
nop
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004941c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140049442
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004945b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140049475
mov ecx, 0x80070057
call fcn.140001874
int3
mov ecx, 0x80070057
call fcn.140001874
nop
mov rcx, qword [rbp + 0x1b50]
xor rcx, rsp
call fcn.1400b9010
lea r11, [rsp + 0x1c60]
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