Function at 0x14002d480
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x110]
mov rax, qword [0x1404a7eb8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov eax, dword [r9 + 8]
test eax, eax
jle 0x14002d4c9
mov r10, qword [r9]
mov r11, qword [r10]
test r11b, 1
jne 0x14002d4ec
mov dword [rsp + 0x20], 0x3aa
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_exponentiation.c.inc
xor ebx, ebx
mov ecx, 3
xor edx, edx
mov r8d, 0x68
jmp 0x14002d719
cmp dword [r9 + 0x10], 0
je 0x14002d516
mov dword [rsp + 0x20], 0x3ae
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_exponentiation.c.inc
xor ebx, ebx
mov ecx, 3
xor edx, edx
mov r8d, WSASetLastError
jmp 0x14002d719
cmp dword [rdx + 0x10], 0
jne 0x14002d6fb
mov qword [rsp + 0x68], rcx
movsxd rcx, dword [rdx + 8]
mov rbp, rcx
sub rbp, rax
mov r13, rax
cmovb r13, rcx
mov r15, qword [rdx]
test rcx, rcx
je 0x14002d5c6
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
xor ebx, ebx
xor ebp, ebp
nop word cs:[rax + rax]
mov rsi, qword [r10 + rbp*8]
mov rdi, qword [r15 + rbp*8]
xor r14d, r14d
mov r12, rdi
sub r12, rsi
sete r14b
neg r14
xor rsi, rdi
xor r12, rdi
or r12, rsi
xor r12, rdi
sar r12, 0x3f
or r12, 1
xor rbx, r12
and rbx, r14
xor rbx, r12
inc rbp
cmp r13, rbp
jne 0x14002d560
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
cmp ecx, eax
jae 0x14002d5cc
mov r12, rax
sub r12, rcx
cmp r12, 3
ja 0x14002d5e9
xor ebp, ebp
mov r15, rcx
jmp 0x14002d650
xor ebx, ebx
cmp ecx, eax
jb 0x14002d5b0
cmp eax, ecx
jae 0x14002d6ed
cmp rbp, 3
ja 0x14002d66e
xor r12d, r12d
mov r13, rax
jmp 0x14002d6d0
mov r13, r12
and r13, 0xfffffffffffffffc
lea r15, [rcx + r13]
lea r14, [r10 + rcx*8]
add r14, 0x10
pxor xmm0, xmm0
xor ebp, ebp
pxor xmm1, xmm1
nop word cs:[rax + rax]
movdqu xmm2, xmmword [r14 + rbp*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [r14 + rbp*8]
por xmm1, xmm2
add rbp, 4
cmp r13, rbp
jne 0x14002d610
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq rbp, xmm0
cmp r12, r13
je 0x14002d65c
nop word cs:[rax + rax]
or rbp, qword [r10 + r15*8]
inc r15
cmp rax, r15
jne 0x14002d650
xor ecx, ecx
cmp rbp, 1
sbb rcx, rcx
not ecx
or ebx, ecx
jmp 0x14002d6ed
mov qword [rsp + 0x40], rsi
mov r14, rbp
and rbp, 0xfffffffffffffffc
lea r13, [rax + rbp]
lea r12, [r15 + rax*8]
add r12, 0x10
pxor xmm0, xmm0
xor esi, esi
pxor xmm1, xmm1
movdqu xmm2, xmmword [r12 + rsi*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [r12 + rsi*8]
por xmm1, xmm2
add rsi, 4
cmp rbp, rsi
jne 0x14002d690
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r12, xmm0
cmp r14, rbp
mov rsi, qword [rsp + 0x40]
je 0x14002d6dc
nop word [rax + rax]
or r12, qword [r15 + r13*8]
inc r13
cmp rcx, r13
jne 0x14002d6d0
xor ecx, ecx
cmp r12, 1
sbb rcx, rcx
xor ebx, 1
and ebx, ecx
xor ebx, 1
not ebx
shr ebx, 0x1f
test ebx, ebx
mov rcx, qword [rsp + 0x68]
je 0x14002d74e
mov dword [rsp + 0x20], 0x3b4
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_exponentiation.c.inc
xor ebx, ebx
mov ecx, 3
xor edx, edx
mov r8d, WSASetLastError
call fcn.1400885a0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
jne 0x14002d748
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14029fd30
int3
mov r14d, dword [r8 + 8]
test r14d, r14d
je 0x14002d76e
xor ebx, ebx
test rsi, rsi
mov qword [rsp + 0x60], r8
je 0x14002d818
xor eax, eax
jmp 0x14002d83b
and r11, 0xfffffffffffffffe
cmp eax, 1
je 0x14002d7de
mov edx, 1
cmp eax, 5
jb 0x14002d7d2
lea r8, [rax - 1]
mov r9, r8
and r9, 0xfffffffffffffffc
lea rdx, [r9 + 1]
movq xmm1, r11
pxor xmm0, xmm0
xor r11d, r11d
movdqu xmm2, xmmword [r10 + r11*8 + 8]
por xmm1, xmm2
movdqu xmm2, xmmword [r10 + r11*8 + 0x18]
por xmm0, xmm2
add r11, 4
cmp r9, r11
jne 0x14002d79c
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r11, xmm1
cmp r8, r9
je 0x14002d7de
or r11, qword [r10 + rdx*8]
inc rdx
cmp rax, rdx
jne 0x14002d7d2
test r11, r11
je 0x14002dae8
mov rax, qword [rsp + 0xa0]
xor rax, rsp
mov rsi, rcx
mov rcx, rax
call fcn.14029fd30
mov rcx, rsi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140027920
mov rcx, r9
mov r15, rdi
mov rdi, rdx
mov rdx, r15
call fcn.14002c590
mov rdx, rdi
mov rdi, r15
mov rsi, rax
test rax, rax
je 0x14002db00
mov qword [rsp + 0x30], rax
mov r13, rdx
mov eax, dword [rsi + 0x20]
mov dword [rsp + 0x40], eax
movsxd r15, eax
mov r12d, 6
cmp r14d, 0xe
jg 0x14002d87f
mov r12d, 5
cmp r14d, 4
jg 0x14002d87f
mov r12d, 4
cmp r14d, 1
jg 0x14002d87f
sete al
movzx eax, al
lea r12d, [rax*2 + 1]
mov ebp, 1
mov ecx, r12d
shl ebp, cl
lea eax, [rbp + 2]
imul rax, r15
lea rcx, [rax*8 + 0x40]
shl rax, 3
mov qword [rsp + 0x58], rax
call fcn.1400985f0
xor ebx, ebx
test rax, rax
je 0x14002dad9
mov dword [rsp + 0x48], r12d
mov r12d, eax
neg r12d
and r12d, 0x3f
mov qword [rsp + 0x38], rax
add r12, rax
cmp dword [rsp + 0x40], 0
je 0x14002d8de
mov rcx, r12
xor edx, edx
mov r8, qword [rsp + 0x58]
call fcn.1402a4b90
mov edx, dword [rsp + 0x40]
mov eax, edx
mov ecx, dword [rsp + 0x48]
shl eax, cl
cdqe
lea rax, [r12 + rax*8]
mov qword [rsp + 0x88], rax
lea rax, [rax + r15*8]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x7c], edx
mov dword [rsp + 0x94], edx
movabs rax, 0x200000000
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x88]
mov rdx, rsi
mov r8, rdi
call fcn.14002dc60
test eax, eax
je 0x14002dc10
lea rcx, [rsp + 0x88]
mov rdx, r15
call fcn.140027bc0
test eax, eax
je 0x14002dc10
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x70]
mov rdx, r13
mov r8, rsi
mov r9, rsi
call fcn.14002c600
test eax, eax
je 0x14002dc10
lea rcx, [rsp + 0x70]
mov rdx, r15
call fcn.140027bc0
test eax, eax
je 0x14002dc10
lea rcx, [rsp + 0x88]
xor r13d, r13d
mov ebx, dword [rsp + 0x40]
mov edx, ebx
mov r8, r12
xor r9d, r9d
call fcn.14002dda0
lea rcx, [rsp + 0x70]
mov edx, ebx
mov r8, r12
mov r9d, 1
call fcn.14002dda0
cmp dword [rsp + 0x48], 2
jb 0x14002da6f
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x70]
mov r8, rdx
mov r9, rsi
call fcn.14002c600
xor ebx, ebx
test eax, eax
je 0x14002dc10
lea r15, [rsp + 0x88]
mov rcx, r15
mov edx, dword [rsp + 0x40]
mov r8, r12
mov r9d, 2
call fcn.14002dda0
cmp ebp, 5
mov eax, 4
cmovae eax, ebp
mov dword [rsp + 0x54], eax
mov ebp, 3
mov qword [rsp + 0x20], rdi
mov rcx, r15
lea rdx, [rsp + 0x70]
mov r8, r15
mov r9, rsi
call fcn.14002c600
test eax, eax
je 0x14002dc10
mov rcx, r15
mov edx, dword [rsp + 0x40]
mov r8, r12
mov r9d, ebp
call fcn.14002dda0
inc ebp
cmp dword [rsp + 0x54], ebp
jne 0x14002da35
shl r14d, 6
lea r15d, [r14 - 1]
mov eax, r15d
cdq
idiv dword [rsp + 0x48]
test edx, edx
js 0x14002db1b
add r14d, 0xfffffffe
lea eax, [rdx + 1]
xor r13d, r13d
mov rcx, qword [rsp + 0x60]
jmp 0x14002daa7
add r13d, r13d
or r13d, r8d
dec r15d
dec eax
test eax, eax
jle 0x14002db15
mov r8d, 0
test r15d, r15d
js 0x14002da98
movsxd r10, dword [rcx + 8]
mov r9d, r15d
shr r9d, 6
cmp r9, r10
jae 0x14002da98
mov r10d, r15d
mov r8, qword [rcx]
mov r9, qword [r8 + r9*8]
xor r8d, r8d
bt r9, r10
setb r8b
jmp 0x14002da98
xor esi, esi
xor r12d, r12d
mov rcx, qword [rsp + 0x30]
jmp 0x14002dc1a
mov dword [rcx + 0x10], 0
mov dword [rcx + 8], 0
mov ebx, 1
jmp 0x14002d71e
xor ecx, ecx
xor esi, esi
mov qword [rsp + 0x58], 0
xor r12d, r12d
jmp 0x14002dc1a
sub r14d, edx
mov r15d, r14d
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x88]
mov edx, dword [rsp + 0x40]
mov r8, r12
mov r9d, r13d
call fcn.14002def0
test eax, eax
je 0x14002dc0e
lea r13, [rsp + 0x88]
test r15d, r15d
js 0x14002dc43
mov eax, r15d
sub eax, dword [rsp + 0x48]
mov dword [rsp + 0x54], eax
xor ebx, ebx
xor r14d, r14d
xor ebp, ebp
jmp 0x14002db77
add ebp, ebp
or ebp, eax
dec r14d
mov eax, dword [rsp + 0x48]
add eax, r14d
je 0x14002dbc4
mov qword [rsp + 0x20], rdi
mov rcx, r13
mov rdx, r13
mov r8, r13
mov r9, rsi
call fcn.14002c600
test eax, eax
je 0x14002dc10
xor eax, eax
mov ecx, r15d
add ecx, r14d
js 0x14002db67
mov rdx, qword [rsp + 0x60]
movsxd r9, dword [rdx + 8]
mov r8d, ecx
shr r8d, 6
cmp r8, r9
jae 0x14002db67
mov ecx, ecx
mov rax, qword [rdx]
mov rdx, qword [rax + r8*8]
xor eax, eax
bt rdx, rcx
setb al
jmp 0x14002db67
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
lea r14, [rsp + 0x70]
mov rcx, r14
mov edx, dword [rsp + 0x40]
mov r8, r12
mov r9d, ebp
call fcn.14002def0
xor ebx, ebx
test eax, eax
je 0x14002dc10
mov qword [rsp + 0x20], rdi
mov rcx, r13
mov rdx, r13
mov r8, r14
mov r9, rsi
call fcn.14002c600
mov r15d, dword [rsp + 0x54]
test eax, eax
jne 0x14002db4a
jmp 0x14002dc10
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
call fcn.14002c8a0
test rsi, rsi
jne 0x14002dc36
test r12, r12
je 0x14002dc36
mov rcx, r12
mov rdx, qword [rsp + 0x58]
call fcn.1400987a0
mov rcx, rsi
call fcn.140098760
jmp 0x14002d71e
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
mov r8, rsi
mov r9, rdi
call fcn.14002c7a0
mov ebx, eax
jmp 0x14002dc10