Function at 0x1803d1cf0
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x48
call fcn.18042dd60
sub rsp, rax
mov ebp, dword [rsp + 0xa0]
xor r12d, r12d
movsxd rdi, r9d
mov rsi, r8
mov r15, rcx
mov r14d, r12d
test edx, edx
jle 0x1803d203b
test r9d, r9d
jle 0x1803d203b
cmp edi, ebp
jg 0x1803d201b
cmp ebp, 0xb
jl 0x1803d201b
mov qword [rsp + 0x90], rbx
lea r8d, [rax + 0x6a]
mov qword [rsp + 0x40], r13
lea rdx, str.crypto_rsa_rsa_pk1.c
movsxd r13, ebp
mov rcx, r13
mov qword [rsp + 0x30], r13
call fcn.180362640
mov rbx, rax
test rax, rax
jne 0x1803d1db4
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.180363760
lea eax, [rbx - 1]
mov rbx, qword [rsp + 0x90]
mov r13, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
add rsi, rdi
add rbx, r13
test ebp, ebp
jle 0x1803d1df1
mov rdx, rbp
mov eax, edi
lea ecx, [rdi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec rbx
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edi, eax
mov eax, ecx
and eax, 1
sub rsi, rax
movzx eax, byte [rsi]
and al, cl
mov byte [rbx], al
sub rdx, 1
jne 0x1803d1dc1
movzx eax, byte [rbx + 1]
mov r8d, 2
xor eax, 2
mov r10d, r12d
lea esi, [rax - 1]
not eax
shr eax, 0x1f
shr esi, 0x1f
and esi, eax
movzx eax, byte [rbx]
dec eax
neg esi
shr eax, 0x1f
neg eax
and esi, eax
cmp ebp, r8d
jle 0x1803d1e5e
lea r9, [rbx + 2]
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
dec edx
mov ecx, r10d
shr edx, 0x1f
not ecx
neg edx
and ecx, edx
or r10d, edx
mov eax, ecx
and ecx, r8d
not eax
inc r8d
and r14d, eax
or r14d, ecx
cmp r8d, ebp
jl 0x1803d1e30
mov r8d, dword [rsp + 0x88]
mov r13d, ebp
sub r13d, r14d
mov ecx, r8d
dec r13d
mov r11d, 1
sub ecx, r13d
mov eax, r13d
xor ecx, r13d
xor eax, r8d
or ecx, eax
lea eax, [r14 - 0xa]
or eax, r14d
xor ecx, r8d
xor eax, r14d
shr ecx, 0x1f
dec ecx
shr eax, 0x1f
dec eax
lea r14d, [rbp - 0xb]
and ecx, eax
and esi, ecx
lea ecx, [rbp - 0xb]
mov edx, ecx
mov eax, ecx
sub edx, r8d
xor eax, r8d
xor edx, r8d
or edx, eax
mov eax, r14d
xor edx, ecx
shr edx, 0x1f
neg edx
and eax, edx
mov ecx, edx
not ecx
and ecx, r8d
or ecx, eax
mov dword [rsp + 0x88], ecx
cmp r14d, r11d
jle 0x1803d1f64
mov r15d, ebp
sub r15d, r13d
add r15d, 0xfffffff5
nop word [rax + rax]
mov eax, r15d
and eax, r11d
lea r8d, [rax - 1]
not eax
shr eax, 0x1f
shr r8d, 0x1f
and r8d, eax
mov eax, ebp
sub eax, r11d
dec r8d
movsxd r9, eax
cmp r9, 0xb
jle 0x1803d1f4d
movzx r10d, r8b
movsxd rdi, r11d
not r10b
lea rax, [rbx + 0xb]
add r9, 0xfffffffffffffff5
nop dword [rax]
movzx edx, byte [rdi + rax]
lea rax, [rax + 1]
and dl, r8b
movzx ecx, r10b
and cl, byte [rax - 1]
or dl, cl
mov byte [rax - 1], dl
sub r9, 1
jne 0x1803d1f30
add r11d, r11d
cmp r11d, r14d
jl 0x1803d1ef0
mov r15, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x88]
movsxd r10, ecx
test ecx, ecx
jle 0x1803d1fc9
mov r9d, r13d
mov r11, rbx
shr r9d, 0x1f
sub r11, r15
nop dword [rax + rax]
mov r8d, r12d
lea r15, [r15 + 1]
sub r8d, r13d
mov ecx, r12d
shr r8d, 0x1f
movzx eax, r9b
xor r8b, r9b
shr ecx, 0x1f
xor al, cl
inc r12d
or r8b, al
movzx eax, byte [r11 + r15 + 0xa]
xor r8b, cl
neg r8b
and r8b, sil
and al, r8b
not r8b
and r8b, byte [r15 - 1]
or al, r8b
mov byte [r15 - 1], al
sub r10, 1
jne 0x1803d1f80
mov rdx, qword [rsp + 0x30]
lea r8, str.crypto_rsa_rsa_pk1.c
mov r9d, 0xfa
mov rcx, rbx
call fcn.1803627a0
mov edx, WSACleanup
mov dword [rsp + 0x20], 0xfb
lea r9, str.crypto_rsa_rsa_pk1.c
lea ecx, [rdx - 0x6d]
lea r8d, [rdx + 0x2e]
call fcn.180363760
mov ecx, esi
and ecx, 1
call fcn.180363a50
mov eax, esi
not esi
and eax, r13d
or eax, esi
jmp 0x1803d1d99
mov edx, WSACleanup
mov dword [rsp + 0x20], 0xae
lea r9, str.crypto_rsa_rsa_pk1.c
lea ecx, [rdx - 0x6d]
lea r8d, [rdx + 0x2e]
call fcn.180363760
mov eax, 0xffffffff
add rsp, 0x48
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret