Function at 0x140056240
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rbp + 0x37], rax
lea rcx, [0x140056220]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.14004abe0
mov r8, rax
mov qword [0x140073a80], rax
xor ebx, ebx
mov dword [rbp - 9], ebx
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], 0xf
mov qword [rbp + 0x2f], 0xf
movsd xmm0, qword [str.__DemonWareVoid]
movsd qword [rbp + 0x17], xmm0
mov ecx, dword [0x14006a2e8]
mov dword [rbp + 0x1f], ecx
movzx eax, word [0x14006a2ec]
mov word [rbp + 0x23], ax
movzx eax, byte [0x14006a2ee]
mov byte [rbp + 0x25], al
mov byte [rbp + 0x26], bl
lea rax, [rbp - 9]
mov qword [rsp + 0x48], rax
lea r9, [rbp + 0x17]
mov rdx, qword [0x140073b20]
mov rcx, r8
call fcn.14004fbf0
test rax, rax
jne 0x1400562fc
mov rcx, qword [0x140073a80]
call fcn.14004b620
mov rcx, qword [0x140073a80]
call fcn.14004b620
test al, al
jne 0x1400569d6
movups xmm0, xmmword [0x14006a500]
movups xmmword [rbp - 0x29], xmm0
mov eax, dword [0x14006a510]
mov dword [rbp - 0x19], eax
mov edi, dword [0x140073088]
cmp byte [0x14006a513], 0
je 0x1400564b0
mov r8d, ebx
cmp edi, 2
jl 0x140056475
movdqa xmm5, xmmword [0x14006a7c0]
movdqa xmm4, xmmword [0x14006a8f0]
movdqa xmm6, xmmword [0x14006a7e0]
movdqa xmm0, xmmword [str.3333333333333333]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp - 0x25]
mov edx, dword [rbp + 7]
nop
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 [0x14006a820]
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 [0x14006a820]
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, 0x10
jl 0x140056370
cmp r8d, 0x14
jge 0x1400564b0
movsxd rax, r8d
lea r9, [rbp - 0x29]
add r9, rax
nop
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x14
jl 0x140056480
lea rcx, [rbp - 0x29]
call fcn.140055aa0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [str.pPUQW_eySKR537_3ge__bGN]
movups xmmword [rbp - 0x29], xmm0
movsd xmm0, qword [0x14006a5a8]
movsd qword [rbp - 0x19], xmm0
mov eax, dword [0x14006a5b0]
mov dword [rbp - 0x11], eax
cmp byte [0x14006a5b3], 0
je 0x140056670
mov r8d, ebx
cmp edi, 2
jl 0x140056635
movdqa xmm5, xmmword [0x14006a7c0]
movdqa xmm4, xmmword [0x14006a8f0]
movdqa xmm6, xmmword [0x14006a7e0]
movdqa xmm0, xmmword [str.3333333333333333]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp - 0x25]
mov edx, dword [rbp + 7]
nop word [rax + rax]
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 [0x14006a820]
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 [0x14006a820]
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, 0x18
jl 0x140056530
cmp r8d, 0x1c
jge 0x140056670
movsxd rax, r8d
lea r9, [rbp - 0x29]
add r9, rax
nop
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x1c
jl 0x140056640
lea rcx, [rbp - 0x29]
call fcn.140055c40
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [str._CTF]
movups xmmword [rbp - 0x29], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x140056820
cmp edi, 2
jl 0x1400567df
movdqa xmm5, xmmword [0x14006a7c0]
mov edx, ebx
movdqa xmm4, xmmword [0x14006a8f0]
movdqa xmm6, xmmword [0x14006a7e0]
movdqa xmm0, xmmword [str.3333333333333333]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp - 0x25]
mov r8d, dword [rbp + 7]
nop dword [rax + rax]
movd xmm2, edx
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 [0x14006a820]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 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 [0x14006a820]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x10
jl 0x1400566e0
jmp 0x140056820
lea r9, [rbp - 0x29]
mov r8d, ebx
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, r8b
sub al, dl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x10
jl 0x1400567f0
lea rcx, [rbp - 0x29]
call fcn.140055aa0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [str.__TDCQW_exXHV_lmjOF]
movups xmmword [rbp - 0x29], xmm0
mov eax, dword [0x14006a4f8]
mov dword [rbp - 0x19], eax
cmp byte [0x14006a4fb], 0
je 0x1400569cc
cmp edi, 2
jl 0x140056990
movdqa xmm5, xmmword [0x14006a7c0]
movdqa xmm4, xmmword [0x14006a8f0]
movdqa xmm6, xmmword [0x14006a7e0]
movdqa xmm0, xmmword [str.3333333333333333]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp - 0x25]
mov edx, dword [rbp + 7]
nop word [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, 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 [0x14006a820]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 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 [0x14006a820]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x10
jl 0x140056890
cmp ebx, 0x14
jge 0x1400569cc
movsxd rax, ebx
lea r8, [rbp - 0x29]
add r8, rax
nop word [rax + rax]
mov eax, 0x51eb851f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
sub al, cl
add al, 0x33
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x14
jl 0x1400569a0
lea rcx, [rbp - 0x29]
call fcn.140055c40
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140056a14
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056a0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140056a0f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400591bc
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140058e30
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret