Function at 0x1402da070
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r13, rdx
mov qword [rsp + 0x30], rcx
cmp rdx, 0x15
jae 0x1402da0c1
cmp r13, 1
jbe 0x1402da753
mov r8d, 1
mov rcx, qword [rsp + 0x30]
mov rdx, r13
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x1402da990
movabs rax, 0x7ffffffffffffff8
lea rcx, [r13*4]
and rcx, rax
mov rsi, qword [0x1405712f8]
movzx eax, byte [rsi]
mov edx, 4
mov qword [rsp + 0x60], rcx
call fcn.140010f60
test rax, rax
je 0x1402da84e
mov rbx, rax
movzx eax, byte [rsi]
mov ecx, 0x100
mov edx, 8
call fcn.140010f60
test rax, rax
mov qword [rsp + 0x28], rbx
je 0x1402da85a
mov r12, rax
mov rax, qword [rsp + 0x30]
lea rcx, [rax + 0xc]
mov qword [rsp + 0x70], rcx
add rax, 0xfffffffffffffff8
mov qword [rsp + 0x68], rax
mov eax, 0x10
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [0x140513ce0]
mov qword [rsp + 0x58], rax
xor ebp, ebp
mov qword [rsp + 0x78], r13
jmp 0x1402da173
mov ebp, 1
mov rcx, qword [rsp + 0x20]
cmp rcx, r13
jae 0x1402da716
mov rdi, rcx
mov rax, r13
sub rax, rcx
mov rcx, qword [rsp + 0x30]
lea rcx, [rcx + rdi*8]
cmp rax, 2
jae 0x1402da200
mov r8, rax
lea rax, [r8 + rdi]
mov rsi, rax
sub rsi, rdi
jb 0x1402da7e7
cmp rax, r13
ja 0x1402da7e7
jae 0x1402da270
cmp r8, 0xa
jae 0x1402da270
lea rsi, [rdi + 0xa]
cmp rsi, r13
cmovae rsi, r13
cmp rdi, 0xfffffffffffffff5
ja 0x1402da801
cmp r8, 1
adc r8, 0
mov qword [rsp + 0x20], rsi
sub rsi, rdi
mov rdx, rsi
call 0x1402da990
cmp rbp, qword [rsp + 0x40]
je 0x1402da27c
jmp 0x1402da2d9
movzx edx, byte [rcx + 8]
cmp dl, byte [rcx]
jae 0x1402da5e0
mov r8d, 2
cmp rax, 2
je 0x1402da238
nop dword [rax + rax]
mov r9d, edx
movzx edx, byte [rcx + r8*8]
cmp dl, r9b
jae 0x1402da238
inc r8
cmp rax, r8
jne 0x1402da220
mov r8, rax
mov rax, r8
add rax, rdi
jb 0x1402da837
cmp rax, r13
ja 0x1402da823
cmp r8, 2
jae 0x1402da60e
mov r8d, 1
jmp 0x1402da192
mov qword [rsp + 0x20], rax
cmp rbp, qword [rsp + 0x40]
jne 0x1402da2d9
lea rax, [rbp*2]
mov qword [rsp + 0x40], rax
mov rcx, rbp
shl rcx, 5
mov rax, qword [0x1405712f8]
movzx eax, byte [rax]
mov edx, 8
call fcn.140010f60
test rax, rax
je 0x1402da815
mov r14, rax
mov r15, rbp
shl r15, 4
mov rcx, rax
mov rdx, r12
mov r8, r15
call fcn.1403ad280
mov r8d, 8
mov rcx, r12
mov rdx, r15
call fcn.140010f70
mov r12, r14
mov rax, rbp
shl rax, 4
mov qword [r12 + rax], rsi
mov qword [r12 + rax + 8], rdi
inc rbp
cmp rbp, 2
jb 0x1402da165
mov qword [rsp + 0x80], r12
jmp 0x1402da375
mov r13, r12
mov rbx, qword [rsp + 0x28]
mov rdx, rbx
nop dword [rax + rax]
mov r12, qword [rsp + 0x80]
add rsi, r12
add rdi, r12
sub r8, rdx
mov rcx, r13
call fcn.1403ad280
mov rax, qword [rsp + 0x88]
add rax, r15
mov qword [rdi], rax
mov rax, qword [rsp + 0x90]
mov qword [rdi + 8], rax
lea rdx, [rsi + 0x10]
mov rax, qword [rsp + 0x48]
not rax
add rbp, rax
shl rbp, 4
mov rcx, rsi
mov r8, rbp
call fcn.1403ad288
mov rbp, qword [rsp + 0x50]
cmp rbp, 1
mov r13, qword [rsp + 0x78]
jbe 0x1402da160
lea r10, [rbp - 1]
mov rcx, r10
shl rcx, 4
mov rax, qword [r12 + rcx]
mov rcx, qword [r12 + rcx + 8]
add rcx, rax
cmp rcx, r13
je 0x1402da3e0
mov rdx, rbp
shl rdx, 4
mov r8, qword [rdx + r12 - 0x20]
cmp r8, rax
jbe 0x1402da3e0
cmp rbp, 2
je 0x1402da640
lea r11, [rbp - 3]
mov rcx, r11
shl rcx, 4
mov rcx, qword [r12 + rcx]
lea r9, [r8 + rax]
cmp rcx, r9
jbe 0x1402da3f5
cmp rbp, 3
jbe 0x1402da70c
add r8, rcx
cmp qword [rdx + r12 - 0x40], r8
jbe 0x1402da3f5
jmp 0x1402da165
cmp rbp, 2
je 0x1402da3fa
lea r11, [rbp - 3]
mov rcx, r11
shl rcx, 4
mov rcx, qword [r12 + rcx]
cmp rcx, rax
jb 0x1402da3fe
lea r11, [rbp - 2]
cmp rbp, r11
jbe 0x1402da7ab
mov qword [rsp + 0x50], r10
lea rdi, [r11 + 1]
cmp rbp, rdi
jbe 0x1402da768
mov rsi, r11
shl rsi, 4
mov rcx, qword [r12 + rsi + 8]
shl rdi, 4
mov rax, qword [r12 + rdi]
mov r14, qword [r12 + rdi + 8]
add r14, rax
mov r15, r14
sub r15, rcx
jb 0x1402da780
cmp r14, r13
ja 0x1402da794
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x48], r11
mov rbp, qword [r12 + rsi]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rcx
lea r13, [rax + rcx*8]
lea r12, [rbp*8]
add r12, r13
mov rbx, r15
sub rbx, rbp
cmp rbx, rbp
jae 0x1402da530
lea r8, [rbx*8]
mov r15, qword [rsp + 0x28]
mov rcx, r15
mov rdx, r12
call fcn.1403ad280
lea r8, [r15 + rbx*8]
test rbp, rbp
mov r15, rbp
jle 0x1402da5b5
test rbx, rbx
mov rbp, qword [rsp + 0x38]
jle 0x1402da300
mov rax, qword [rsp + 0x68]
lea rax, [rax + r14*8]
mov rbx, qword [rsp + 0x28]
nop
movzx ecx, byte [r8 - 8]
movzx edx, byte [r12 - 8]
cmp cl, dl
mov r9d, 0
sbb r9, r9
cmp cl, dl
mov r10d, 0
adc r10, 0xffffffffffffffff
cmp cl, dl
lea r12, [r12 + r9*8]
lea r8, [r8 + r10*8]
mov rcx, r8
cmovb rcx, r12
mov rcx, qword [rcx]
mov qword [rax], rcx
cmp r12, r13
jbe 0x1402da517
add rax, 0xfffffffffffffff8
cmp r8, rbx
ja 0x1402da4d0
mov r13, r12
mov rdx, rbx
jmp 0x1402da310
lea r8, [rbp*8]
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
mov rdx, r13
call fcn.1403ad280
lea r8, [rbx + rbp*8]
test rbp, rbp
jle 0x1402da5c2
cmp r15, rbp
mov r15, rbp
jle 0x1402da5bd
mov rax, qword [rsp + 0x30]
lea rax, [rax + r14*8]
mov rdx, rbx
mov rbp, qword [rsp + 0x38]
nop word [rax + rax]
movzx r9d, byte [r12]
xor r10d, r10d
xor ecx, ecx
cmp r9b, byte [rdx]
setae r10b
setb r9b
mov r11, rdx
cmovb r11, r12
mov r11, qword [r11]
mov qword [r13], r11
add r13, 8
lea rdx, [rdx + r10*8]
cmp rdx, r8
jae 0x1402da310
mov cl, r9b
lea r12, [r12 + rcx*8]
cmp r12, rax
jb 0x1402da570
jmp 0x1402da310
mov r13, r12
mov rbx, qword [rsp + 0x28]
mov rdx, rbx
jmp 0x1402da5c8
mov rdx, rbx
mov r15, rbp
mov rbp, qword [rsp + 0x38]
jmp 0x1402da310
mov r8d, 2
cmp rax, 2
je 0x1402da18e
mov r9d, edx
movzx edx, byte [rcx + r8*8]
cmp dl, r9b
jb 0x1402da18e
inc r8
cmp rax, r8
jne 0x1402da5f0
jmp 0x1402da18b
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rbp
mov rax, r8
shr rax, 1
lea rdx, [rcx + r8*8]
lea r9, [rax*8]
sub rdx, r9
cmp rax, 1
mov qword [rsp + 0x48], rdi
jne 0x1402da64a
xor r9d, r9d
jmp 0x1402da6c9
mov ebp, 2
jmp 0x1402da165
movabs r9, 0x7ffffffffffffff8
lea r10, [r9 + 6]
and r10, rax
mov r9, qword [rsp + 0x70]
lea r11, [r9 + rdi*8]
mov r9, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x20]
lea rsi, [r9 + rsi*8]
xor r9d, r9d
movabs rbp, 0x1ffffffffffffffe
nop
movzx ebx, byte [r11 + r9*8 - 0xc]
mov edi, dword [r11 + r9*8 - 8]
mov r14, qword [rsi]
mov qword [r11 + r9*8 - 0xc], r14
mov byte [rsi], bl
mov dword [rsi + 4], edi
mov rdi, r9
xor rdi, rbp
add rdi, rax
movzx ebx, byte [r11 + r9*8 - 4]
mov r14d, dword [r11 + r9*8]
mov r15, qword [rdx + rdi*8]
mov qword [r11 + r9*8 - 4], r15
mov byte [rdx + rdi*8], bl
mov dword [rdx + rdi*8 + 4], r14d
add r9, 2
add rsi, 0xfffffffffffffff0
cmp r10, r9
jne 0x1402da680
test r8b, 2
je 0x1402da6f3
mov r10, r9
not r10
add rax, r10
movzx r10d, byte [rcx + r9*8]
mov r11d, dword [rcx + r9*8 + 4]
mov rsi, qword [rdx + rax*8]
mov qword [rcx + r9*8], rsi
mov byte [rdx + rax*8], r10b
mov dword [rdx + rax*8 + 4], r11d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rax, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
jmp 0x1402da192
mov ebp, 3
jmp 0x1402da165
mov rdx, qword [rsp + 0x40]
shl rdx, 4
mov r8d, 8
mov rcx, r12
call fcn.140010f70
mov r8d, 4
mov rcx, rbx
mov rdx, qword [rsp + 0x60]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140010f70
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [0x140513c80]
mov qword [rsp + 0x98], rax
lea rdx, [0x140513d10]
jmp 0x1402da7c1
lea r8, [0x140513d28]
mov rdx, r14
call fcn.14039c9e0
jmp 0x1402da866
lea r8, [0x140513d28]
mov rcx, r14
mov rdx, r13
call fcn.14039c970
jmp 0x1402da866
lea rax, [0x140513c80]
mov qword [rsp + 0x98], rax
lea rdx, [0x140513cf8]
lea rcx, [rsp + 0x98]
mov qword [rcx + 8], 1
mov qword [rcx + 0x10], 8
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
call fcn.140396670
jmp 0x1402da866
lea rcx, [0x140513d88]
lea r8, [0x140513db8]
mov edx, 0x2c
call fcn.140396710
jmp 0x1402da866
mov rcx, rdi
mov rdx, rsi
lea rax, [0x140513dd0]
mov qword [rsp + 0x58], rax
jmp 0x1402da83d
lea rcx, [0x140513d70]
call fcn.1403963c0
jmp 0x1402da866
lea r8, [0x140513ce0]
mov rcx, rax
mov rdx, r13
call fcn.14039c970
jmp 0x1402da866
mov rcx, rdi
mov rdx, rax
mov r8, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x28]
call fcn.14039c9e0
jmp 0x1402da866
lea rcx, [0x140513d40]
call fcn.1403963c0
lea rcx, [0x140513d58]
call fcn.1403963c0
ud2
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rax, [r8 - 1]
cmp rax, rdx
jae 0x1402daa23
cmp r8, rdx
jae 0x1402daa1b
lea rax, [rcx - 0x10]
lea r9, [rcx + r8*8]
add r9, 0xfffffffffffffff8
jmp 0x1402da9d0
mov rsi, rcx
shl r11, 0x20
or r11, r10
mov qword [rsi], r11
inc r8
add r9, 8
cmp r8, rdx
je 0x1402daa1b
movzx r10d, byte [rcx + r8*8]
cmp r10b, byte [rcx + r8*8 - 8]
jae 0x1402da9c4
lea rsi, [rax + r8*8]
add rsi, 8
mov r11d, dword [rcx + r8*8 + 4]
mov rdi, qword [rsi]
mov qword [rcx + r8*8], rdi
cmp r8, 1
je 0x1402da9ba
mov edi, 1
mov rsi, r9
nop
cmp r10b, byte [rsi - 8]
jae 0x1402da9ba
mov rbx, qword [rsi - 8]
mov qword [rsi], rbx
add rsi, 0xfffffffffffffff8
inc rdi
cmp r8, rdi
jne 0x1402daa00
jmp 0x1402da9b7
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140513de8]
lea r8, [0x140513e18]
mov edx, 0x2e
call fcn.140396710
int3