Function at 0x180148aa0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x180148aa0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x110
call fcn.180001055
sub rsp, rax
mov rax, qword [0x1802946b8]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov eax, dword [rsp + 0x170]
xor esi, esi
mov r14, qword [rsp + 0x190]
mov rdi, r8
mov dword [rsp + 0x38], eax
mov ebp, esi
mov rax, qword [rsp + 0x178]
mov r12d, esi
mov qword [rsp + 0x58], rax
lea r13d, [rsi - 1]
mov rax, qword [rsp + 0x188]
movsxd rbx, r9d
mov dword [rsp + 0x34], edx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], esi
test rax, rax
jne 0x180148b29
call sym.libcrypto_1_1_x64.dll_EVP_sha1
mov qword [rsp + 0x40], rax
test r14, r14
mov rcx, rax
cmove r14, rax
mov qword [rsp + 0x48], r14
call sym.libcrypto_1_1_x64.dll_EVP_MD_size
movsxd r15, eax
cmp dword [rsp + 0x34], esi
jle 0x1801491b8
test ebx, ebx
jle 0x1801491b8
mov eax, dword [rsp + 0x38]
cmp eax, ebx
jl 0x180149196
lea ecx, [r15*2 + 2]
cmp eax, ecx
jl 0x180149196
mov ecx, eax
lea rdx, str.crypto_rsa_rsa_oaep.c
sub ecx, r15d
mov r8d, 0x9d
lea eax, [rcx - 1]
mov dword [rsp + 0x50], eax
movsxd rax, ecx
dec rax
mov rcx, rax
mov qword [rsp + 0x60], rax
call sym.libcrypto_1_1_x64.dll_CRYPTO_malloc
mov r14, rax
test rax, rax
jne 0x180148bc9
mov dword [rsp + 0x20], 0x9f
mov edx, 0x99
lea r9, str.crypto_rsa_rsa_oaep.c
mov ecx, 4
lea r8d, [rdx - 0x58]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
jmp 0x180149137
movsxd rcx, dword [rsp + 0x38]
lea rdx, str.crypto_rsa_rsa_oaep.c
mov r8d, 0xa3
call sym.libcrypto_1_1_x64.dll_CRYPTO_malloc
mov r12, rax
test rax, rax
jne 0x180148bf2
mov dword [rsp + 0x20], 0xa6
jmp 0x180148baa
mov ecx, dword [rsp + 0x38]
add rdi, rbx
movsxd rax, ecx
add r12, rax
test ecx, ecx
jle 0x180148c3f
mov edx, ecx
nop word [rax + rax]
mov eax, ebx
lea ecx, [rbx - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec r12
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub ebx, eax
mov eax, ecx
and eax, 1
sub rdi, rax
and cl, byte [rdi]
mov byte [r12], cl
sub rdx, 1
jne 0x180148c10
movzx ebp, byte [r12]
lea rdi, [r15 + 1]
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x80]
mov r9d, dword [rsp + 0x50]
lea rbx, [r12 + 1]
dec ebp
mov qword [rsp + 0x68], r15
add rdi, r12
shr ebp, 0x1f
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, r15d
neg ebp
call sym.libcrypto_1_1_x64.dll_PKCS1_MGF1
test eax, eax
jne 0x180149137
mov edx, esi
test r15d, r15d
jle 0x180148d56
cmp r15d, 0x40
jb 0x180148d56
lea eax, [r15 - 1]
movsxd rcx, eax
lea r8, [rsp + 0x80]
add r8, rcx
lea rax, [rcx + rbx]
lea rcx, [rsp + 0x80]
cmp rcx, rax
ja 0x180148cc7
cmp r8, rbx
jae 0x180148d56
mov ecx, r15d
and ecx, 0x8000003f
jge 0x180148cd9
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r15d
mov r8, rsi
sub eax, ecx
mov rcx, rbx
movsxd r9, eax
lea rax, [rsp + 0x80]
sub rcx, rax
lea rax, [rsp + 0x80]
add edx, 0x40
add rax, r8
add r8, 0x40
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rcx + rax]
pxor xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
movdqu xmm1, xmmword [rcx + rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
movdqu xmm0, xmmword [rax + 0x20]
movdqu xmm1, xmmword [rcx + rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
movdqu xmm0, xmmword [rax + 0x30]
movdqu xmm1, xmmword [rcx + rax + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax + 0x30], xmm1
cmp r8, r9
jl 0x180148cf2
movsxd rdx, edx
cmp rdx, r15
jge 0x180148d89
lea rax, [rsp + 0x80]
sub rbx, rax
nop dword [rax]
lea rcx, [rsp + 0x80]
add rcx, rdx
inc rdx
movzx eax, byte [rbx + rcx]
xor byte [rcx], al
cmp rdx, r15
jl 0x180148d70
mov rax, qword [rsp + 0x48]
lea r8, [rsp + 0x80]
mov ebx, dword [rsp + 0x50]
mov r9d, r15d
mov edx, ebx
mov qword [rsp + 0x20], rax
mov rcx, r14
call sym.libcrypto_1_1_x64.dll_PKCS1_MGF1
test eax, eax
jne 0x180149137
mov r8d, esi
test ebx, ebx
jle 0x180148e70
cmp ebx, 0x40
jb 0x180148e70
lea eax, [rbx - 1]
movsxd rcx, eax
lea rax, [rcx + rdi]
lea rdx, [rcx + r14]
cmp r14, rax
ja 0x180148de4
cmp rdx, rdi
jae 0x180148e70
mov ecx, ebx
and ecx, 0x8000003f
jge 0x180148df5
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, ebx
mov rdx, rdi
sub eax, ecx
mov rcx, r14
movsxd r9, eax
sub rdx, r14
nop word [rax + rax]
movdqu xmm0, xmmword [rcx]
add r8d, 0x40
movdqu xmm1, xmmword [rdx + rcx]
pxor xmm1, xmm0
movdqu xmmword [rcx], xmm1
movdqu xmm0, xmmword [rcx + 0x10]
movdqu xmm1, xmmword [rdx + rcx + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmm0, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rdx + rcx + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rcx + 0x20], xmm1
movdqu xmm0, xmmword [rcx + 0x30]
movdqu xmm1, xmmword [rdx + rcx + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rcx + 0x30], xmm1
add rcx, 0x40
mov rax, rcx
sub rax, r14
cmp rax, r9
jl 0x180148e10
mov rcx, qword [rsp + 0x60]
movsxd rax, r8d
cmp rax, rcx
jge 0x180148ea0
sub rdi, r14
lea rdx, [rax + r14]
mov r8, rcx
sub r8, rax
nop word [rax + rax]
movzx eax, byte [rdi + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x180148e90
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0xc0]
movsxd rdx, dword [rsp + 0x180]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call sym.libcrypto_1_1_x64.dll_EVP_Digest
test eax, eax
je 0x180149137
mov r8, r15
lea rdx, [rsp + 0xc0]
mov rcx, r14
mov rdi, r15
call sym.libcrypto_1_1_x64.dll_CRYPTO_memcmp
mov r13, qword [rsp + 0x60]
mov r9d, esi
mov r11d, r15d
lea ecx, [rax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and ebp, ecx
cmp r15, r13
jge 0x180148f6c
mov r10, r15
nop
movzx r8d, byte [r10 + r14]
inc r10
mov eax, r8d
xor eax, 1
lea edx, [rax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, r9d
not eax
neg edx
and eax, edx
or r9d, edx
mov dword [rsp + 0x30], eax
not eax
mov dword [rsp + 0x58], eax
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x58]
and ecx, r11d
and esi, eax
inc r11d
lea eax, [r8 - 1]
or esi, ecx
shr eax, 0x1f
neg eax
or eax, r9d
and ebp, eax
cmp r10, r13
jl 0x180148f10
mov dword [rsp + 0x30], esi
xor esi, esi
mov r10d, dword [rsp + 0x34]
mov r13d, ebx
sub r13d, dword [rsp + 0x30]
mov ecx, r10d
dec r13d
mov eax, r10d
sub ecx, r13d
mov dword [rsp + 0x40], r13d
xor ecx, r13d
xor eax, r13d
or ecx, eax
mov r8d, ebx
xor ecx, r10d
sub r8d, r15d
shr ecx, 0x1f
mov eax, r10d
dec ecx
mov r11d, 1
and ecx, r9d
and ebp, ecx
lea ecx, [r8 - 1]
xor eax, ecx
mov edx, ecx
sub edx, r10d
xor edx, r10d
or edx, eax
xor edx, ecx
lea ecx, [r8 - 1]
shr edx, 0x1f
neg edx
mov dword [rsp + 0x58], edx
not edx
mov dword [rsp + 0x34], edx
mov eax, dword [rsp + 0x58]
mov edx, dword [rsp + 0x34]
and eax, ecx
and edx, r10d
or edx, eax
mov dword [rsp + 0x48], edx
cmp ecx, r11d
jle 0x18014908b
sub r8d, r13d
mov esi, ecx
inc r15
lea r13d, [r8 - 1]
nop dword [rax + rax]
mov eax, r13d
and eax, r11d
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, ebx
sub eax, r11d
dec ecx
movsxd r9, eax
cmp r15, r9
jge 0x180149073
movzx ebx, cl
lea rax, [r15 + r14]
mov r10d, ebx
movsxd rdi, r11d
not r10d
sub r9, r15
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
lea rax, [rax + 1]
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x34], r10d
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x34]
and r8b, cl
movzx ecx, byte [rax - 1]
and dl, cl
or dl, r8b
mov byte [rax - 1], dl
sub r9, 1
jne 0x180149040
mov ebx, dword [rsp + 0x50]
add r11d, r11d
cmp r11d, esi
jl 0x180149000
mov r13d, dword [rsp + 0x40]
xor esi, esi
mov rdi, qword [rsp + 0x68]
mov edx, dword [rsp + 0x48]
movsxd r10, edx
test edx, edx
jle 0x18014910b
mov r11, qword [rsp + 0x70]
lea r8, [r14 + 1]
mov r9d, r13d
shr r9d, 0x1f
add r8, rdi
nop word [rax + rax]
mov ecx, esi
lea r11, [r11 + 1]
shr ecx, 0x1f
lea r8, [r8 + 1]
movzx eax, cl
mov edx, esi
sub edx, r13d
xor al, r9b
shr edx, 0x1f
inc esi
xor dl, r9b
or dl, al
movzx eax, bpl
xor dl, cl
neg dl
movzx ecx, dl
and ecx, eax
movzx eax, byte [r8 - 1]
mov dword [rsp + 0x48], ecx
not ecx
mov dword [rsp + 0x40], ecx
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
and dl, al
movzx eax, byte [r11 - 1]
and cl, al
or cl, dl
mov byte [r11 - 1], cl
sub r10, 1
jne 0x1801490b0
mov edx, 0x99
mov dword [rsp + 0x20], 0x107
lea r9, str.crypto_rsa_rsa_oaep.c
mov ecx, 4
lea r8d, [rdx - 0x20]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov ecx, ebp
and ecx, 1
call fcn.1800015e6
mov edx, 0x40
lea rcx, [rsp + 0x80]
call sym.libcrypto_1_1_x64.dll_OPENSSL_cleanse
mov rdx, qword [rsp + 0x60]
lea r8, str.crypto_rsa_rsa_oaep.c
mov r9d, 0x10b
mov rcx, r14
call sym.libcrypto_1_1_x64.dll_CRYPTO_clear_free
movsxd rdx, dword [rsp + 0x38]
lea r8, str.crypto_rsa_rsa_oaep.c
mov r9d, 0x10c
mov rcx, r12
call sym.libcrypto_1_1_x64.dll_CRYPTO_clear_free
mov dword [rsp + 0x48], ebp
not ebp
mov dword [rsp + 0x40], ebp
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x40]
and ecx, r13d
or eax, ecx
jmp 0x1801491bb
mov edx, 0x99
mov dword [rsp + 0x20], 0x98
lea r9, str.crypto_rsa_rsa_oaep.c
mov ecx, 4
lea r8d, [rdx - 0x20]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov eax, r13d
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1800028c4
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret