Function at 0x1400409e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
movzx eax, byte [rdx + 1]
mov r9, rdx
movzx r8d, byte [rdx]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 2]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 3]
movzx edx, byte [rdx + 4]
shl edx, 8
shl r8d, 8
or r8d, eax
movzx eax, byte [r9 + 5]
or edx, eax
mov dword [rsp + 0x20], r8d
shl edx, 8
movzx eax, byte [r9 + 6]
or edx, eax
movzx eax, byte [r9 + 7]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 9]
mov dword [rsp + 0x24], edx
movzx edx, byte [r9 + 8]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0xa]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0xb]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0xd]
mov dword [rsp + 0x28], edx
movzx edx, byte [r9 + 0xc]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0xe]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0xf]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x11]
mov dword [rsp + 0x2c], edx
movzx edx, byte [r9 + 0x10]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x12]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x13]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x15]
mov dword [rsp + 0x30], edx
movzx edx, byte [r9 + 0x14]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x16]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x17]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x19]
mov dword [rsp + 0x34], edx
movzx edx, byte [r9 + 0x18]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x1a]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x1b]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x1d]
mov dword [rsp + 0x38], edx
movzx edx, byte [r9 + 0x1c]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x1e]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x1f]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x21]
mov dword [rsp + 0x3c], edx
movzx edx, byte [r9 + 0x20]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x22]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x23]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x25]
mov dword [rsp + 0x40], edx
movzx edx, byte [r9 + 0x24]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x26]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x27]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x29]
mov dword [rsp + 0x44], edx
movzx edx, byte [r9 + 0x28]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x2a]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x2b]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x2d]
mov dword [rsp + 0x48], edx
movzx edx, byte [r9 + 0x2c]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x2e]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x2f]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x31]
mov dword [rsp + 0x4c], edx
movzx edx, byte [r9 + 0x30]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x32]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x33]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x35]
mov dword [rsp + 0x50], edx
movzx edx, byte [r9 + 0x34]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x36]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x37]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x39]
mov dword [rsp + 0x54], edx
movzx edx, byte [r9 + 0x38]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x3a]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x3b]
mov r13d, ntohs
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x3d]
mov dword [rsp + 0x58], edx
movzx edx, byte [r9 + 0x3c]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x3e]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 0x3f]
shl edx, 8
or edx, eax
mov dword [rsp + 0x5c], edx
nop dword [rax]
lea eax, [r13 - 0xd]
mov r9d, dword [rsp + rax*4 + 0x20]
mov edx, r9d
mov eax, r13d
ror edx, 0x12
mov r14d, dword [rsp + rax*4 + 0x20]
mov eax, r14d
ror eax, 0x11
mov r15d, r14d
ror r15d, 0x13
xor r15d, eax
mov eax, r14d
shr eax, 0xa
xor r15d, eax
mov eax, r9d
ror eax, 7
xor edx, eax
mov eax, r9d
shr eax, 3
xor edx, eax
lea eax, [r13 - 0xe]
add r15d, edx
add r15d, dword [rsp + rax*4 + 0x20]
lea eax, [r13 - 5]
add r15d, dword [rsp + rax*4 + 0x20]
lea eax, [r13 + 2]
mov dword [rsp + rax*4 + 0x20], r15d
lea eax, [r13 - 0xc]
mov r10d, dword [rsp + rax*4 + 0x20]
lea eax, [r13 + 1]
mov esi, dword [rsp + rax*4 + 0x20]
mov edx, r10d
mov eax, esi
ror edx, 0x12
ror eax, 0x11
mov r8d, esi
ror r8d, 0x13
xor r8d, eax
mov eax, esi
shr eax, 0xa
xor r8d, eax
mov eax, r10d
ror eax, 7
xor edx, eax
mov eax, r10d
shr eax, 3
xor edx, eax
lea eax, [r13 - 4]
add r8d, edx
mov edx, r15d
ror edx, 0x13
add r8d, dword [rsp + rax*4 + 0x20]
lea eax, [r13 + 3]
add r9d, r8d
mov dword [rsp + rax*4 + 0x20], r9d
mov edi, r9d
lea eax, [r13 - 0xb]
mov r11d, dword [rsp + rax*4 + 0x20]
mov eax, r11d
ror eax, 7
mov r8d, r11d
ror r8d, 0x12
xor r8d, eax
mov eax, r11d
shr eax, 3
xor r8d, eax
mov eax, r15d
ror eax, 0x11
xor edx, eax
mov eax, r15d
shr eax, 0xa
xor edx, eax
lea eax, [r13 - 3]
add r8d, edx
add r8d, dword [rsp + rax*4 + 0x20]
lea eax, [r13 + 4]
add r10d, r8d
mov dword [rsp + rax*4 + 0x20], r10d
lea eax, [r13 - 0xa]
mov ebx, dword [rsp + rax*4 + 0x20]
ror edi, 0x13
mov eax, r9d
mov r8d, r10d
ror eax, 0x11
mov edx, ebx
xor edi, eax
ror r8d, 0x13
mov eax, ebx
ror edx, 0x12
ror eax, 7
xor edx, eax
shr r9d, 0xa
mov eax, ebx
xor edi, r9d
shr eax, 3
xor edx, eax
lea eax, [r13 - 2]
add edi, edx
add edi, dword [rsp + rax*4 + 0x20]
lea eax, [r13 + 5]
add edi, r11d
mov dword [rsp + rax*4 + 0x20], edi
lea eax, [r13 - 9]
mov r11d, dword [rsp + rax*4 + 0x20]
mov eax, r10d
ror eax, 0x11
mov edx, r11d
xor r8d, eax
shr r10d, 0xa
xor r8d, r10d
ror edx, 0x12
mov eax, r11d
mov r10d, edi
ror eax, 7
xor edx, eax
ror r10d, 0x13
mov eax, r11d
shr eax, 3
xor edx, eax
lea eax, [r13 - 1]
add r8d, edx
add r8d, dword [rsp + rax*4 + 0x20]
lea eax, [r13 + 6]
add ebx, r8d
mov dword [rsp + rax*4 + 0x20], ebx
mov edx, ebx
lea eax, [r13 - 8]
ror edx, 0x13
mov r9d, dword [rsp + rax*4 + 0x20]
mov eax, r9d
ror eax, 7
mov r8d, r9d
ror r8d, 0x12
xor r8d, eax
mov eax, r9d
shr eax, 3
xor r8d, eax
mov eax, edi
ror eax, 0x11
xor r10d, eax
shr edi, 0xa
xor r10d, edi
lea edi, [r13 + 8]
lea eax, [r14 + r8]
add r10d, eax
lea eax, [r13 + 7]
add r10d, r11d
mov dword [rsp + rax*4 + 0x20], r10d
lea eax, [r13 - 7]
mov r11d, dword [rsp + rax*4 + 0x20]
mov r8d, r11d
ror r8d, 0x12
mov eax, r11d
ror eax, 7
xor r8d, eax
mov eax, r11d
shr eax, 3
xor r8d, eax
mov eax, ebx
ror eax, 0x11
xor edx, eax
shr ebx, 0xa
lea eax, [r9 + r8]
xor edx, ebx
add edx, eax
lea eax, [r13 - 6]
mov r9d, dword [rsp + rax*4 + 0x20]
add edx, esi
mov dword [rsp + rdi*4 + 0x20], edx
mov eax, r10d
ror eax, 0x11
mov edx, r10d
ror edx, 0x13
mov r8d, r9d
xor edx, eax
ror r8d, 0x12
mov eax, r9d
shr r10d, 0xa
ror eax, 7
xor edx, r10d
xor r8d, eax
shr r9d, 3
xor r8d, r9d
lea eax, [r11 + rdx]
add r8d, eax
lea eax, [r13 + 9]
add r8d, r15d
mov r13d, edi
mov dword [rsp + rax*4 + 0x20], r8d
lea eax, [rdi + 2]
cmp eax, 0x40
jb 0x140040c80
mov eax, dword [rcx + 0xc]
lea r9, [0x140051dc0]
mov ebx, dword [rcx + 8]
mov edi, eax
mov dword [rbp + 0x70], eax
xor r13d, r13d
mov eax, dword [rcx + 0x10]
mov r10d, eax
mov dword [rbp + 0x78], eax
mov eax, dword [rcx + 0x14]
mov r11d, eax
mov dword [rsp], eax
mov eax, dword [rcx + 0x18]
mov esi, eax
mov dword [rsp + 4], eax
mov eax, dword [rcx + 0x1c]
mov r14d, eax
mov dword [rsp + 8], eax
mov eax, dword [rcx + 0x20]
mov r15d, eax
mov dword [rsp + 0xc], eax
mov eax, dword [rcx + 0x24]
mov r12d, eax
mov dword [rsp + 0x10], eax
lea ecx, [r13 + 0x10]
nop dword [rax]
mov r8d, esi
mov eax, esi
ror eax, 0xb
mov edx, esi
not edx
ror r8d, 0x19
xor r8d, eax
and edx, r15d
mov eax, esi
ror eax, 6
xor r8d, eax
mov eax, r14d
and eax, esi
xor edx, eax
mov eax, ebx
add r8d, edx
ror eax, 0xd
add r8d, dword [r9 + r13]
mov edx, ebx
add r8d, dword [rsp + r13 + 0x20]
ror edx, 0x16
add r8d, r12d
xor edx, eax
mov eax, ebx
ror eax, 2
xor edx, eax
mov eax, edi
and eax, r10d
lea r12d, [r11 + r8]
mov r11d, edi
xor r11d, r10d
and r11d, ebx
xor r11d, eax
lea eax, [r8 + rdx]
add r11d, eax
mov r8d, r12d
ror r8d, 0x19
mov eax, r12d
ror eax, 0xb
mov edx, r12d
xor r8d, eax
not edx
and edx, r14d
mov eax, r12d
ror eax, 6
xor r8d, eax
mov eax, r12d
and eax, esi
xor edx, eax
mov eax, r11d
ror eax, 0xd
add r8d, edx
add r8d, dword [r9 + r13 + 4]
mov edx, r11d
add r8d, dword [rsp + r13 + 0x24]
ror edx, 0x16
add r8d, r15d
xor edx, eax
mov eax, r11d
ror eax, 2
xor edx, eax
mov eax, edi
lea r15d, [r10 + r8]
and eax, ebx
mov r10d, edi
mov r9d, r15d
xor r10d, ebx
ror r9d, 0x19
and r10d, r11d
xor r10d, eax
lea eax, [r8 + rdx]
add r10d, eax
mov edx, r15d
mov eax, r15d
not edx
ror eax, 0xb
xor r9d, eax
mov eax, r15d
ror eax, 6
xor r9d, eax
and edx, esi
mov eax, r12d
lea r13, [r13 + 0x10]
and eax, r15d
mov r8d, r10d
xor edx, eax
ror r8d, 0x16
add r9d, edx
lea rax, [0x140051dc0]
add r9d, dword [rsp + r13 + 0x18]
add r9d, dword [rax + r13 - 8]
mov eax, r10d
ror eax, 0xd
add r9d, r14d
xor r8d, eax
mov eax, r10d
ror eax, 2
xor r8d, eax
mov eax, ebx
lea r14d, [rdi + r9]
and eax, r11d
mov edi, ebx
mov edx, r14d
xor edi, r11d
not edx
and edi, r10d
and edx, r12d
xor edi, eax
lea eax, [r9 + r8]
add edi, eax
mov r9d, r14d
ror r9d, 0x19
mov eax, r14d
ror eax, 0xb
mov r8d, edi
xor r9d, eax
ror r8d, 0x16
mov eax, r14d
ror eax, 6
xor r9d, eax
mov eax, r14d
and eax, r15d
xor edx, eax
lea rax, [0x140051dc0]
add r9d, edx
add r9d, dword [rsp + r13 + 0x1c]
add r9d, dword [rax + r13 - 4]
mov eax, edi
ror eax, 0xd
add r9d, esi
xor r8d, eax
mov eax, edi
ror eax, 2
xor r8d, eax
mov eax, r11d
lea esi, [rbx + r9]
and eax, r10d
mov ebx, r11d
xor ebx, r10d
and ebx, edi
xor ebx, eax
lea eax, [r9 + r8]
add ebx, eax
lea r9, [0x140051dc0]
sub rcx, 1
jne 0x140040f50
mov rcx, qword [rbp + 0x60]
mov eax, dword [rbp + 0x70]
add eax, edi
add dword [rcx + 8], ebx
mov rbx, qword [rsp + 0x168]
mov dword [rcx + 0xc], eax
mov eax, dword [rbp + 0x78]
add eax, r10d
mov dword [rcx + 0x10], eax
mov eax, dword [rsp]
add eax, r11d
mov dword [rcx + 0x14], eax
mov eax, dword [rsp + 4]
add eax, esi
mov dword [rcx + 0x18], eax
mov eax, dword [rsp + 8]
add eax, r14d
mov dword [rcx + 0x1c], eax
mov eax, dword [rsp + 0xc]
add eax, r15d
mov dword [rcx + 0x20], eax
mov eax, dword [rsp + 0x10]
add eax, r12d
mov dword [rcx + 0x24], eax
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret