Function at 0x140019290
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x18], r8
push rbp
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x120
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rbx, r9
mov r15, rdx
mov rsi, rcx
mov rdi, qword [0x140041c60]
test rdx, rdx
je 0x140019511
test rdi, rdi
je 0x140019511
movsd xmm0, qword [str.WN_PQ]
movsd qword [rsp + 0x40], xmm0
movzx eax, word [0x14002fa30]
mov word [rsp + 0x48], ax
cmp byte [0x14002fa31], 0
je 0x140019332
mov byte [rsp + 0x40], 0x6e
xor byte [rsp + 0x41], 0x3a
xor byte [rsp + 0x42], 0x3b
xor byte [rsp + 0x43], 0x3c
xor byte [rsp + 0x44], 0x3d
xor byte [rsp + 0x45], 0x3e
xor byte [rsp + 0x46], 0x3f
xor byte [rsp + 0x47], 0x40
xor byte [rsp + 0x48], 0x41
xor byte [rsp + 0x49], 0x42
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
test rax, rax
jne 0x14001953a
movups xmm0, xmmword [0x1400300b0]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [0x1400300c0]
movups xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [0x1400300d0]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [0x1400300e0]
movups xmmword [rbp - 0x58], xmm1
movsd xmm0, qword [0x1400300f0]
movsd qword [rbp - 0x48], xmm0
movzx eax, word [0x1400300f8]
mov word [rbp - 0x40], ax
xor edi, edi
cmp dword [0x140041010], 2
jl 0x1400194ae
movdqa xmm5, xmmword [0x14003b400]
movdqa xmm4, xmmword [0x14003b4a0]
movdqa xmm6, xmmword [0x14003b440]
movdqa xmm7, xmmword [0x14003b480]
lea rcx, [rsp + 0x78]
movd xmm2, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [rdi + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add edi, 8
mov eax, edi
lea rcx, [rcx + 0x10]
cmp edi, 0x20
jl 0x1400193c2
cmp eax, 0x25
jge 0x1400194ef
movsxd rax, edi
lea r8, [rsp + 0x78]
lea r8, [r8 + rax*2]
nop word [rax + rax]
mov eax, 0x94f2095
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, di
sub ax, cx
add ax, 0x39
xor word [r8], ax
inc edi
lea r8, [r8 + 2]
cmp edi, 0x25
jl 0x1400194c0
lea rdx, [rsp + 0x78]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
lea rdx, [0x140016670]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
movsd xmm0, qword [str.wNzXY]
movsd qword [rsp + 0x4a], xmm0
movzx eax, word [0x14002fa40]
mov word [rsp + 0x52], ax
cmp byte [0x14002fa41], 0
je 0x14001958f
mov byte [rsp + 0x4a], 0x4e
xor byte [rsp + 0x4b], 0x3a
xor byte [rsp + 0x4c], 0x3b
xor byte [rsp + 0x4d], 0x3c
xor byte [rsp + 0x4e], 0x3d
xor byte [rsp + 0x4f], 0x3e
xor byte [rsp + 0x50], 0x3f
xor byte [rsp + 0x51], 0x40
xor byte [rsp + 0x52], 0x41
xor byte [rsp + 0x53], 0x42
lea rdx, [rsp + 0x4a]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x140019749
movups xmm0, xmmword [0x14002fc30]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [0x14002fc40]
movups xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [0x14002fc50]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [0x14002fc60]
movups xmmword [rbp - 0x58], xmm1
mov eax, dword [0x14002fc70]
mov dword [rbp - 0x48], eax
xor edi, edi
cmp dword [0x140041010], 2
jl 0x1400196fc
movdqa xmm5, xmmword [0x14003b400]
movdqa xmm4, xmmword [0x14003b4a0]
movdqa xmm6, xmmword [0x14003b440]
movdqa xmm7, xmmword [0x14003b480]
lea rcx, [rsp + 0x78]
movd xmm2, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [rdi + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add edi, 8
mov eax, edi
lea rcx, [rcx + 0x10]
cmp edi, 0x20
jl 0x140019610
cmp eax, 0x22
jge 0x14001973f
movsxd rax, edi
lea r8, [rsp + 0x78]
lea r8, [r8 + rax*2]
nop dword [rax + rax]
mov eax, 0x94f2095
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, di
sub ax, cx
add ax, 0x39
xor word [r8], ax
inc edi
lea r8, [r8 + 2]
cmp edi, 0x22
jl 0x140019710
lea rdx, [rsp + 0x78]
jmp 0x1400194f4
mov word [rsp + 0x58], 0xb848
mov word [rsp + 0x62], 0xe0ff
mov qword [rsp + 0x5a], rdi
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140041cb8], eax
jle 0x140019887
lea rcx, [0x140041cb8]
call fcn.14002c278
cmp dword [0x140041cb8], 0xffffffff
jne 0x140019887
movsd xmm0, qword [str.wNzXY]
movsd qword [rsp + 0x40], xmm0
movzx eax, word [0x14002fa40]
mov word [rsp + 0x48], ax
cmp byte [0x14002fa41], 0
je 0x1400197ea
mov byte [rsp + 0x40], 0x4e
xor byte [rsp + 0x41], 0x3a
xor byte [rsp + 0x42], 0x3b
xor byte [rsp + 0x43], 0x3c
xor byte [rsp + 0x44], 0x3d
xor byte [rsp + 0x45], 0x3e
xor byte [rsp + 0x46], 0x3f
xor byte [rsp + 0x47], 0x40
xor byte [rsp + 0x48], 0x41
xor byte [rsp + 0x49], 0x42
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140019806
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.140002e80
nop
lea r8, [rsp + 0x78]
mov rdx, qword [0x140041b80]
mov rcx, rsi
call fcn.14000bfe0
mov qword [0x140041c70], rax
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x14001987b
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019875
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140019875
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002c18c
nop
lea rcx, [0x140041cb8]
call fcn.14002c20c
mov rax, qword [0x140041c70]
xor edi, edi
test rax, rax
jne 0x140019a49
movups xmm0, xmmword [0x140030060]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [0x140030070]
movups xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [0x140030080]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [0x140030090]
movups xmmword [rbp - 0x58], xmm1
mov eax, dword [0x1400300a0]
mov dword [rbp - 0x48], eax
movzx eax, word [0x1400300a4]
mov word [rbp - 0x44], ax
cmp dword [0x140041010], 2
jl 0x1400199fc
movdqa xmm5, xmmword [0x14003b400]
movdqa xmm4, xmmword [0x14003b4a0]
movdqa xmm6, xmmword [0x14003b440]
movdqa xmm7, xmmword [0x14003b480]
lea rcx, [rsp + 0x78]
nop dword [rax]
movd xmm2, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [rdi + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add edi, 8
mov eax, edi
lea rcx, [rcx + 0x10]
cmp edi, 0x20
jl 0x140019910
cmp eax, 0x23
jge 0x140019a3f
movsxd rax, edi
lea r8, [rsp + 0x78]
lea r8, [r8 + rax*2]
nop dword [rax + rax]
mov eax, 0x94f2095
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, di
sub ax, cx
add ax, 0x39
xor word [r8], ax
inc edi
lea r8, [r8 + 2]
cmp edi, 0x23
jl 0x140019a10
lea rdx, [rsp + 0x78]
jmp 0x1400194f4
mov qword [rbp - 0x80], rdi
mov qword [rsp + 0x78], 0x33
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 0xc
mov dword [rbp + 0x50], edi
mov qword [rsp + 0x38], rdi
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, 0x28
lea r8, [rsp + 0x78]
mov edx, 0x80862007
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140019511
movzx eax, byte [rsp + 0x58]
cmp byte [rsp + 0x68], al
jne 0x140019ca9
movzx eax, byte [rsp + 0x59]
cmp byte [rsp + 0x69], al
jne 0x140019ca9
movzx eax, byte [rsp + 0x62]
cmp byte [rsp + 0x72], al
jne 0x140019ca9
movzx eax, byte [rsp + 0x63]
cmp byte [rsp + 0x73], al
jne 0x140019ca9
movups xmm0, xmmword [0x14002fee0]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [0x14002fef0]
movups xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [0x14002ff00]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [0x14002ff10]
movups xmmword [rbp - 0x58], xmm1
movups xmm0, xmmword [0x14002ff20]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [0x14002ff30]
movups xmmword [rbp - 0x38], xmm1
movups xmm0, xmmword [0x14002ff40]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [str.NRQXM]
movups xmmword [rbp - 0x18], xmm1
cmp dword [0x140041010], 2
jl 0x140019c5f
movdqa xmm5, xmmword [0x14003b400]
movdqa xmm4, xmmword [0x14003b4a0]
movdqa xmm6, xmmword [0x14003b440]
movdqa xmm7, xmmword [0x14003b480]
lea rcx, [rsp + 0x78]
nop dword [rax]
movd xmm2, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [rdi + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add edi, 8
lea rcx, [rcx + 0x10]
cmp edi, 0x40
jl 0x140019b70
lea rdx, [rsp + 0x78]
jmp 0x1400194f4
lea r8, [rsp + 0x78]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x94f2095
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, di
sub ax, cx
add ax, 0x39
xor word [r8], ax
inc edi
lea r8, [r8 + 2]
cmp edi, 0x40
jl 0x140019c70
lea rdx, [rsp + 0x78]
jmp 0x1400194f4
lea r8, [rsp + 0x58]
mov rdx, qword [0x140041c70]
mov rcx, rsi
call fcn.140007c30
test al, al
je 0x140019511
mov r9, qword [rbp + 0x70]
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov rcx, rbx
call r14
mov qword [r15], rax
lea r8, [rsp + 0x68]
mov rdx, qword [0x140041c70]
mov rcx, rsi
call fcn.140007c30
jmp 0x140019513