Function at 0x43b500
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
mov byte [rdx], 0
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 0x30]
test eax, eax
setne cl
mov r9, qword [rsp + 0x28]
cmp r9, 0x10
setl dl
test cl, dl
jne 0x43b7cb
xor cl, dl
jne 0x43b7cb
add r9, 0xfffffffffffffff0
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 4
call qword [rax + 0x10]
test eax, eax
jne 0x43b7cb
mov edi, dword [rsp + 0x20]
bswap edi
xor eax, eax
cmp edi, ebp
jae 0x43b7cb
mov r9, qword [rsp + 0x28]
lea rcx, [r9 - 0x10]
cmp rcx, rdi
setl cl
test edi, edi
sete dl
test dl, cl
jne 0x43b7cb
xor dl, cl
jne 0x43b7cb
add r9, 0xfffffffffffffff4
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 4
call qword [rax + 0x10]
test eax, eax
jne 0x43b7cb
movzx r12d, byte [rsp + 0x20]
movzx r15d, byte [rsp + 0x21]
movzx r14d, byte [rsp + 0x22]
movzx ebp, byte [rsp + 0x23]
mov rax, qword [rsp + 0x28]
movabs rcx, 0xcb6f409b9eb53cac
sub rax, rcx
lea r9, [rax + rcx]
add r9, 0xfffffffffffffff8
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 8
call qword [rax + 0x10]
test eax, eax
jne 0x43b7cb
movabs rcx, 0xd763a120f905d5d9
mov eax, 0
cmp qword [rsp + 0x20], rcx
jne 0x43b7cb
mov rax, qword [rsp + 0x28]
mov rcx, rdi
neg rcx
lea r9, [rax + rcx]
add r9, 0xfffffffffffffff0
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, rsi
mov r8d, edi
call qword [rax + 0x10]
test eax, eax
jne 0x43b7cb
shl r12d, 0x18
shl r15d, 0x10
or r15d, r12d
shl r14d, 8
or r14d, r15d
mov eax, r14d
not eax
mov ecx, ebp
not ecx
and eax, 0x253ea895
and r14d, 0xdac15700
or r14d, eax
and ecx, 0x253ea895
and ebp, 0x6a
or ebp, ecx
xor ebp, r14d
cmp edi, 8
jae 0x43b68f
xor eax, eax
jmp 0x43b7aa
mov eax, edi
and eax, 0xfffffff8
movd xmm0, ebp
lea rbp, [rax - 8]
mov rcx, rbp
shr rcx, 3
movabs rdx, 0xaaa77bffc8defef4
sub rcx, rdx
lea r9, [rcx + rdx]
add r9, 1
mov r8, r9
xor r8, 0xfffffffffffffffe
test rbp, rbp
je 0x43b753
movabs rbx, 0xc000000000000001
xor rbx, r9
and rbx, r9
pxor xmm1, xmm1
xor ecx, ecx
movd xmm2, dword [rsi + rcx]
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
movd xmm3, dword [rsi + rcx + 4]
punpcklbw xmm3, xmm3
punpcklwd xmm3, xmm3
psrad xmm2, 0x18
psubd xmm0, xmm2
psrad xmm3, 0x18
psubd xmm1, xmm3
mov ebp, ecx
and ebp, 8
mov rdx, rcx
xor rdx, 8
or rdx, rbp
movd xmm2, dword [rsi + rdx]
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
movd xmm3, dword [rsi + rdx + 4]
punpcklbw xmm3, xmm3
punpcklwd xmm3, xmm3
psrad xmm2, 0x18
psubd xmm0, xmm2
psrad xmm3, 0x18
psubd xmm1, xmm3
add rcx, 0x10
add rbx, 0xfffffffffffffffe
jne 0x43b6de
jmp 0x43b759
pxor xmm1, xmm1
xor ecx, ecx
test r8, r9
je 0x43b78b
movd xmm2, dword [rsi + rcx + 4]
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
psrad xmm2, 0x18
psubd xmm1, xmm2
movd xmm2, dword [rsi + rcx]
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
psrad xmm2, 0x18
psubd xmm0, xmm2
paddd xmm0, xmm1
pshufd xmm1, xmm0, 0x4e
paddd xmm1, xmm0
pshufd xmm0, xmm1, 0xe5
paddd xmm0, xmm1
movd ebp, xmm0
cmp rax, rdi
je 0x43b7b9
movsx ecx, byte [rsi + rax]
sub ebp, ecx
add rax, 1
cmp rdi, rax
jne 0x43b7aa
xor eax, eax
test ebp, ebp
cmovne edi, eax
mov byte [rsi + rdi], 0
add edi, 1
mov byte [rsi + rdi], 0
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret