Function at 0x14001db50
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r8
push rbp
push rdi
push r14
lea rbp, [rax - 0x38]
sub rsp, 0x120
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov r14, r9
mov rdi, rcx
mov rbx, qword [0x140041c68]
test rbx, rbx
je 0x14001ddc1
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 0x14001dbe1
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 0x14001dde5
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 ebx, ebx
cmp dword [0x140041010], 2
jl 0x14001dd5d
movdqa xmm5, xmmword [0x14003b400]
movdqa xmm4, xmmword [0x14003b4a0]
movdqa xmm6, xmmword [0x14003b440]
movdqa xmm7, xmmword [0x14003b480]
lea rcx, [rsp + 0x78]
movd xmm2, ebx
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, [rbx + 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 ebx, 8
mov eax, ebx
lea rcx, [rcx + 0x10]
cmp ebx, 0x20
jl 0x14001dc71
cmp eax, 0x25
jge 0x14001dd9f
movsxd rax, ebx
lea r8, [rsp + 0x78]
lea r8, [r8 + rax*2]
nop dword [rax]
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, bx
sub ax, cx
add ax, 0x39
xor word [r8], ax
inc ebx
lea r8, [r8 + 2]
cmp ebx, 0x25
jl 0x14001dd70
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]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r14
pop rdi
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 0x14001de3a
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 rsi, rax
test rax, rax
jne 0x14001dff9
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 ebx, ebx
cmp dword [0x140041010], 2
jl 0x14001dfac
movdqa xmm5, xmmword [0x14003b400]
movdqa xmm4, xmmword [0x14003b4a0]
movdqa xmm6, xmmword [0x14003b440]
movdqa xmm7, xmmword [0x14003b480]
lea rcx, [rsp + 0x78]
nop dword [rax + rax]
movd xmm2, ebx
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, [rbx + 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 ebx, 8
mov eax, ebx
lea rcx, [rcx + 0x10]
cmp ebx, 0x20
jl 0x14001dec0
cmp eax, 0x22
jge 0x14001dfef
movsxd rax, ebx
lea r8, [rsp + 0x78]
lea r8, [r8 + rax*2]
nop dword [rax + rax]
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, bx
sub ax, cx
add ax, 0x39
xor word [r8], ax
inc ebx
lea r8, [r8 + 2]
cmp ebx, 0x22
jl 0x14001dfc0
lea rdx, [rsp + 0x78]
jmp 0x14001dda4
mov word [rsp + 0x58], 0xb848
mov word [rsp + 0x62], 0xe0ff
mov qword [rsp + 0x5a], rbx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140041c88], eax
jle 0x14001e137
lea rcx, [0x140041c88]
call fcn.14002c278
cmp dword [0x140041c88], 0xffffffff
jne 0x14001e137
movsd xmm0, qword [str.wNzXY]
movsd qword [rsp + 0x40], xmm0
movzx eax, word [0x14002fa40]
mov word [rsp + 0x48], ax
cmp byte [0x14002fa41], 0
je 0x14001e09a
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 0x14001e0b6
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.140002e80
nop
lea r8, [rsp + 0x78]
mov rdx, qword [0x140041b80]
mov rcx, rdi
call fcn.14000bfe0
mov qword [0x140041cd8], rax
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x14001e12b
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e125
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001e125
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002c18c
nop
lea rcx, [0x140041c88]
call fcn.14002c20c
mov rax, qword [0x140041cd8]
xor ebx, ebx
test rax, rax
jne 0x14001e2f9
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 0x14001e2ac
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, ebx
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, [rbx + 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 ebx, 8
mov eax, ebx
lea rcx, [rcx + 0x10]
cmp ebx, 0x20
jl 0x14001e1c0
cmp eax, 0x23
jge 0x14001e2ef
movsxd rax, ebx
lea r8, [rsp + 0x78]
lea r8, [r8 + rax*2]
nop dword [rax + rax]
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, bx
sub ax, cx
add ax, 0x39
xor word [r8], ax
inc ebx
lea r8, [r8 + 2]
cmp ebx, 0x23
jl 0x14001e2c0
lea rdx, [rsp + 0x78]
jmp 0x14001dda4
mov qword [rbp - 0x80], rbx
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], ebx
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, 0x28
lea r8, [rsp + 0x78]
mov edx, 0x80862007
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14001ddc1
movzx eax, byte [rsp + 0x58]
cmp byte [rsp + 0x68], al
jne 0x14001e559
movzx eax, byte [rsp + 0x59]
cmp byte [rsp + 0x69], al
jne 0x14001e559
movzx eax, byte [rsp + 0x62]
cmp byte [rsp + 0x72], al
jne 0x14001e559
movzx eax, byte [rsp + 0x63]
cmp byte [rsp + 0x73], al
jne 0x14001e559
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 0x14001e50f
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, ebx
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, [rbx + 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 ebx, 8
lea rcx, [rcx + 0x10]
cmp ebx, 0x40
jl 0x14001e420
lea rdx, [rsp + 0x78]
jmp 0x14001dda4
lea r8, [rsp + 0x78]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, bx
sub ax, cx
add ax, 0x39
xor word [r8], ax
inc ebx
lea r8, [r8 + 2]
cmp ebx, 0x40
jl 0x14001e520
lea rdx, [rsp + 0x78]
jmp 0x14001dda4
lea r8, [rsp + 0x58]
mov rdx, qword [0x140041cd8]
mov rcx, rdi
call fcn.140007c30
test al, al
je 0x14001ddc1
mov rcx, r14
call rsi
lea r8, [rsp + 0x68]
mov rdx, qword [0x140041cd8]
mov rcx, rdi
call fcn.140007c30
jmp 0x14001ddc3