Function at 0x140160930
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0x90
call fcn.140186310
sub rsp, rax
mov r13, qword [rsp + 0xf0]
xor ebp, ebp
mov rax, r13
mov qword [rsp + 0x58], rbp
shl rax, 4
mov rdi, r8
add rax, 6
mov r15, rdx
mov r12d, ebp
mov ebx, ebp
cmp rax, 0x1555555
ja 0x140161245
lea rbx, [r13*2]
mov r8d, 0x276
add rbx, r13
lea rdx, str.cryptoececp_nistz256.c
shl rbx, 9
lea rcx, [rbx + 0x220]
call fcn.1400a2f40
mov qword [rsp + 0x38], rax
mov rsi, rax
test rax, rax
je 0x140161242
imul rcx, r13, 0x21
mov r8d, 0x278
lea rdx, str.cryptoececp_nistz256.c
call fcn.1400a2f40
mov r12, rax
test rax, rax
je 0x14016123d
lea rcx, [r13*8]
mov r8d, 0x279
lea rdx, str.cryptoececp_nistz256.c
call fcn.1400a2f40
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14016123d
and rsi, 0xffffffffffffffc0
mov qword [rsp + 0x88], r14
add rsi, 0x40
mov qword [rsp + 0x70], rbp
add rbx, rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x68], rbx
test r13, r13
je 0x140160e82
sub rax, rdi
mov qword [rsp + 0x48], rdi
sub qword [rsp + 0xe8], rdi
mov r13, rdi
mov rdi, qword [rsp + 0xf8]
mov r14d, ebp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x60], rax
mov rcx, qword [r13]
call fcn.1400a1b80
cmp eax, 0x100
jg 0x140160a8a
mov rcx, qword [r13]
call fcn.1400a1a10
test eax, eax
jne 0x140160a8a
mov rsi, qword [r13]
jmp 0x140160ac1
mov rcx, rdi
call fcn.1400a25d0
mov rsi, rax
test rax, rax
je 0x140161187
mov rax, qword [rsp + 0xd0]
mov r9, rdi
mov rdx, qword [r13]
mov rcx, rsi
mov r8, qword [rax + 0x10]
call fcn.1400bba10
test eax, eax
je 0x140161214
mov rax, qword [rsp + 0x58]
mov rcx, rsi
sub rax, qword [rsp + 0xe0]
mov edi, ebp
mov qword [rax + r13], rsi
mov r13, rbp
call fcn.1400d3280
shl eax, 3
test eax, eax
jle 0x140160ba7
mov r15, qword [rsp + 0x48]
lea rbp, [r14 + r12]
mov rbx, qword [rsp + 0x60]
mov rsi, r14
mov r14, rbp
nop
mov rcx, qword [rbx + r15]
call fcn.1400d2f60
mov ecx, edi
test edi, edi
jns 0x140160b12
lea ecx, [rdi + 7]
sar ecx, 3
add edi, 8
movsxd rcx, ecx
add r13, 8
mov rdx, qword [rax + rcx*8]
mov byte [rsi + r12], dl
mov rax, rdx
shr rax, 8
mov byte [rbp + 1], al
mov rax, rdx
shr rax, 0x10
add rbp, 8
mov byte [r14 + 2], al
add r14, 8
shr rdx, 0x18
mov byte [rsi + r12 + 3], dl
shr rdx, 8
mov byte [rsi + r12 + 4], dl
mov rax, rdx
shr rax, 8
mov byte [rsi + r12 + 5], al
mov rax, rdx
shr rax, 0x10
mov byte [rsi + r12 + 6], al
shr rdx, 0x18
mov byte [rsi + r12 + 7], dl
add rsi, 8
mov rcx, qword [rbx + r15]
call fcn.1400d3280
shl eax, 3
cmp edi, eax
jl 0x140160b00
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0xd8]
cmp r13, 0x21
jge 0x140160bbe
mov r14, qword [rsp + 0x40]
lea rcx, [r14 + r13]
mov r8d, 0x21
add rcx, r12
sub r8, r13
xor edx, edx
call fcn.1401bace0
mov r13, qword [rsp + 0x48]
mov r8d, 4
mov rdi, qword [rsp + 0xe8]
mov rcx, rbx
mov rax, qword [rdi + r13]
mov rdx, qword [rax + 0x10]
call fcn.140119840
test eax, eax
je 0x1401611e9
mov rax, qword [rdi + r13]
lea rcx, [rbx + 0x20]
mov r8d, 4
mov rdx, qword [rax + 0x18]
call fcn.140119840
test eax, eax
je 0x1401611e9
mov rax, qword [rdi + r13]
lea rcx, [rbx + 0x40]
mov r8d, 4
mov rdx, qword [rax + 0x20]
call fcn.140119840
test eax, eax
je 0x1401611e9
mov rdi, qword [rsp + 0x30]
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140070e00
mov rdx, rbx
lea rcx, [rbx + 0x60]
call fcn.140071580
mov r8d, 2
lea rdx, [rbx + 0x60]
mov rcx, rdi
call fcn.140070e00
lea rbp, [rbx + 0xc0]
mov r8, rbx
mov rcx, rbp
lea rdx, [rbx + 0x60]
call fcn.1400718c0
mov r8d, 3
mov rdx, rbp
mov rcx, rdi
call fcn.140070e00
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x60]
call fcn.140071580
mov r8d, 4
lea rdx, [rbx + 0x60]
mov rcx, rdi
call fcn.140070e00
mov rdx, rbp
mov rcx, rbp
call fcn.140071580
mov r8d, 6
mov rdx, rbp
mov rcx, rdi
call fcn.140070e00
lea rsi, [rbx + 0x120]
mov r8, rbx
mov rcx, rsi
lea rdx, [rbx + 0x60]
call fcn.1400718c0
mov r8d, 5
mov rdx, rsi
mov rcx, rdi
call fcn.140070e00
lea rdi, [rbx + 0x180]
mov r8, rbx
mov rcx, rdi
mov rdx, rbp
call fcn.1400718c0
mov rcx, qword [rsp + 0x30]
mov r8d, 7
mov rdx, rdi
call fcn.140070e00
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x60]
call fcn.140071580
mov rcx, qword [rsp + 0x30]
lea rdx, [rbx + 0x60]
mov r8d, 8
call fcn.140070e00
mov rdx, rbp
mov rcx, rbp
call fcn.140071580
mov rcx, qword [rsp + 0x30]
mov r8d, recv
mov rdx, rbp
call fcn.140070e00
mov rdx, rsi
mov rcx, rsi
call fcn.140071580
mov rcx, qword [rsp + 0x30]
mov r8d, 0xa
mov rdx, rsi
call fcn.140070e00
mov rdx, rdi
mov rcx, rdi
call fcn.140071580
mov rcx, qword [rsp + 0x30]
mov r8d, recv
mov rdx, rdi
call fcn.140070e00
mov r8, rbx
mov rdx, rbp
mov rcx, rbp
call fcn.1400718c0
mov rcx, qword [rsp + 0x30]
mov r8d, recv
mov rdx, rbp
call fcn.140070e00
mov r8, rbx
mov rdx, rsi
mov rcx, rsi
call fcn.1400718c0
mov rdx, rsi
mov r8d, recv
mov rsi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140070e00
mov r8, rbx
mov rdx, rdi
mov rcx, rdi
call fcn.1400718c0
mov r8d, recv
mov rdx, rdi
mov rcx, rsi
call fcn.140070e00
mov r8, rbx
lea rdx, [rbx + 0x60]
mov rcx, rbp
call fcn.1400718c0
mov r8d, 9
mov rdx, rbp
mov rcx, rsi
call fcn.140070e00
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x60]
call fcn.140071580
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbx + 0x60]
mov rcx, rsi
call fcn.140070e00
mov rax, qword [rsp + 0x70]
add rsi, 0x600
mov r14, qword [rsp + 0x40]
inc rax
mov rdi, qword [rsp + 0xf8]
add r14, 0x21
add r13, 8
mov qword [rsp + 0x70], rax
mov ebp, 0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r13
cmp rax, qword [rsp + 0xf0]
jb 0x140160a67
mov r13, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0x50]
movzx eax, byte [r12 + 0x1f]
mov edi, 0xff
shr eax, 6
mov rdx, rsi
mov r8d, eax
mov dword [rsp + 0x40], edi
shr r8d, 1
and eax, 1
add r8d, eax
mov rcx, rbx
call fcn.140070e60
movups xmm0, xmmword [rbx]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [r15 + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [r15 + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [r15 + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [r15 + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [r15 + 0x50], xmm1
nop
cmp edi, 0xff
mov rdx, rbp
sete dl
cmp rdx, r13
jae 0x140161043
lea ecx, [rdi - 1]
mov r9d, ecx
lea rsi, [rdx + rdx*2]
shr ecx, 3
and r9d, 7
shl rsi, 9
add rsi, qword [rsp + 0x50]
imul rbp, rdx, 0x21
lea r8d, [rcx + 1]
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x68], r8
sub r13, rdx
mov qword [rsp + 0x60], rcx
nop dword [rax]
lea rax, [r8 + rbp]
movzx r8d, byte [rax + r12]
lea rax, [rcx + r12]
movzx ecx, byte [rax + rbp]
shl r8d, 8
or r8d, ecx
mov ecx, r9d
shr r8d, cl
mov ecx, 0x3f
and r8d, 0x3f
sub ecx, r8d
mov eax, r8d
shr eax, 5
dec eax
mov edx, eax
and eax, r8d
not edx
and ecx, edx
and edx, 1
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
mov rcx, rbx
lea edi, [rdx + rax*2]
mov rdx, rsi
mov r8d, edi
shr r8d, 1
call fcn.140070e60
lea rdx, [rbx + 0x20]
lea rcx, [rbx + 0x80]
call fcn.14006f4c0
mov rcx, qword [rbx + 0x20]
and edi, 1
mov rax, qword [rbx + 0x80]
neg rdi
and rax, rdi
mov rdx, rdi
not rdx
mov r8, rbx
and rcx, rdx
xor rcx, rax
mov qword [rbx + 0x20], rcx
mov rcx, rdx
and rcx, qword [rbx + 0x28]
mov rax, qword [rbx + 0x88]
and rax, rdi
xor rcx, rax
mov qword [rbx + 0x28], rcx
mov rcx, qword [rbx + 0x30]
mov rax, qword [rbx + 0x90]
and rcx, rdx
and rax, rdi
xor rcx, rax
mov qword [rbx + 0x30], rcx
mov rcx, r15
and rdx, qword [rbx + 0x38]
and rdi, qword [rbx + 0x98]
xor rdx, rdi
mov qword [rbx + 0x38], rdx
mov rdx, r15
call fcn.1400718c0
mov r9d, dword [rsp + 0x30]
lea rbp, [rbp + 0x21]
mov r8, qword [rsp + 0x68]
add rsi, 0x600
mov rcx, qword [rsp + 0x60]
sub r13, 1
jne 0x140160f30
mov edi, dword [rsp + 0x40]
xor ebp, ebp
mov r13, qword [rsp + 0xf0]
add edi, 0xfffffffb
mov rdx, r15
mov rcx, r15
mov dword [rsp + 0x40], edi
call fcn.140071580
mov rdx, r15
mov rcx, r15
call fcn.140071580
mov rdx, r15
mov rcx, r15
call fcn.140071580
mov rdx, r15
mov rcx, r15
call fcn.140071580
mov rdx, r15
mov rcx, r15
call fcn.140071580
cmp edi, 5
jae 0x140160ee0
test r13, r13
je 0x140161182
mov rsi, qword [rsp + 0x50]
mov rbp, r12
nop dword [rax + rax]
movzx edx, byte [rbp]
mov ecx, 0x3f
and edx, 0x1f
add edx, edx
sub ecx, edx
mov eax, edx
shr eax, 5
dec eax
mov r8d, eax
and eax, edx
not r8d
mov rdx, rsi
and ecx, r8d
and r8d, 1
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
mov rcx, rbx
lea edi, [r8 + rax*2]
mov r8d, edi
shr r8d, 1
call fcn.140070e60
lea rdx, [rbx + 0x20]
lea rcx, [rbx + 0x80]
call fcn.14006f4c0
mov rcx, qword [rbx + 0x20]
and edi, 1
mov rax, qword [rbx + 0x80]
neg rdi
and rax, rdi
mov rdx, rdi
not rdx
mov r8, rbx
and rcx, rdx
xor rcx, rax
mov qword [rbx + 0x20], rcx
mov rcx, rdi
and rcx, qword [rbx + 0x88]
mov rax, qword [rbx + 0x28]
and rax, rdx
xor rcx, rax
mov qword [rbx + 0x28], rcx
mov rcx, qword [rbx + 0x30]
mov rax, qword [rbx + 0x90]
and rcx, rdx
and rax, rdi
xor rcx, rax
mov qword [rbx + 0x30], rcx
mov rcx, r15
and rdx, qword [rbx + 0x38]
mov rax, qword [rbx + 0x98]
and rax, rdi
xor rdx, rax
mov qword [rbx + 0x38], rdx
mov rdx, r15
call fcn.1400718c0
add rsi, 0x600
lea rbp, [rbp + 0x21]
sub r13, 1
jne 0x1401610a0
mov ebp, 1
mov rbx, qword [rsp + 0x38]
mov r14, qword [rsp + 0x88]
mov r8d, 0x30a
lea rdx, str.cryptoececp_nistz256.c
mov rcx, rbx
call fcn.1400a2fa0
mov r8d, 0x30b
lea rdx, str.cryptoececp_nistz256.c
mov rcx, r12
call fcn.1400a2fa0
mov rcx, qword [rsp + 0x58]
lea rdx, str.cryptoececp_nistz256.c
mov r8d, 0x30c
call fcn.1400a2fa0
mov eax, ebp
add rsp, 0x90
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea r9, str.cryptoececp_nistz256.c
mov dword [rsp + 0x20], 0x2a8
mov edx, 0xf2
mov ecx, reloc.WS2_32.dll_recv
mov r8d, 0x92
call fcn.1400a41b0
xor ebp, ebp
jmp 0x140161187
lea r9, str.cryptoececp_nistz256.c
mov dword [rsp + 0x20], 0x28b
mov edx, 0xf2
mov ecx, reloc.WS2_32.dll_recv
mov r8d, 3
call fcn.1400a41b0
jmp 0x140161187
mov rbx, rsi
jmp 0x140161245
mov rbx, rax
lea r9, str.cryptoececp_nistz256.c
mov dword [rsp + 0x20], 0x27a
mov edx, 0xf2
mov ecx, reloc.WS2_32.dll_recv
mov r8d, 0x41
call fcn.1400a41b0
jmp 0x140161194