Function at 0x140040228
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140081ee0]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor r8d, r8d
mov r10d, 0x11b
lea edx, [r8 + 1]
movsxd rax, r8d
mov byte [rbp + rax], dl
lea eax, [r8 + 0xff]
movsxd rcx, eax
movsxd rax, edx
mov byte [rbp + rcx], dl
mov byte [rsp + rax], r8b
mov eax, edx
and al, 0x80
inc r8d
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
and ecx, r10d
xor ecx, eax
xor edx, ecx
cmp edx, 1
jne 0x140040257
xor r8d, r8d
lea r9, [0x140097aa0]
mov eax, edx
mov byte [r9], dl
and al, 0x80
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
inc r8d
and ecx, r10d
inc r9
mov edx, ecx
xor edx, eax
movsxd rax, r8d
cmp rax, 0x1e
jb 0x140040297
xor r10d, r10d
lea r11, [0x140000000]
xor r8d, r8d
test r10b, r10b
je 0x1400402e5
movzx eax, r10b
movzx ecx, byte [rsp + rax]
mov eax, 0xff
sub eax, ecx
cdqe
movzx ecx, byte [rbp + rax]
jmp 0x1400402e7
xor ecx, ecx
lea eax, [rcx + rcx]
xor eax, ecx
add eax, eax
xor eax, ecx
add eax, eax
xor eax, ecx
add eax, eax
xor ecx, eax
mov edx, ecx
xor edx, 0x6300
sar edx, 8
xor edx, ecx
mov byte [r8 + r11 + 0x978a0], dl
mov byte [r11 + r8*4 + 0x986c1], dl
mov byte [r11 + r8*4 + 0x986c0], dl
mov byte [r11 + r8*4 + 0x982c3], dl
mov byte [r11 + r8*4 + 0x982c0], dl
mov byte [r11 + r8*4 + 0x97ec3], dl
mov byte [r11 + r8*4 + 0x97ec2], dl
mov byte [r11 + r8*4 + 0x97ac2], dl
mov byte [r11 + r8*4 + 0x97ac1], dl
test dl, dl
je 0x140040364
movzx eax, dl
movzx eax, byte [rsp + rax]
add eax, 0x19
cdqe
movzx ecx, byte [rbp + rax]
jmp 0x140040366
xor ecx, ecx
mov byte [r11 + r8*4 + 0x986c3], cl
mov byte [r11 + r8*4 + 0x982c2], cl
mov byte [r11 + r8*4 + 0x97ec1], cl
mov byte [r11 + r8*4 + 0x97ac0], cl
test dl, dl
je 0x14004039c
movzx eax, dl
movzx eax, byte [rsp + rax]
inc eax
cdqe
movzx ecx, byte [rbp + rax]
jmp 0x14004039e
xor ecx, ecx
mov byte [r11 + r8*4 + 0x986c2], cl
mov byte [r11 + r8*4 + 0x982c1], cl
mov byte [r11 + r8*4 + 0x97ec0], cl
mov byte [r11 + r8*4 + 0x97ac3], cl
movzx r9d, r10b
mov eax, r9d
shl eax, 3
xor eax, r9d
shl eax, 2
xor eax, r9d
add eax, eax
mov ecx, eax
sar ecx, 8
xor cl, al
xor cl, 5
je 0x140040416
mov edx, r9d
shl edx, 3
xor edx, r9d
shl edx, 2
xor edx, r9d
add edx, edx
mov eax, edx
sar eax, 8
movzx ecx, al
movzx eax, dl
xor rcx, rax
xor rcx, 5
movzx eax, byte [rsp + rcx]
mov ecx, 0xff
sub ecx, eax
movsxd rax, ecx
mov dl, byte [rbp + rax]
jmp 0x140040418
xor dl, dl
mov byte [r8 + r11 + 0x979a0], dl
test dl, dl
je 0x140040438
movzx eax, dl
movzx eax, byte [rsp + rax]
add eax, 0x68
cdqe
movzx r9d, byte [rbp + rax]
jmp 0x14004043b
xor r9d, r9d
movzx ecx, dl
mov byte [r11 + r8*4 + 0x996c2], r9b
mov byte [r11 + r8*4 + 0x992c1], r9b
mov byte [r11 + r8*4 + 0x98ec0], r9b
mov byte [r11 + rcx*4 + 0x9a6c2], r9b
mov byte [r11 + rcx*4 + 0x9a2c1], r9b
mov byte [r11 + rcx*4 + 0x99ec0], r9b
mov byte [r11 + rcx*4 + 0x99ac3], r9b
mov byte [r11 + r8*4 + 0x98ac3], r9b
test dl, dl
je 0x140040495
movzx eax, byte [rsp + rcx]
add eax, 0xc7
cdqe
movzx r9d, byte [rbp + rax]
jmp 0x140040498
xor r9d, r9d
mov byte [r11 + r8*4 + 0x996c0], r9b
mov byte [r11 + r8*4 + 0x992c3], r9b
mov byte [r11 + r8*4 + 0x98ec2], r9b
mov byte [r11 + r8*4 + 0x98ac1], r9b
mov byte [r11 + rcx*4 + 0x9a6c0], r9b
mov byte [r11 + rcx*4 + 0x9a2c3], r9b
mov byte [r11 + rcx*4 + 0x99ec2], r9b
mov byte [r11 + rcx*4 + 0x99ac1], r9b
test dl, dl
je 0x1400404ef
movzx eax, byte [rsp + rcx]
add eax, 0xee
cdqe
movzx r9d, byte [rbp + rax]
jmp 0x1400404f2
xor r9d, r9d
mov byte [r11 + r8*4 + 0x996c1], r9b
mov byte [r11 + r8*4 + 0x992c0], r9b
mov byte [r11 + r8*4 + 0x98ec3], r9b
mov byte [r11 + r8*4 + 0x98ac2], r9b
mov byte [r11 + rcx*4 + 0x9a6c1], r9b
mov byte [r11 + rcx*4 + 0x9a2c0], r9b
mov byte [r11 + rcx*4 + 0x99ec3], r9b
mov byte [r11 + rcx*4 + 0x99ac2], r9b
test dl, dl
je 0x140040548
movzx eax, byte [rsp + rcx]
add eax, 0xdf
cdqe
movzx edx, byte [rbp + rax]
jmp 0x14004054a
xor edx, edx
mov byte [r11 + r8*4 + 0x996c3], dl
inc r10d
mov byte [r11 + r8*4 + 0x992c2], dl
mov byte [r11 + r8*4 + 0x98ec1], dl
mov byte [r11 + r8*4 + 0x98ac0], dl
inc r8
mov byte [r11 + rcx*4 + 0x9a6c3], dl
mov byte [r11 + rcx*4 + 0x9a2c2], dl
mov byte [r11 + rcx*4 + 0x99ec1], dl
mov byte [r11 + rcx*4 + 0x99ac0], dl
cmp r10d, 0x100
jl 0x1400402c8
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140055f90
add rsp, 0x310
pop rbp
ret