Function at 0x18009e940
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x180126040]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor ebx, ebx
cmp dword [0x180127da4], 0xb
jge 0x18009ec34
movups xmm0, xmmword [0x180109808]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [0x180109818]
movups xmmword [rbp + 7], xmm1
movups xmm0, xmmword [0x180109828]
movups xmmword [rbp + 0x17], xmm0
movzx eax, word [0x180109838]
mov word [rbp + 0x27], ax
movzx eax, byte [0x18010983a]
mov byte [rbp + 0x29], al
mov r8d, ebx
cmp dword [0x180126018], 2
jl 0x18009eaf7
movdqa xmm5, xmmword [0x18010fc40]
movdqa xmm4, xmmword [0x18010fdf0]
movdqa xmm6, xmmword [0x18010fc60]
movdqa xmm0, xmmword [0x18010fd40]
movdqa xmmword [rbp - 0x19], xmm0
lea rcx, [rbp - 5]
mov edx, dword [rbp - 0x19]
movd xmm2, r8d
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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010fd20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
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, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18010fd20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x30
jl 0x18009e9f2
cmp r8d, 0x33
jge 0x18009eb40
movsxd rax, r8d
lea r9, [rbp - 9]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x33
jl 0x18009eb10
mov r14d, ebx
mov rcx, qword [0x180127be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
mov rcx, qword [0x180127be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
mov edi, dword [rcx + rdi + 0x50]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x41]
call fcn.180021330
mov rcx, qword [0x180127be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
mov r10, qword [rbp - 0x39]
mov r11, qword [rbp - 0x41]
sub r10, r11
sar r10, 2
mov r9d, ebx
sub rdi, r10
je 0x18009ebeb
nop dword [rax]
mov eax, ebx
test r10, r10
je 0x18009ebd0
mov rcx, rbx
nop word [rax + rax]
mov r8d, dword [r11 + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rsi]
cmp ecx, r8d
je 0x18009ebc7
cmp r8d, 0xffffffff
jne 0x18009ebd8
inc eax
mov ecx, eax
cmp rcx, r10
jb 0x18009ebb0
test r14d, r14d
jle 0x18009ebe5
dec r14d
inc r9d
mov eax, r9d
cmp rax, rdi
jb 0x18009eba0
jmp 0x18009ebeb
mov ebx, r9d
add rbx, rsi
test r11, r11
je 0x18009edc5
mov rdx, qword [rbp - 0x31]
sub rdx, r11
and rdx, 0xfffffffffffffffc
mov rax, r11
cmp rdx, 0x1000
jb 0x18009ec27
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009ec27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r11
call fcn.1800d2cf0
jmp 0x18009edc5
lea rdx, [0x180128ee8]
lea rcx, [rbp - 0x41]
call fcn.18003ad50
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.1800a1ea0
cmp qword [rbp - 0x49], rbx
je 0x18009edc5
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rbx
mov edx, 1
lea rcx, [rbp - 0x41]
call fcn.180035990
mov rax, qword [rbp - 0x41]
mov byte [rax], 0xe8
lea rsi, [rax + 1]
mov qword [rbp - 0x39], rsi
mov rdi, qword [rbp - 0x49]
test rdi, rdi
jne 0x18009ecd7
mov rdi, rbx
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x18009edc2
mov rdx, qword [rbp - 0x31]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009edbd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009edb3
jmp 0x18009edbd
mov r11d, 0xffffffff
mov r8, rdi
mov r10, qword [rbp - 0x41]
sub r8, r10
dec r8
cmp r11d, 0xfffff800
jle 0x18009ed83
mov edx, ebx
mov r9, rsi
sub r9, r10
je 0x18009ed1e
mov rcx, r10
movzx eax, byte [rcx]
cmp al, 0xff
je 0x18009ed11
cmp byte [r8 + rcx], al
jne 0x18009ed7b
inc edx
inc rcx
movsxd rax, edx
cmp rax, r9
jb 0x18009ed04
movsxd rax, r11d
add rdi, rax
mov qword [rbp - 0x49], rdi
test r10, r10
je 0x18009ed69
mov rdx, qword [rbp - 0x31]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009ed55
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009edb3
mov rcx, r10
call fcn.1800d2cf0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rbx
test rdi, rdi
je 0x18009edc2
movsxd rbx, dword [rdi + 1]
add rbx, 5
add rbx, rdi
jmp 0x18009edc5
dec r11d
jmp 0x18009ece7
mov rdi, rbx
test r10, r10
je 0x18009edc2
mov rdx, qword [rbp - 0x31]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009edba
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009edba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1800d2cf0
mov rbx, rdi
mov qword [0x180128750], rbx
test rbx, rbx
setne al
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1800d2960
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret