Function at 0x180149b30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r12
push r13
push r14
push r15
mov eax, 0x50
call fcn.180188f30
sub rsp, rax
xor r14d, r14d
movsxd rbx, r9d
mov rsi, r8
mov r15d, edx
mov r13, rcx
mov r12d, r14d
test edx, edx
jle 0x180149edc
test r9d, r9d
jle 0x180149edc
mov qword [rsp + 0x80], rbp
mov ebp, dword [rsp + 0xa0]
cmp ebx, ebp
jg 0x180149eb4
cmp ebp, 0xb
jl 0x180149eb4
movsxd rax, ebp
lea rdx, str.crypto_rsa_rsa_pk1.c
mov r8d, 0xb2
mov rcx, rax
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x40], rax
call fcn.1800b71e0
mov rdi, rax
test rax, rax
jne 0x180149c02
lea r9, str.crypto_rsa_rsa_pk1.c
lea edx, [rax + 0x71]
lea ecx, [rax + 4]
lea r8d, [r14 + 0x41]
mov dword [rsp + 0x20], 0xb4
call fcn.1800b8900
or eax, 0xffffffff
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
movsxd rax, ebp
add rsi, rbx
add rdi, rax
test ebp, ebp
jle 0x180149c41
mov rdx, rbp
mov eax, ebx
lea ecx, [rbx - 1]
dec rdi
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub ebx, eax
mov eax, ecx
and eax, 1
sub rsi, rax
movzx eax, byte [rsi]
and al, cl
dec rdx
mov byte [rdi], al
jne 0x180149c12
movzx ecx, byte [rdi]
movzx eax, byte [rdi + 1]
mov r8d, 2
xor eax, 2
mov r10d, r14d
lea esi, [rax - 1]
not eax
shr eax, 0x1f
shr esi, 0x1f
and esi, eax
lea eax, [rcx - 1]
not ecx
shr eax, 0x1f
shr ecx, 0x1f
neg esi
and eax, ecx
neg eax
and esi, eax
cmp ebp, r8d
jle 0x180149ccc
lea r9, [rdi + 2]
nop dword [rax]
movzx eax, byte [r9]
inc r9
lea edx, [rax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, r10d
not eax
neg edx
and eax, edx
or r10d, edx
mov dword [rsp + 0x88], eax
not eax
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x88]
mov eax, dword [rsp + 0x30]
and ecx, r8d
inc r8d
and eax, r12d
mov r12d, ecx
or r12d, eax
cmp r8d, ebp
jl 0x180149c80
mov r11d, ebp
mov ecx, r15d
mov r10d, 1
sub r11d, r12d
dec r11d
sub ecx, r11d
mov eax, r11d
mov dword [rsp + 0x88], r11d
xor eax, r15d
xor ecx, r11d
or ecx, eax
lea eax, [r12 - 0xa]
or eax, r12d
xor ecx, r15d
xor eax, r12d
shr ecx, 0x1f
lea r12d, [rbp - 0xb]
shr eax, 0x1f
dec ecx
dec eax
and ecx, eax
and esi, ecx
lea ecx, [rbp - 0xb]
mov edx, ecx
mov eax, ecx
sub edx, r15d
xor eax, r15d
xor edx, r15d
or edx, eax
xor edx, ecx
shr edx, 0x1f
neg edx
mov dword [rsp + 0x30], edx
not edx
mov dword [rsp + 0x34], edx
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
and ecx, r12d
and eax, r15d
or ecx, eax
mov dword [rsp + 0x38], ecx
cmp r12d, r10d
jle 0x180149ddd
mov r15d, ebp
sub r15d, r11d
add r15d, 0xfffffff5
nop
mov eax, r15d
movsxd rbx, r10d
and eax, r10d
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, ebp
sub eax, r10d
dec ecx
cmp eax, 0xb
jle 0x180149dc9
movzx r11d, cl
add eax, 0xfffffff5
lea rdx, [rdi + 0xb]
mov r9d, r11d
mov r8d, eax
not r9d
nop word [rax + rax]
mov dword [rsp + 0x34], r11d
mov dword [rsp + 0x30], r9d
inc rdx
mov eax, dword [rsp + 0x34]
movzx ecx, byte [rdx + rbx - 1]
and cl, al
mov eax, dword [rsp + 0x30]
and al, byte [rdx - 1]
or al, cl
dec r8
mov byte [rdx - 1], al
jne 0x180149da0
add r10d, r10d
cmp r10d, r12d
jl 0x180149d60
mov r11d, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x38]
movsxd r9, ecx
test ecx, ecx
jle 0x180149e50
mov r8d, r11d
mov r10d, r11d
mov r11, rdi
shr r8d, 0x1f
neg r10d
sub r11, r13
movzx ebx, sil
nop dword [rax + rax]
mov ecx, r14d
lea edx, [r10 + r14]
inc r13
shr ecx, 0x1f
shr edx, 0x1f
inc r14d
movzx eax, cl
xor dl, r8b
xor al, r8b
or dl, al
xor dl, cl
neg dl
movzx eax, dl
and eax, ebx
mov dword [rsp + 0x38], eax
not eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x38]
movzx ecx, byte [r11 + r13 + 0xa]
and cl, al
mov eax, dword [rsp + 0x34]
and al, byte [r13 - 1]
or al, cl
dec r9
mov byte [r13 - 1], al
jne 0x180149e00
mov rdx, qword [rsp + 0x40]
lea r8, str.crypto_rsa_rsa_pk1.c
mov r9d, 0xfa
mov rcx, rdi
call fcn.1800b72f0
mov edx, WSAStartup
lea r9, str.crypto_rsa_rsa_pk1.c
lea ecx, [rdx - 0x6d]
lea r8d, [rdx + 0x2e]
mov dword [rsp + 0x20], 0xfb
call fcn.1800b8900
mov ecx, esi
and ecx, 1
call fcn.1800b88a0
mov dword [rsp + 0x38], esi
not esi
mov dword [rsp + 0x34], esi
mov eax, dword [rsp + 0x38]
and eax, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x34]
or eax, ecx
jmp 0x180149bdc
mov edx, WSAStartup
lea r9, str.crypto_rsa_rsa_pk1.c
mov dword [rsp + 0x20], 0xae
lea ecx, [rdx - 0x6d]
lea r8d, [rdx + 0x2e]
call fcn.1800b8900
or eax, 0xffffffff
jmp 0x180149be4
or eax, 0xffffffff
jmp 0x180149bec