Function at 0x14002a820
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x520], rbx
mov rax, qword [0x14005b740]
xor rax, rsp
mov qword [rbp + 0x3c8], rax
mov r8, rdx
mov rbx, rcx
xor r12d, r12d
mov qword [rbp + 0x3b8], r12
mov dword [rbp + 0x3b0], r12d
mov word [rbp - 0x50], r12w
mov qword [rsp + 0x20], rdx
mov byte [rbp + 0x3c0], r12b
xor eax, eax
mov dword [rbp + 0x3c1], eax
mov byte [rbp + 0x3c5], al
lea rcx, [rbp + 0x3c0]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], al
jne 0x14002a8a0
movzx eax, word [0x140054a20]
mov word [rcx], ax
lea rdx, [rbp + 0x3c0]
dec rdx
nop dword [rax]
lea rdx, [rdx + 1]
cmp byte [rdx], 0
jne 0x14002a8c0
movzx eax, word [0x140054a24]
mov word [rdx], ax
lea rdx, [rbp + 0x3c0]
mov rcx, r8
call fcn.14002cb68
mov qword [rbp + 0x3b8], rax
test rax, rax
je 0x14002a911
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x50]
call fcn.140031054
mov dword [rbp + 0x3b0], 1
jmp 0x14002a924
call fcn.14002d584
cmp dword [rax], 0
je 0x14002a924
or r12d, 0xffffffff
jmp 0x14002adc7
mov rdi, qword [rbp + 0x3b8]
test rdi, rdi
jne 0x14002a935
mov r14, r12
jmp 0x14002a978
mov rcx, rdi
call fcn.14002fd54
mov esi, eax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rbp + 0x3b8]
call fcn.140030a58
mov rcx, qword [rbp + 0x3b8]
call fcn.14002fd54
movsxd r14, eax
xor r8d, r8d
mov edx, esi
mov rcx, qword [rbp + 0x3b8]
call fcn.140030a58
mov rdi, qword [rbp + 0x3b8]
mov esi, r14d
imul esi, esi, 0xf
mov dword [rbp + 0x3c0], esi
movsxd r15, esi
mov rcx, r15
call fcn.14002b4c4
mov qword [rbx + 0x18], rax
test rdi, rdi
je 0x14002aa01
test byte [rbp + 0x3b0], 1
je 0x14002a9dc
movsxd r8, r14d
mov r9, rdi
mov edx, 1
mov rcx, rax
call fcn.14002e0c4
cmp eax, r14d
je 0x14002a9d5
mov rcx, qword [rbp + 0x3b8]
call fcn.14002eac4
test eax, eax
jne 0x14002a9d5
mov rcx, qword [rbp + 0x3b8]
call fcn.14002eaec
mov rdi, qword [rbp + 0x3b8]
test rdi, rdi
je 0x14002aa01
mov rcx, rdi
call fcn.14002dd78
mov rcx, qword [rbp + 0x3b8]
call fcn.14002ce10
mov qword [rbp + 0x3b8], r12
mov word [rbp - 0x50], r12w
mov r9, r12
movsxd rdi, r14d
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x14002aa4c
mov r10d, eax
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
movzx r8d, byte [r9 + rdx]
mov rax, rdi
sub rax, r9
movzx eax, byte [rax + rdx - 1]
mov byte [r9 + rdx], al
mov rax, qword [rbx + 0x18]
sub rax, r9
mov byte [rax + rdi - 1], r8b
inc r9
dec r10
jne 0x14002aa20
mov rcx, r15
call fcn.14002b4c4
mov r15, rax
mov qword [rsp + 0x20], rax
mov r9, r12
test r14d, r14d
jle 0x14002ab09
mov r10d, r12d
nop dword [rax + rax]
mov rax, qword [rbx + 0x18]
movzx edx, byte [r9 + rax]
movzx r8d, dl
shr r8b, 1
and r8b, 0x10
movzx eax, dl
and al, 0x40
or r8b, al
shr r8b, 1
movzx eax, dl
and al, 0x87
or r8b, al
shr r8b, 1
movzx eax, dl
and al, 8
or r8b, al
shr r8b, 2
movzx ecx, dl
and cl, 0xfc
add cl, cl
movzx eax, dl
and al, 2
or cl, al
add cl, cl
movzx eax, dl
and al, 1
or cl, al
add cl, cl
and dl, 0x10
or cl, dl
shl cl, 2
or r8b, cl
mov eax, 0x2110ca87
imul r10d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x3df
mov eax, r10d
sub eax, edx
not r8b
xor r8b, al
xor r8b, 0xad
mov byte [r9 + r15], r8b
add r10d, 0x3d1
inc r9
cmp r9, rdi
jl 0x14002aa70
mov rdi, qword [rbx + 0x18]
xor edx, edx
lea r8d, [rdx + 0x58]
lea rcx, [rsp + 0x40]
call fcn.140032380
mov eax, r14d
or eax, esi
cmp eax, 0xffffffff
ja 0x14002abf5
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], esi
mov qword [rbp - 0x78], r12
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x5c], r12d
mov dword [rbp - 0x70], r12d
mov r9, qword [rsp + 0x70]
lea rax, [0x140019680]
test r9, r9
cmove r9, rax
mov qword [rsp + 0x70], r9
mov rax, qword [rsp + 0x78]
lea rcx, [0x140019690]
test rax, rax
cmove rax, rcx
mov qword [rsp + 0x78], rax
mov edx, 1
mov r8d, 0xab10
mov rcx, qword [rbp - 0x80]
call r9
test rax, rax
je 0x14002abf5
mov qword [rsp + 0x68], rax
mov dword [rax], r12d
mov qword [rax + 0x2af8], r12
mov dword [rax + 0xab0c], 1
mov qword [rax + 0x2b00], 1
mov dword [rax + 0x2b08], 0xf
lea rcx, [rsp + 0x40]
call fcn.1400196a0
mov rdx, qword [rsp + 0x68]
cmp eax, 1
jne 0x14002abe8
mov esi, dword [rsp + 0x5c]
mov dword [rbp + 0x3c0], esi
test rdx, rdx
je 0x14002abf5
mov rcx, qword [rbp - 0x80]
call qword [rsp + 0x78]
mov r15d, r12d
test esi, esi
jle 0x14002adb3
mov rsi, qword [rbx + 0x18]
movsxd rax, r15d
movsxd r14, dword [rax + rsi]
mov dword [rsp + 0x28], r14d
add r15d, 4
movsxd rax, r15d
mov ecx, dword [rax + rsi]
mov dword [rsp + 0x2c], ecx
add r15d, 4
mov rcx, r14
call fcn.14002b4c4
mov r13, rax
mov qword [rsp + 0x30], rax
movsxd rdx, r15d
add rdx, rsi
mov r8, r14
mov rcx, rax
call fcn.14002afa0
add r15d, r14d
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x28]
cmp rax, rcx
jae 0x14002ad05
mov r8, qword [rbx]
lea rax, [rsp + 0x28]
cmp r8, rax
ja 0x14002ad05
lea rdi, [rsp + 0x28]
sub rdi, r8
mov rdx, qword [rbx + 0x10]
cmp rcx, rdx
jne 0x14002acde
mov rax, rdx
sub rax, rcx
sar rax, 4
cmp rax, 1
jae 0x14002acde
sub rcx, r8
sar rcx, 4
movabs r10, 0xfffffffffffffff
mov rax, r10
sub rax, rcx
cmp rax, 1
jb 0x14002ad99
lea r9, [rcx + 1]
sub rdx, r8
sar rdx, 4
mov rcx, rdx
shr rcx, 1
mov rax, r10
sub rax, rcx
cmp rax, rdx
jae 0x14002accc
mov rdx, r12
jmp 0x14002accf
add rdx, rcx
cmp rdx, r9
cmovb rdx, r9
mov rcx, rbx
call fcn.14002ae20
and rdi, 0xfffffffffffffff0
add rdi, qword [rbx]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002ad86
mov rax, qword [rdi]
mov qword [rcx], rax
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x14002ad86
mov rdx, qword [rbx + 0x10]
cmp rcx, rdx
jne 0x14002ad71
mov rax, rdx
sub rax, rcx
sar rax, 4
cmp rax, 1
jae 0x14002ad71
mov r8, qword [rbx]
sub rcx, r8
sar rcx, 4
movabs r10, 0xfffffffffffffff
mov rax, r10
sub rax, rcx
cmp rax, 1
jb 0x14002ada6
lea r9, [rcx + 1]
sub rdx, r8
sar rdx, 4
mov rcx, rdx
shr rcx, 1
mov rax, r10
sub rax, rcx
cmp rax, rdx
jae 0x14002ad5f
mov rdx, r12
jmp 0x14002ad62
add rdx, rcx
cmp rdx, r9
cmovb rdx, r9
mov rcx, rbx
call fcn.14002ae20
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002ad86
mov rax, qword [rsp + 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], r13
add qword [rbx + 8], 0x10
cmp r15d, dword [rbp + 0x3c0]
jge 0x14002adb3
jmp 0x14002ac00
lea rcx, str.vector_T__too_long
call fcn.140041c9c
int3
lea rcx, str.vector_T__too_long
call fcn.140041c9c
int3
mov rcx, qword [rbx + 0x18]
call fcn.14002b484
mov rcx, qword [rsp + 0x20]
call fcn.14002b484
nop
mov rcx, qword [rbp + 0x3b8]
test rcx, rcx
je 0x14002ade4
call fcn.14002dd78
mov rcx, qword [rbp + 0x3b8]
call fcn.14002ce10
mov eax, r12d
mov rcx, qword [rbp + 0x3c8]
xor rcx, rsp
call fcn.14002aed0
mov rbx, qword [rsp + 0x520]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret