Function at 0x1802f3740
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.1800b7d60
sub rsp, rax
xor r12d, r12d
movsxd rbx, r9d
mov rsi, r8
mov r13d, edx
mov r15, rcx
mov r14d, r12d
test edx, edx
js 0x1802f3aef
test r9d, r9d
js 0x1802f3aef
mov qword [rsp + 0x80], rbp
mov ebp, dword [rsp + 0xa0]
cmp ebx, ebp
jg 0x1802f3ac7
cmp ebp, 0xb
jl 0x1802f3ac7
movsxd rax, ebp
lea rdx, str.crypto_rsa_rsa_pk1.c
mov rcx, rax
mov qword [rsp + 0x90], rdi
mov r8d, 0xb2
mov qword [rsp + 0x40], rax
call fcn.180267120
mov rdi, rax
test rax, rax
jne 0x1802f3813
lea r9, str.crypto_rsa_rsa_pk1.c
mov dword [rsp + 0x20], 0xb4
lea edx, [rax + 0x71]
lea ecx, [rax + 4]
lea r8d, [r12 + 0x41]
call fcn.180277e20
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 0x1802f3853
mov rdx, rbp
mov eax, ebx
lea ecx, [rbx - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec rdi
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
mov byte [rdi], al
sub rdx, 1
jne 0x1802f3823
movzx ecx, byte [rdi]
mov r8d, 2
movzx eax, byte [rdi + 1]
mov r10d, r12d
xor eax, 2
lea esi, [rax - 1]
not eax
shr eax, 0x1f
shr esi, 0x1f
and esi, eax
lea eax, [rcx - 1]
shr eax, 0x1f
neg esi
not ecx
shr ecx, 0x1f
and eax, ecx
neg eax
and esi, eax
cmp ebp, r8d
jle 0x1802f38da
lea r9, [rdi + 2]
nop
movzx eax, byte [r9]
lea r9, [r9 + 1]
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
and r14d, eax
inc r8d
or r14d, ecx
cmp r8d, ebp
jl 0x1802f3890
mov ebx, ebp
mov ecx, r13d
sub ebx, r14d
mov r10d, 1
dec ebx
sub ecx, ebx
mov dword [rsp + 0x88], ebx
xor ecx, ebx
mov eax, ebx
xor eax, r13d
or ecx, eax
lea eax, [r14 - 0xa]
or eax, r14d
xor ecx, r13d
xor eax, r14d
shr ecx, 0x1f
shr eax, 0x1f
lea r14d, [rbp - 0xb]
dec eax
dec ecx
and ecx, eax
and esi, ecx
lea ecx, [rbp - 0xb]
mov edx, ecx
mov eax, ecx
sub edx, r13d
xor eax, r13d
xor edx, r13d
or edx, eax
xor edx, ecx
shr edx, 0x1f
neg edx
mov dword [rsp + 0x30], edx
not edx
mov dword [rsp + 0x34], edx
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
and eax, r14d
and ecx, r13d
or ecx, eax
mov dword [rsp + 0x38], ecx
cmp r14d, r10d
jle 0x1802f39ee
mov r13d, ebp
sub r13d, ebx
add r13d, 0xfffffff5
nop word [rax + rax]
mov eax, r13d
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
movsxd r8, eax
cmp r8, 0xb
jle 0x1802f39db
movzx r11d, cl
lea rax, [rdi + 0xb]
mov r9d, r11d
movsxd rbx, r10d
not r9d
add r8, 0xfffffffffffffff5
nop dword [rax + rax]
mov dword [rsp + 0x34], r11d
lea rax, [rax + 1]
mov dword [rsp + 0x30], r9d
mov ecx, dword [rsp + 0x34]
movzx edx, byte [rax + rbx - 1]
and dl, cl
mov ecx, dword [rsp + 0x30]
and cl, byte [rax - 1]
or cl, dl
mov byte [rax - 1], cl
sub r8, 1
jne 0x1802f39b0
add r10d, r10d
cmp r10d, r14d
jl 0x1802f3970
mov ebx, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x38]
movsxd r9, ecx
test ecx, ecx
jle 0x1802f3a63
mov r8d, ebx
movzx r11d, sil
mov r10d, ebx
shr r8d, 0x1f
neg r10d
mov rbx, rdi
sub rbx, r15
nop dword [rax]
mov ecx, r12d
lea edx, [r10 + r12]
shr ecx, 0x1f
lea r15, [r15 + 1]
shr edx, 0x1f
movzx eax, r8b
xor al, cl
xor dl, r8b
or dl, al
inc r12d
xor dl, cl
neg dl
movzx eax, dl
and eax, r11d
mov dword [rsp + 0x38], eax
not eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x38]
movzx ecx, byte [rbx + r15 + 0xa]
and cl, al
mov eax, dword [rsp + 0x34]
and al, byte [r15 - 1]
or al, cl
mov byte [r15 - 1], al
sub r9, 1
jne 0x1802f3a10
mov rdx, qword [rsp + 0x40]
lea r8, str.crypto_rsa_rsa_pk1.c
mov r9d, 0xfa
mov rcx, rdi
call fcn.180267280
mov edx, WSAStartup
mov dword [rsp + 0x20], 0xfb
lea r9, str.crypto_rsa_rsa_pk1.c
lea ecx, [rdx - 0x6d]
lea r8d, [rdx + 0x2e]
call fcn.180277e20
mov ecx, esi
and ecx, 1
call fcn.1802782a0
mov dword [rsp + 0x38], esi
not esi
mov dword [rsp + 0x34], esi
mov ecx, dword [rsp + 0x38]
and ecx, dword [rsp + 0x88]
mov eax, dword [rsp + 0x34]
or eax, ecx
jmp 0x1802f37ed
mov edx, WSAStartup
mov dword [rsp + 0x20], 0xae
lea r9, str.crypto_rsa_rsa_pk1.c
lea ecx, [rdx - 0x6d]
lea r8d, [rdx + 0x2e]
call fcn.180277e20
or eax, 0xffffffff
jmp 0x1802f37f5
or eax, 0xffffffff
jmp 0x1802f37fd