Function at 0x14004ca70
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rsi, rcx
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x140129cc0]
movdqu xmmword [rsp + 0x30], xmm1
mov byte [rsp + 0x20], r15b
movzx eax, word [0x140127f54]
mov word [rbp + 0xa8], ax
cmp byte [0x140127f55], r15b
je 0x14004cade
mov byte [rbp + 0xa8], 0x72
xor byte [rbp + 0xa9], 0x37
lea r10, [rbp + 0xa8]
movups xmm3, xmmword [0x1401295c0]
movups xmmword [rsp + 0x40], xmm3
movsd xmm0, qword [0x1401295d0]
movsd qword [rsp + 0x50], xmm0
cmp byte [0x1401295d7], 0
je 0x14004cdd2
mov r8d, r15d
cmp dword [0x1401400a0], 2
jl 0x14004cd92
movdqa xmm5, xmmword [0x14012a2c0]
movdqa xmm6, xmmword [str.8888]
movdqa xmm7, xmmword [0x140129e40]
movdqa xmm2, xmmword [0x140129d30]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movdqa xmm4, xmmword [0x140129db0]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
movd eax, xmm3
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x40], xmm2
movdqa xmm2, xmmword [0x140129d50]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
movd xmm0, dword [rsp + 0x44]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
movdqa xmm3, xmmword [0x140129d60]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm7
movd xmm0, dword [rsp + 0x48]
xorps xmm3, xmm0
movd dword [rsp + 0x48], xmm3
movdqa xmm2, xmmword [0x140129d70]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
movd xmm0, dword [rsp + 0x4c]
xorps xmm2, xmm0
movd dword [rsp + 0x4c], xmm2
movdqa xmm3, xmmword [0x140129d80]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm7
movd xmm0, dword [rsp + 0x50]
xorps xmm3, xmm0
movd dword [rsp + 0x50], xmm3
movdqa xmm2, xmmword [0x140129d90]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
movd xmm0, dword [rsp + 0x54]
xorps xmm2, xmm0
movd dword [rsp + 0x54], xmm2
jmp 0x14004cdd2
lea r9, [rsp + 0x40]
nop word [rax + rax]
mov eax, 0x24924925
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x38
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x18
jl 0x14004cda0
mov rdx, r10
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rdi, rax
test rax, rax
jne 0x14004ce93
mov byte [rbp + 0xa8], al
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
lea rax, [rbp + 0xa8]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004ce10
mov r8, rbx
lea rdx, [rbp + 0xa8]
mov rcx, rsi
call fcn.14003af50
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14004ce69
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ce64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d11d
call fcn.1400f870c
mov rax, rsi
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
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
mov r8, rdi
mov edx, 0x100
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
mov r8, rdi
mov edx, 0x100
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
mov rbx, 0xffffffffffffffff
test rax, rax
je 0x14004cee9
lea rax, [rsp + 0x60]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004ced0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140078420
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
lea r14, [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
cmova r14, r8
add r14, qword [rsp + 0x30]
lea rdi, [rsp + 0x20]
cmp rdx, 0xf
cmova rdi, r8
add rdi, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
cmp rdx, 0xf
cmova rcx, r8
mov r8b, 0xa
mov rdx, rdi
call fcn.1400f8200
mov r8, rax
cmp rax, rdi
je 0x14004cf65
lea rcx, [rax + 1]
cmp rcx, rdi
je 0x14004cf65
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0xa
je 0x14004cf5d
mov byte [r8], al
inc r8
inc rcx
cmp rcx, rdi
jne 0x14004cf50
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rax, qword [rsp + 0x20]
mov r9, r8
sub r9, rax
sub r14, r8
mov rdi, qword [rsp + 0x30]
mov rax, rdi
sub rax, r9
cmp rax, r14
cmovb r14, rax
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
add rcx, r9
sub rdi, r14
mov r8, rdi
sub r8, r9
inc r8
lea rdx, [rcx + r14]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x30], rdi
lea r14, [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
cmova r14, r8
add r14, rdi
lea rax, [rsp + 0x20]
cmp rdx, 0xf
cmova rax, r8
add rdi, rax
lea rcx, [rsp + 0x20]
cmp rdx, 0xf
cmova rcx, r8
mov r8b, 0xd
mov rdx, rdi
call fcn.1400f8200
mov r8, rax
cmp rax, rdi
je 0x14004d027
lea rcx, [rax + 1]
cmp rcx, rdi
je 0x14004d027
movzx eax, byte [rcx]
cmp al, 0xd
je 0x14004d01f
mov byte [r8], al
inc r8
inc rcx
cmp rcx, rdi
jne 0x14004d012
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rax, qword [rsp + 0x20]
mov r9, r8
sub r9, rax
sub r14, r8
mov rdi, qword [rsp + 0x30]
mov rax, rdi
sub rax, r9
cmp rax, r14
cmovb r14, rax
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
add rcx, r9
sub rdi, r14
mov r8, rdi
sub r8, r9
inc r8
lea rdx, [rcx + r14]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x30], rdi
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
cmp rdi, 0xc
jae 0x14004d0b1
mov byte [rbp + 0xa8], 0
lea rax, [rbp + 0xa8]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004d0a3
jmp 0x14004ce19
lea rcx, [rdi - 0xe]
cmp rdi, rcx
jb 0x14004d124
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
add rdx, rcx
mov r8d, Ordinal_18
mov rcx, rsi
call fcn.14003af50
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14004ce69
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ce64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004ce64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140078750
int3