Function at 0x14005fae0
Capabilities:
Delete registry value
Get disk size
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f8]
sub rsp, 0x5d0
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401c3e90]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
movzx r13d, dl
mov r15, rcx
xor r14d, r14d
mov edi, r14d
mov dword [rsp + 0x50], r14d
mov r9d, dword [0x1401cbd80]
mov r8d, r9d
imul r8d, r9d
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub r8d, edx
cmp r8d, 0xb
jne 0x14005fbd2
mov esi, r14d
lea r14, [rbp - 0x20]
nop word [rax + rax]
xor r10d, r10d
lea ebx, [r10 + 1]
lea ecx, [rsi + 1]
mov eax, r9d
cdq
idiv ecx
mov r8d, edx
mov ecx, r9d
sub ecx, esi
imul r8d, ecx
mov eax, r9d
cdq
idiv ebx
add r8d, eax
sub r8d, r10d
mov dword [r14], r8d
mov edx, r8d
lea rcx, [0x140153c68]
call fcn.1400d1f8c
mov r10d, ebx
add r14, 4
cmp ebx, 0xc
jge 0x14005fbbf
mov r9d, dword [0x1401cbd80]
jmp 0x14005fb73
inc esi
cmp esi, 0x1a
jge 0x14005fbcf
mov r9d, dword [0x1401cbd80]
jmp 0x14005fb70
xor r14d, r14d
lea rax, [r15 + 0x138]
mov qword [rbp - 0x78], rax
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [r15 + 0x168]
call fcn.140060e50
lea rcx, [r15 + 0x178]
call fcn.140060e50
mov dl, 1
mov rcx, r15
call fcn.140060710
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, 0x5c
mov rcx, qword [r15 + 0x1b8]
call fcn.1400d3ff4
or rsi, 0xffffffffffffffff
test rax, rax
jne 0x14005fc35
mov eax, esi
jmp 0x14005fc3f
sub rax, qword [r15 + 0x1b8]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x68]
lea rcx, [r15 + 0x1b8]
call fcn.14002a950
nop
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [r15 + 0x1b8]
mov rcx, qword [r15 + 0x2e0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005fd6b
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r15 + 0x1b8]
mov rcx, qword [r15 + 0x2e0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14005fd6b
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140053b20
mov rbx, rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x78], rax
lea rcx, [0x1401c39a8]
mov rdx, qword [0x1401c39a8]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x78], rax
lea rcx, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x80], rax
lea rdx, str.error_in_clearRegKeysOfInject:
lea rcx, [rsp + 0x78]
call fcn.140003350
cmp qword [rbx + 0x18], 0x10
jb 0x14005fd34
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140003350
lea r8, [0x140154184]
lea rdx, [0x140154188]
lea rcx, [rsp + 0x78]
call fcn.1400100a0
nop
lea rdx, [0x14018e3e0]
lea rcx, [rsp + 0x78]
call fcn.1400d9558
nop
test r13b, r13b
je 0x14005fdb1
lea r8, str._ver
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.14001c930
nop
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005fdad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov ecx, dword [0x1401cbd80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov ecx, r8d
and ecx, 0x80000007
jge 0x14005fdd8
dec ecx
or ecx, 0xfffffff8
inc ecx
cmp ecx, 5
jne 0x14005fe43
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub r8d, edx
cmp r8d, 0xc
jne 0x14005fe2e
mov eax, 0xb1
mov r8d, LoadRegTypeLib
nop dword [rax]
test r8d, r8d
je 0x14005fe25
mov ecx, r8d
cdq
idiv r8d
mov r8d, edx
mov eax, ecx
test ecx, ecx
jne 0x14005fe10
add eax, r8d
mov dword [0x1401cbd80], eax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov r15d, r14d
lea rcx, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov r8d, dword [0x1401cbd80]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 7
jne 0x14005fed0
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x63
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400d0cc8
mov rcx, rax
call fcn.1400d272c
nop word [rax + rax]
mov dword [rsp + 0x70], 0x7ffe
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x7ffe
or eax, ecx
jge 0x14005ff00
mov edx, 0x7ffe
lea rcx, [rsp + 0x58]
call fcn.1400023b0
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 0xc], 0x7ffe
jl 0x1400601a1
mov dword [rbx - 0x10], 0x7ffe
mov word [rbx + 0xfffc], r14w
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x70]
mov r8, rbx
mov edx, r15d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r12d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400d226c
test eax, eax
js 0x140060196
cmp eax, dword [rbx - 0xc]
jg 0x140060196
mov dword [rbx - 0x10], eax
movsxd rcx, eax
mov word [rbx + rcx*2], r14w
call fcn.140056cd0
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x60]
call fcn.14001c930
nop
or edi, 1
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14005ffb9
cmp dword [rbx - 0x10], 0
jl 0x14005ffb9
mov rcx, rbx
call fcn.1400d243c
test rax, rax
je 0x14005ffb9
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140060041
call fcn.140059a00
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.14001c930
nop
or edi, 2
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14005fffd
cmp dword [rbx - 0x10], 0
jl 0x14005fffd
mov rcx, rbx
call fcn.1400d243c
test rax, rax
je 0x14005fffd
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140060041
call fcn.140054eb0
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.14001c930
nop
or edi, 4
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x140060046
cmp dword [rbx - 0x10], 0
jl 0x140060046
mov rcx, rbx
call fcn.1400d243c
test rax, rax
je 0x140060046
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140060046
mov r14b, 1
jmp 0x140060049
xor r14b, r14b
test dil, 4
je 0x140060077
and edi, 0xfffffffb
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14006006e
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 0x1400600a5
and edi, 0xfffffffd
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14006009c
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, 1
je 0x1400600d3
and edi, 0xfffffffe
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400600ca
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 r14b, r14b
je 0x1400600ee
xor r14d, r14d
mov r15d, r14d
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1400600f4
inc r15d
xor r14d, r14d
test r12d, r12d
je 0x14005fed0
test r13b, r13b
je 0x140060158
call fcn.1400549c0
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x50]
call fcn.14001c930
nop
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140060153
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140060179
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140060192
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400601ac
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.1400d1680
lea r11, [rsp + 0x5d0]
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