Function at 0x140009990
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140112040]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rdi, rdx
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x60], rcx
mov rsi, qword [rdx + 0x10]
mov r14, rsi
shr r14, 4
lea r15d, [r14 + 1]
mov dword [rsp + 0x34], r15d
mov eax, r15d
shl eax, 4
movsxd rbx, eax
lea rcx, [rbx + 1]
call fcn.14009e868
mov r12, rax
mov qword [rsp + 0x50], rax
lea r8, [rbx + 1]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 0xf
jbe 0x140009a12
mov rdi, qword [rdi]
mov rcx, r12
sub rcx, rdi
nop dword [rax + rax]
movzx eax, byte [rdi]
mov byte [rcx + rdi], al
lea rdi, [rdi + 1]
test al, al
jne 0x140009a20
and esi, 0xf
mov edi, esi
mov r9d, reloc.WS2_32.dll_recv
sub r9d, esi
movd xmm0, r9d
pshufd xmm0, xmm0, 0
xor r8d, r8d
movsxd r11, r14d
test r9d, r9d
jle 0x140009aef
shl r11, 4
cmp r9d, 0x10
jb 0x140009ad1
mov ecx, r9d
and ecx, 0x8000000f
jge 0x140009a71
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, r9d
sub eax, ecx
movsxd rbx, eax
andps xmm0, xmmword [0x1400fce10]
packuswb xmm0, xmm0
packuswb xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsi + 8]
add rcx, r11
add rcx, r12
mov r10, 0xfffffffffffffff8
sub r10, r11
sub r10, rdi
sub r10, r12
mov edx, dword [rsp + 0x60]
nop dword [rax]
mov dword [rcx - 8], edx
mov dword [rcx - 4], edx
mov dword [rcx], edx
mov dword [rcx + 4], edx
add r8d, 0x10
lea rcx, [rcx + 0x10]
lea rax, [r10 + rcx]
cmp rax, rbx
jl 0x140009ab0
cmp r8d, r9d
jge 0x140009aef
movsxd rcx, r8d
add rcx, rdi
add rcx, r11
add rcx, r12
mov eax, r9d
sub eax, r8d
mov r8d, eax
movzx edx, r9b
call sub.VCRUNTIME140.dll_memset
mov eax, r15d
shl eax, 4
cdqe
mov byte [rax + r12], 0
mov eax, r15d
shl eax, 4
inc eax
movsxd rcx, eax
call fcn.14009e868
mov rsi, rax
mov qword [rsp + 0x48], rax
mov eax, r15d
shl eax, 4
inc eax
movsxd r8, eax
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
lea rax, vtable.AES.0
mov qword [rbp - 0x70], rax
xor r9b, r9b
mov byte [rbp - 0x68], r9b
mov qword [rbp + 0x35c], 0
xor r14d, r14d
xor edi, edi
mov dword [rsp + 0x20], edi
mov dword [rbp + 0x364], edi
lea rdx, [0x140285dc0]
cmp qword [0x140285dd8], 0xf
cmova rdx, qword [0x140285dc0]
lea rbx, [0x140285de0]
lea r13, [0x140000000]
cmp qword [0x140285df8], 0xf
jbe 0x140009b94
mov rbx, qword [0x140285de0]
test rbx, rbx
je 0x14000a02d
mov eax, reloc.WS2_32.dll_recv
mov dword [rbp + 0x35c], eax
mov dword [rbp + 0x360], eax
movups xmm0, xmmword [rdx]
movups xmmword [rbp + 0x368], xmm0
movsxd r8, eax
lea rcx, [rbp + 0x388]
call sub.VCRUNTIME140.dll_memcpy
mov r14d, dword [rbp + 0x360]
mov ecx, dword [rbp + 0x35c]
cmp ecx, 0x10
je 0x140009be8
mov edi, reloc.WS2_32.dll_ntohl
cmp ecx, 0x18
jne 0x140009c06
mov eax, ntohl
cmp r14d, 0x20
cmovne edi, eax
jmp 0x140009c06
cmp r14d, 0x10
jne 0x140009bf5
mov edi, 0xa
jmp 0x140009c06
mov edi, reloc.WS2_32.dll_ntohl
mov eax, ntohl
cmp r14d, 0x18
cmove edi, eax
mov dword [rbp + 0x364], edi
mov dword [rsp + 0x20], edi
mov eax, r14d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r12, eax
xor esi, esi
test edi, edi
js 0x140009c67
lea r14, [rbp - 0x64]
nop dword [rax]
test r12d, r12d
jle 0x140009c4c
mov r8, r12
shl r8, 2
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov edi, dword [rbp + 0x364]
inc esi
add r14, 0x20
cmp esi, edi
jle 0x140009c30
mov dword [rsp + 0x20], edi
mov r14d, dword [rbp + 0x360]
mov ecx, dword [rbp + 0x35c]
xor esi, esi
test edi, edi
js 0x140009cab
lea r14, [rbp + 0x17c]
test r12d, r12d
jle 0x140009c90
mov r8, r12
shl r8, 2
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov edi, dword [rbp + 0x364]
inc esi
add r14, 0x20
cmp esi, edi
jle 0x140009c74
mov dword [rsp + 0x20], edi
mov r14d, dword [rbp + 0x360]
mov ecx, dword [rbp + 0x35c]
lea esi, [rdi + 1]
imul esi, r12d
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r13, eax
lea r9, [rbp + 0x3a8]
test eax, eax
jle 0x140009d17
mov r10d, r13d
nop
movzx r8d, byte [rbx]
movzx eax, byte [rbx + 1]
movzx ecx, byte [rbx + 2]
movzx edx, byte [rbx + 3]
lea rbx, [rbx + 4]
shl r8d, 8
or r8d, eax
shl r8d, 8
or r8d, ecx
shl r8d, 8
or r8d, edx
mov dword [r9], r8d
lea r9, [r9 + 4]
sub r10, 1
jne 0x140009cd0
mov edi, dword [rbp + 0x364]
mov dword [rsp + 0x20], edi
mov r14d, dword [rbp + 0x360]
xor r11d, r11d
xor r10d, r10d
mov rbx, r13
test r13d, r13d
jle 0x140009d85
cmp r11d, esi
jge 0x140009f57
mov eax, r11d
cdq
idiv r12d
movsxd r8, eax
movsxd r9, edx
lea rcx, [r9 + r8*8]
mov eax, dword [rbp + r10*4 + 0x3a8]
mov dword [rbp + rcx*4 - 0x64], eax
mov eax, dword [rbp + 0x364]
sub eax, r8d
cdqe
lea rcx, [r9 + rax*8]
mov eax, dword [rbp + r10*4 + 0x3a8]
mov dword [rbp + rcx*4 + 0x17c], eax
inc r10
inc r11d
cmp r10, rbx
jl 0x140009d25
mov edi, dword [rbp + 0x364]
mov dword [rsp + 0x20], edi
mov r14d, dword [rbp + 0x360]
cmp r11d, esi
jge 0x140009f68
lea rdi, [0x1400f2bb0]
lea r14, [0x140000000]
nop dword [rax]
mov r10d, dword [rbp + r13*4 + 0x3a4]
movzx edx, byte [rdi]
lea rdi, [rdi + 1]
movsxd r8, r10d
mov rax, r8
sar rax, 0x10
movzx ecx, al
movsx r9d, byte [rcx + r14 + 0xf1650]
xor r9d, edx
shl r9d, 8
mov rax, r8
sar rax, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0xf1650]
xor r9d, eax
shl r9d, 8
movzx eax, r8b
movzx eax, byte [rax + r14 + 0xf1650]
xor r9d, eax
shl r9d, 8
mov eax, r10d
shr rax, 0x18
movzx eax, byte [rax + r14 + 0xf1650]
xor r9d, eax
xor dword [rbp + 0x3a8], r9d
mov ecx, 1
cmp r13d, 8
je 0x140009e50
cmp rcx, rbx
jge 0x140009efb
nop dword [rax + rax]
mov eax, dword [rbp + rcx*4 + 0x3a4]
xor dword [rbp + rcx*4 + 0x3a8], eax
inc rcx
cmp rcx, rbx
jl 0x140009e30
xor r10d, r10d
jmp 0x140009f03
mov eax, dword [rbp + rcx*4 + 0x3a4]
xor dword [rbp + rcx*4 + 0x3a8], eax
inc rcx
cmp rcx, 4
jl 0x140009e50
mov eax, dword [rbp + 0x3b4]
movsxd rdx, eax
mov ecx, eax
shr rcx, 0x18
movsx r8d, byte [rcx + r14 + 0xf1650]
shl r8d, 8
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r14 + 0xf1650]
xor r8d, eax
shl r8d, 8
mov rax, rdx
sar rax, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0xf1650]
xor r8d, eax
shl r8d, 8
movzx eax, dl
movzx eax, byte [rax + r14 + 0xf1650]
xor r8d, eax
xor dword [rbp + 0x3b8], r8d
mov ecx, 5
cmp rbx, rcx
jle 0x140009efb
nop word [rax + rax]
mov eax, dword [rbp + rcx*4 + 0x3a4]
xor dword [rbp + rcx*4 + 0x3a8], eax
inc rcx
cmp rcx, rbx
jl 0x140009ee0
xor r10d, r10d
jmp 0x140009f03
xor r10d, r10d
test r13d, r13d
jle 0x140009f4e
cmp r11d, esi
jge 0x140009f57
mov eax, r11d
cdq
idiv r12d
movsxd r8, eax
movsxd r9, edx
lea rcx, [r9 + r8*8]
mov eax, dword [rbp + r10*4 + 0x3a8]
mov dword [rbp + rcx*4 - 0x64], eax
mov eax, dword [rbp + 0x364]
sub eax, r8d
cdqe
lea rcx, [r9 + rax*8]
mov eax, dword [rbp + r10*4 + 0x3a8]
mov dword [rbp + rcx*4 + 0x17c], eax
inc r10
inc r11d
cmp r10, rbx
jl 0x140009f03
cmp r11d, esi
jl 0x140009da0
mov edi, dword [rbp + 0x364]
mov dword [rsp + 0x20], edi
mov r14d, dword [rbp + 0x360]
mov esi, 1
cmp edi, esi
jle 0x14000a010
lea rbx, [rbp + 0x19c]
nop dword [rax]
test r12d, r12d
jle 0x140009ff7
mov r10, rbx
mov r11, r12
lea rdi, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r10]
movsxd r9, eax
mov edx, eax
shr rdx, 0x18
mov rax, r9
sar rax, 8
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0xf2fd0]
xor r8d, dword [rdi + rcx*4 + 0xf1f50]
mov rax, r9
sar rax, 0x10
movzx ecx, al
xor r8d, dword [rdi + rcx*4 + 0xf1750]
movzx eax, r9b
xor r8d, dword [rdi + rax*4 + 0xf2bd0]
mov dword [r10], r8d
lea r10, [r10 + 4]
sub r11, 1
jne 0x140009fa0
mov edi, dword [rbp + 0x364]
inc esi
add rbx, 0x20
cmp esi, edi
jl 0x140009f80
mov dword [rsp + 0x20], edi
mov r14d, dword [rbp + 0x360]
mov r9b, 1
mov byte [rbp - 0x68], r9b
mov r15d, dword [rsp + 0x34]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
lea r13, [0x140000000]
mov eax, r15d
shl eax, 4
cdqe
mov qword [rsp + 0x60], rax
test r9b, r9b
je 0x14000a7d0
test rax, rax
je 0x14000a7d0
movsxd rcx, r14d
xor edx, edx
div rcx
test rdx, rdx
jne 0x14000a7d0
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], rsi
test rax, rax
je 0x14000a7d0
lea rax, [rbp + 0x388]
mov r8, r12
sub r8, rax
mov qword [rsp + 0x40], r8
lea rcx, [rbp + 0x388]
test r9b, r9b
je 0x14000a0c8
xor edx, edx
test r14d, r14d
jle 0x14000a0c8
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
inc edx
mov r14d, dword [rbp + 0x360]
cmp edx, r14d
jl 0x14000a0a0
mov edi, dword [rbp + 0x364]
mov dword [rsp + 0x20], edi
movzx r9d, byte [rbp - 0x68]
lea r8, [rbp + 0x388]
test r9b, r9b
je 0x14000a762
cmp r14d, 0x10
jne 0x14000a4bc
movzx r8d, byte [rbp + 0x388]
movzx eax, byte [rbp + 0x389]
movzx ecx, byte [rbp + 0x38a]
movzx edx, byte [rbp + 0x38b]
shl r8d, 8
or r8d, eax
shl r8d, 8
or r8d, ecx
shl r8d, 8
or r8d, edx
mov r13d, dword [rbp - 0x64]
xor r13d, r8d
mov dword [rsp + 0x24], r13d
movzx r8d, byte [rbp + 0x38c]
movzx eax, byte [rbp + 0x38d]
movzx ecx, byte [rbp + 0x38e]
movzx edx, byte [rbp + 0x38f]
shl r8d, 8
or r8d, eax
shl r8d, 8
or r8d, ecx
shl r8d, 8
or r8d, edx
mov esi, dword [rbp - 0x60]
xor esi, r8d
movzx r8d, byte [rbp + 0x390]
movzx eax, byte [rbp + 0x391]
movzx ecx, byte [rbp + 0x392]
movzx edx, byte [rbp + 0x393]
shl r8d, 8
or r8d, eax
shl r8d, 8
or r8d, ecx
shl r8d, 8
or r8d, edx
mov r15d, dword [rbp - 0x5c]
xor r15d, r8d
movzx r8d, byte [rbp + 0x394]
movzx eax, byte [rbp + 0x395]
movzx ecx, byte [rbp + 0x396]
movzx edx, byte [rbp + 0x397]
shl r8d, 8
or r8d, eax
shl r8d, 8
or r8d, ecx
shl r8d, 8
or r8d, edx
mov r12d, dword [rbp - 0x58]
xor r12d, r8d
cmp edi, 1
jle 0x14000a31d
lea r13, [rbp - 0x3c]
dec edi
mov r14d, dword [rsp + 0x24]
nop
movsxd rbx, r15d
movsxd r10, esi
movsxd r9, r12d
mov edx, r14d
shr rdx, 0x18
mov rax, r10
sar rax, 0x10
movzx ecx, al
lea r8, [0x140000000]
mov r11d, dword [r8 + rdx*4 + 0xf0e50]
xor r11d, dword [r8 + rcx*4 + 0xf0a50]
mov rax, rbx
sar rax, 8
movzx ecx, al
xor r11d, dword [r8 + rcx*4 + 0xf0650]
movzx eax, r9b
xor r11d, dword [r8 + rax*4 + 0xf1b50]
xor r11d, dword [r13 - 8]
movsxd r8, r14d
mov edx, esi
shr rdx, 0x18
mov rax, rbx
sar rax, 0x10
movzx ecx, al
lea r14, [0x140000000]
mov esi, dword [r14 + rdx*4 + 0xf0e50]
xor esi, dword [r14 + rcx*4 + 0xf0a50]
mov rax, r9
sar rax, 8
movzx ecx, al
xor esi, dword [r14 + rcx*4 + 0xf0650]
movzx eax, r8b
xor esi, dword [r14 + rax*4 + 0xf1b50]
xor esi, dword [r13 - 4]
mov edx, r15d
shr rdx, 0x18
mov rax, r8
sar rax, 8
movzx ecx, al
mov r15d, dword [r14 + rdx*4 + 0xf0e50]
xor r15d, dword [r14 + rcx*4 + 0xf0650]
sar r9, 0x10
movzx eax, r9b
xor r15d, dword [r14 + rax*4 + 0xf0a50]
movzx eax, r10b
xor r15d, dword [r14 + rax*4 + 0xf1b50]
xor r15d, dword [r13]
mov ecx, r12d
shr rcx, 0x18
sar r10, 8
movzx eax, r10b
mov r12d, dword [r14 + rcx*4 + 0xf0e50]
xor r12d, dword [r14 + rax*4 + 0xf0650]
sar r8, 0x10
movzx eax, r8b
xor r12d, dword [r14 + rax*4 + 0xf0a50]
movzx eax, bl
xor r12d, dword [r14 + rax*4 + 0xf1b50]
xor r12d, dword [r13 + 4]
mov r14d, r11d
lea r13, [r13 + 0x20]
sub rdi, 1
jne 0x14000a1e0
mov edi, dword [rsp + 0x20]
mov r14d, dword [rbp + 0x360]
mov r13d, r11d
movsxd rax, edi
shl rax, 5
lea r10, [rbp - 0x64]
add r10, rax
mov edx, dword [r10]
mov ecx, r13d
shr rcx, 0x18
mov eax, edx
sar eax, 0x18
lea r8, [0x140000000]
xor al, byte [rcx + r8 + 0xf1650]
mov rdi, qword [rsp + 0x28]
mov byte [rdi], al
movsxd rbx, esi
mov rax, rbx
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r8 + 0xf1650]
mov byte [rdi + 1], al
movsxd r11, r15d
mov rax, r11
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r8 + 0xf1650]
mov byte [rdi + 2], al
movsxd r9, r12d
movzx eax, r9b
xor dl, byte [rax + r8 + 0xf1650]
mov byte [rdi + 3], dl
mov edx, dword [r10 + 4]
mov ecx, esi
shr rcx, 0x18
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r8 + 0xf1650]
mov byte [rdi + 4], al
mov rax, r11
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r8 + 0xf1650]
mov byte [rdi + 5], al
mov rax, r9
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r8 + 0xf1650]
mov byte [rdi + 6], al
movsxd r8, r13d
movzx eax, r8b
lea r13, [0x140000000]
xor dl, byte [rax + r13 + 0xf1650]
mov byte [rdi + 7], dl
mov edx, dword [r10 + 8]
mov ecx, r15d
shr rcx, 0x18
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r13 + 0xf1650]
mov byte [rdi + 8], al
sar r9, 0x10
movzx ecx, r9b
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r13 + 0xf1650]
mov byte [rdi + 9], al
mov rax, r8
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r13 + 0xf1650]
mov byte [rdi + 0xa], al
movzx eax, bl
xor dl, byte [rax + r13 + 0xf1650]
mov byte [rdi + 0xb], dl
mov edx, dword [r10 + 0xc]
mov ecx, r12d
shr rcx, 0x18
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r13 + 0xf1650]
mov byte [rdi + 0xc], al
sar r8, 0x10
movzx ecx, r8b
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r13 + 0xf1650]
mov byte [rdi + 0xd], al
sar rbx, 8
movzx ecx, bl
mov eax, edx
sar eax, 8
xor al, byte [rcx + r13 + 0xf1650]
mov byte [rdi + 0xe], al
movzx eax, r11b
xor dl, byte [rax + r13 + 0xf1650]
mov byte [rdi + 0xf], dl
jmp 0x14000a767
mov eax, r14d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rbx, eax
xor eax, eax
cmp ebx, 4
je 0x14000a4db
cmp ebx, 6
setne al
inc rax
shl rax, 5
mov r12d, dword [rax + r13 + 0xf2b58]
mov dword [rsp + 0x20], r12d
mov r15d, dword [rax + r13 + 0xf2b60]
mov r11d, dword [rax + r13 + 0xf2b68]
mov dword [rsp + 0x24], r11d
lea r9, [rbp + 0x3e8]
xor r10d, r10d
test ebx, ebx
jle 0x14000a562
nop
movzx eax, byte [r8]
shl eax, 0x18
mov dword [r9], eax
movzx ecx, byte [r8 + 1]
shl ecx, 0x10
or ecx, eax
mov dword [r9], ecx
movzx edx, byte [r8 + 2]
shl edx, 8
or edx, ecx
mov dword [r9], edx
movzx eax, byte [r8 + 3]
lea r8, [r8 + 4]
mov rcx, r9
add r9, 4
or edx, eax
xor edx, dword [rbp + r10*4 - 0x64]
mov dword [rcx], edx
inc r10
cmp r10, rbx
jl 0x14000a510
mov edi, dword [rbp + 0x364]
mov r14d, dword [rbp + 0x360]
mov r13d, 1
cmp edi, r13d
jle 0x14000a688
lea eax, [rbx*4]
cdqe
mov qword [rsp + 0x78], rax
mov rax, 0xfffffffffffffbd4
mov qword [rsp + 0x38], rax
nop dword [rax + rax]
xor r10d, r10d
test ebx, ebx
jle 0x14000a644
mov ecx, r12d
mov r11d, r15d
sub r11d, r12d
mov edi, dword [rsp + 0x24]
sub edi, r12d
lea r14, [rbp + 0x3e8]
add r14, rax
lea r12, [0x140000000]
nop dword [rax]
lea eax, [r11 + rcx]
cdq
idiv ebx
movsxd rax, edx
mov edx, dword [rbp + rax*4 + 0x3e8]
sar rdx, 8
movzx r8d, dl
lea eax, [rcx + rdi]
cdq
idiv ebx
movsxd rax, edx
movzx edx, byte [rbp + rax*4 + 0x3e8]
mov r9d, dword [r12 + r8*4 + 0xf0650]
xor r9d, dword [r12 + rdx*4 + 0xf1b50]
mov eax, ecx
cdq
idiv ebx
movsxd rax, edx
mov edx, dword [rbp + rax*4 + 0x3e8]
sar rdx, 0x10
movzx eax, dl
xor r9d, dword [r12 + rax*4 + 0xf0a50]
movzx eax, byte [rbp + r10*4 + 0x3eb]
xor r9d, dword [r12 + rax*4 + 0xf0e50]
xor r9d, dword [r14 + r10*4]
mov dword [rbp + r10*4 + 0x3c8], r9d
inc ecx
inc r10
cmp r10, rbx
jl 0x14000a5c0
mov r12d, dword [rsp + 0x20]
mov r8, qword [rsp + 0x78]
lea rdx, [rbp + 0x3c8]
lea rcx, [rbp + 0x3e8]
call sub.VCRUNTIME140.dll_memcpy
inc r13d
mov rax, qword [rsp + 0x38]
add rax, 0x20
mov qword [rsp + 0x38], rax
mov edi, dword [rbp + 0x364]
cmp r13d, edi
jl 0x14000a590
mov r14d, dword [rbp + 0x360]
mov r11d, dword [rsp + 0x24]
xor r10d, r10d
lea r13, [0x140000000]
test ebx, ebx
jle 0x14000a762
movsxd rax, edi
mov r9, qword [rsp + 0x28]
sub r12d, r15d
sub r11d, r15d
shl rax, 5
lea rdi, [rbp - 0x64]
add rdi, rax
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rdi + r10*4]
movzx ecx, byte [rbp + r10*4 + 0x3eb]
mov eax, r8d
sar eax, 0x18
xor al, byte [rcx + r13 + 0xf1650]
mov byte [r9], al
lea eax, [r12 + r15]
cdq
idiv ebx
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x3e8]
sar rcx, 0x10
movzx edx, cl
mov eax, r8d
sar eax, 0x10
xor al, byte [rdx + r13 + 0xf1650]
mov byte [r9 + 1], al
mov eax, r15d
cdq
idiv ebx
movsxd rax, edx
mov ecx, dword [rbp + rax*4 + 0x3e8]
sar rcx, 8
movzx edx, cl
mov eax, r8d
sar eax, 8
xor al, byte [rdx + r13 + 0xf1650]
mov byte [r9 + 2], al
lea eax, [r11 + r15]
cdq
idiv ebx
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 + 0x3e8]
xor r8b, byte [rcx + r13 + 0xf1650]
mov byte [r9 + 3], r8b
lea r9, [r9 + 4]
inc r15d
inc r10
cmp r10, rbx
jl 0x14000a6c0
mov rdi, qword [rsp + 0x28]
movsxd r8, r14d
mov rdx, rdi
lea rcx, [rbp + 0x388]
call sub.VCRUNTIME140.dll_memcpy
movsxd r14, dword [rbp + 0x360]
add rdi, r14
mov qword [rsp + 0x28], rdi
mov r10d, dword [rsp + 0x30]
inc r10d
mov dword [rsp + 0x30], r10d
mov r8, qword [rsp + 0x40]
add r8, r14
mov qword [rsp + 0x40], r8
xor edx, edx
mov rax, qword [rsp + 0x60]
div r14
mov rcx, rax
movsxd rax, r10d
cmp rax, rcx
jae 0x14000a7cb
mov edi, dword [rbp + 0x364]
mov dword [rsp + 0x20], edi
movzx r9d, byte [rbp - 0x68]
jmp 0x14000a081
mov r15d, dword [rsp + 0x34]
shl r15d, 4
mov r8d, r15d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbp - 0x80]
call fcn.1400053d0
mov rcx, qword [rsp + 0x50]
call fcn.14009e1f0
mov rcx, qword [rsp + 0x48]
call fcn.14009e1f0
nop
mov rax, qword [rbp - 0x80]
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14009e1d0
mov rbx, qword [rsp + 0x570]
add rsp, 0x520
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret