Function at 0x140057150
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 - 0x5e80]
mov eax, 0x5f80
call fcn.1400ccc90
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x5fb8], rbx
mov qword [rsp + 0x5fc0], rsi
mov qword [rsp + 0x5fc8], rdi
mov rax, qword [0x1401ace90]
xor rax, rsp
mov qword [rbp + 0x5e70], rax
movzx r13d, dl
mov r14, rcx
xor r15d, r15d
mov edi, r15d
mov dword [rsp + 0x50], r15d
mov r8d, dword [0x1401b4d80]
lea r9d, [r8 + 2]
lea eax, [r8 + 1]
imul r9d, eax
imul r9d, r8d
mov eax, 0x88888889
imul r9d
add edx, r9d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub r9d, edx
cmp r9d, 4
jne 0x140057261
mov word [rbp - 0x20], r15w
xor edx, edx
mov r8d, 0x5e86
lea rcx, [rbp - 0x1e]
call fcn.1400cd020
mov r10d, r15d
mov r9d, r15d
mov rax, r15
nop dword [rax]
test r10, r10
je 0x14005723b
test rax, rax
je 0x14005723b
lea rcx, [r9 + rax]
lea r8, [rbp - 0x20]
lea r8, [r8 + rcx*2]
lea rcx, [r9 + rax]
movzx edx, word [rsp + rcx*2 + 4]
inc dx
add dx, word [r8 - 2]
mov word [r8], dx
inc rax
cmp rax, 0x6e
jl 0x140057210
inc r10
add r9, 0x6e
cmp r9, 0x2f44
jl 0x140057206
movsx eax, word [rbp + 0x5e66]
mov dword [0x1401b4d80], eax
lea rax, [r14 + 0x130]
mov qword [rbp - 0x78], rax
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [r14 + 0x160]
call fcn.140058540
lea rcx, [r14 + 0x170]
call fcn.140058540
mov dl, 1
mov rcx, r14
call fcn.140057dc0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, 0x5c
mov rcx, qword [r14 + 0x1b0]
call fcn.1400ca4c8
or esi, 0xffffffff
test rax, rax
jne 0x1400572c3
mov eax, esi
jmp 0x1400572cd
sub rax, qword [r14 + 0x1b0]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x68]
lea rcx, [r14 + 0x1b0]
call fcn.140025d50
nop
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [r14 + 0x1b0]
mov rcx, qword [r14 + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r8d, dword [0x1401b4d80]
test eax, eax
je 0x1400574fd
mov ecx, r8d
imul ecx, r8d
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0x16
jne 0x1400573de
mov edx, r15d
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, r8d
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
add r8d, eax
inc edx
cmp edx, 0x100
jl 0x140057344
mov dword [0x1401b4d80], r8d
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r14 + 0x1b0]
mov rcx, qword [r14 + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400574c5
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.14004c490
mov rbx, rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x78], rax
lea rcx, str._k_f_
mov rdx, qword [str._k_f_]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x78], rax
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x80], rax
lea rdx, str.error_in_clearRegKeysOfInject:
lea rcx, [rsp + 0x78]
call fcn.140003500
cmp qword [rbx + 0x18], 0x10
jb 0x14005748e
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140003500
lea r8, [0x14013e604]
lea rdx, [0x14013e608]
lea rcx, [rsp + 0x78]
call fcn.14000f190
nop
lea rdx, [0x140177a50]
lea rcx, [rsp + 0x78]
call fcn.1400cfab8
nop
mov r8d, dword [0x1401b4d80]
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, 0xd
jne 0x1400574fd
call fcn.1400c84d4
mov r8d, eax
mov dword [0x1401b4d80], eax
test r13b, r13b
je 0x14005754a
lea r8, str._ver
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.140019ad0
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 0x14005753f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, dword [0x1401b4d80]
mov edi, dword [rsp + 0x50]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0x10
jne 0x140057584
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov r14d, r15d
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
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 0x1400575e0
mov edx, 0x7ffe
lea rcx, [rsp + 0x58]
call fcn.1400024c0
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 0xc], 0x7ffe
jl 0x140057881
mov dword [rbx - 0x10], 0x7ffe
mov word [rbx + 0xfffc], r15w
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x70]
mov r8, rbx
mov edx, r14d
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.1400c8708
test eax, eax
js 0x140057876
cmp eax, dword [rbx - 0xc]
jg 0x140057876
mov dword [rbx - 0x10], eax
movsxd rcx, eax
mov word [rbx + rcx*2], r15w
call fcn.14004ed90
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x60]
call fcn.140019ad0
nop
or edi, 1
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x140057699
cmp dword [rbx - 0x10], 0
jl 0x140057699
mov rcx, rbx
call fcn.1400c88d8
test rax, rax
je 0x140057699
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140057721
call fcn.1400512d0
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140019ad0
nop
or edi, 2
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x1400576dd
cmp dword [rbx - 0x10], 0
jl 0x1400576dd
mov rcx, rbx
call fcn.1400c88d8
test rax, rax
je 0x1400576dd
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140057721
call fcn.14004d200
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140019ad0
nop
or edi, 4
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x140057726
cmp dword [rbx - 0x10], 0
jl 0x140057726
mov rcx, rbx
call fcn.1400c88d8
test rax, rax
je 0x140057726
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140057726
mov r15b, 1
jmp 0x140057729
xor r15b, r15b
test dil, 4
je 0x140057757
and edi, 0xfffffffb
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005774e
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 0x140057785
and edi, 0xfffffffd
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005777c
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 0x1400577b3
and edi, 0xfffffffe
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400577aa
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 r15b, r15b
je 0x1400577ce
xor r15d, r15d
mov r14d, r15d
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1400577d4
inc r14d
xor r15d, r15d
test r12d, r12d
je 0x1400575b0
test r13b, r13b
je 0x140057838
call fcn.14004cf20
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x50]
call fcn.140019ad0
nop
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
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 0x140057833
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 0x140057859
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 0x140057872
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14005788c
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x5e70]
xor rcx, rsp
call fcn.1400c7be0
lea r11, [rsp + 0x5f80]
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