Function at 0x1400043f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x48]
sub rsp, 0x130
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140010040]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rbx, rcx
xor r14d, r14d
movups xmm0, xmmword [str.eh_TMK28]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [0x14000bb18]
movups xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [0x14000bb28]
movups xmmword [rsp + 0x60], xmm0
mov eax, dword [str._nIg_]
mov dword [rsp + 0x70], eax
movzx eax, byte [0x14000bb3c]
mov byte [rsp + 0x74], al
mov ecx, r14d
movdqa xmm6, xmmword [0x14000bda0]
mov edi, dword [0x140010090]
cmp edi, 2
jl 0x140004594
movdqa xmm4, xmmword [0x14000bd70]
movdqa xmm3, xmmword [0x14000bdc0]
movdqa xmm5, xmmword [0x14000bd90]
movdqa xmm0, xmmword [0x14000bdb0]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x44]
mov r8d, dword [rsp + 0x30]
nop word [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x30
jl 0x1400044b0
cmp ecx, 0x35
jge 0x1400045cc
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
sub al, dl
add al, 0x39
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x35
jl 0x1400045a0
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x1400045e7
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x28]
call fcn.140008090
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000460c
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x28]
call fcn.1400075f0
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140015f78], eax
jle 0x140004831
lea rcx, [0x140015f78]
call fcn.1400098b8
cmp dword [0x140015f78], 0xffffffff
jne 0x140004831
movsd xmm0, qword [str.wNnRQQ_]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x14000bd08]
mov dword [rsp + 0x38], eax
movzx eax, word [0x14000bd0c]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x14000bd0e]
mov byte [rsp + 0x3e], al
mov r8d, r14d
cmp edi, 2
jl 0x140004771
movdqa xmm4, xmmword [0x14000bdc0]
movdqa xmm3, xmmword [0x14000bd70]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14000bd90]
psubd xmm3, xmm0
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov eax, dword [0x14000bdb0]
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [str.wNnRQQ_]
xorps xmm3, xmm0
movd dword [rsp + 0x30], xmm3
movdqa xmm2, xmmword [0x14000bd80]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14000bd90]
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x34]
xorps xmm2, xmm1
movd dword [rsp + 0x34], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x39
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xf
jl 0x140004780
movsd xmm0, qword [str.WN_PQ]
movsd qword [rsp + 0x20], xmm0
movzx eax, word [0x14000b9a0]
mov word [rsp + 0x28], ax
cmp byte [0x14000b9a1], 0
je 0x140004805
mov byte [rsp + 0x20], 0x6e
xor byte [rsp + 0x21], 0x3a
xor byte [rsp + 0x22], 0x3b
xor byte [rsp + 0x23], 0x3c
xor byte [rsp + 0x24], 0x3d
xor byte [rsp + 0x25], 0x3e
xor byte [rsp + 0x26], 0x3f
xor byte [rsp + 0x27], 0x40
xor byte [rsp + 0x28], 0x41
xor byte [rsp + 0x29], 0x42
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140015f88], rax
lea rcx, [0x140015f78]
call fcn.14000984c
cmp qword [0x140015f88], 0
je 0x140004aae
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rdx, qword [rbp - 0x28]
lea rcx, [rbp - 8]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 8]
lea rcx, [rbp + 8]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rbp + 8]
call qword [0x140015f88]
mov esi, eax
lea rcx, [rsp + 0x40]
call fcn.1400025e0
nop
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x14000488c
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
call fcn.140008ebc
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.1400077b0
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400048c8
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x68]
call fcn.1400075f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140004940
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000493b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000493b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009bac
movdqa xmm0, xmmword [0x14000bd50]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140004996
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004991
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004991
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009bac
movdqa xmm0, xmmword [0x14000bd40]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r14w
mov rcx, rbx
call fcn.140002d00
movzx edi, al
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rcx, qword [rbp - 0x48]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rbp - 0x38]
mov qword [rsp + 0x38], rcx
call fcn.140008ebc
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400019a0
nop
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
call fcn.140009570
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x140004b1a
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x140004a5b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009bac
test esi, esi
jne 0x140004a6c
test dil, dil
je 0x140004a6c
test bl, bl
je 0x140004a6c
mov bl, 1
jmp 0x140004a6e
xor bl, bl
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140004ab0
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004aa7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004aa7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009bac
jmp 0x140004ab0
xor bl, bl
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140004aee
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ae9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ae9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009bac
movzx eax, bl
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1400097f0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
shr rbx, 0x20
lea r8, [rsp + 0x78]
mov edx, ebx
call fcn.1400023c0
int3