Function at 0x1000a910
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1012e620
mov eax, 0x24
call fcn.100011c0
mov eax, dword [esp + 0x2c]
mov dword [esp], 0
push ebx
mov ebx, dword [esp + 0x3c]
push esi
test eax, eax
jle 0x1012e9db
mov esi, dword [esp + 0x3c]
test esi, esi
jle 0x1012e9db
cmp esi, ebx
jg 0x1012e9c6
cmp ebx, 0xb
jl 0x1012e9c6
push ebp
push 0x4e
push str.crypto_rsa_rsa_ssl.c
push ebx
lfence
call sym.libcrypto_1_1.dll_CRYPTO_malloc
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x1012e699
push 0x50
push str.crypto_rsa_rsa_ssl.c
push 0x41
push 0x72
push 4
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop ebp
pop esi
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
add edx, esi
add ebp, ebx
lfence
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec ebp
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
mov al, byte [edx]
and al, cl
mov byte [ebp], al
sub ebx, 1
jne 0x1012e6a4
movzx ebx, byte [ebp + 1]
xor ebx, 2
movzx eax, al
push edi
mov dword [esp + 0x30], ebp
mov edi, 2
mov dword [esp + 0x14], 0
lea ebx, [ebx - 1]
lea eax, [eax - 1]
shr ebx, 0x1f
shr eax, 0x1f
neg ebx
neg eax
and ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
not ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x48]
and eax, 0x6b
mov dword [esp + 0x2c], eax
or esi, 0xffffffff
mov dword [esp + 0x1c], 0
movzx edx, byte [edi + ebp]
dec edx
shr edx, 0x1f
neg edx
and esi, edx
mov dword [esp + 0x24], esi
not esi
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, edi
and eax, dword [esp + 0x10]
or eax, ecx
movzx ecx, byte [edi + ebp]
xor ecx, 3
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
dec ecx
or eax, edx
shr ecx, 0x1f
mov esi, eax
mov dword [esp + 0x1c], eax
neg ecx
not esi
or ecx, eax
inc edi
mov eax, esi
and eax, 1
add eax, dword [esp + 0x14]
and ecx, eax
mov dword [esp + 0x14], ecx
cmp edi, ebx
jl 0x1012e724
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x48]
lea eax, [ecx - 0xa]
or eax, ecx
xor eax, ecx
shr eax, 0x1f
dec eax
and ebx, eax
mov eax, ebx
mov ecx, ebx
or eax, dword [esp + 0x20]
not ecx
mov dword [esp + 0x28], eax
not eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
and eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
and edx, 0x71
or edx, eax
lea eax, [esi - 8]
or eax, esi
xor eax, esi
shr eax, 0x1f
neg eax
and ebx, eax
mov eax, ebx
or eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
not eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
and eax, edx
and esi, 0x73
mov edx, ebx
or esi, eax
not edx
mov eax, edi
sub eax, dword [esp + 0x10]
dec eax
sub ecx, eax
mov dword [esp + 0x14], eax
xor ecx, eax
xor eax, dword [esp + 0x3c]
or ecx, eax
xor ecx, dword [esp + 0x3c]
shr ecx, 0x1f
dec ecx
and ebx, ecx
mov eax, ebx
mov dword [esp + 0x18], ebx
or eax, edx
mov dword [esp + 0x2c], eax
not eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
and eax, esi
mov esi, dword [esp + 0x3c]
and ecx, 0x6d
or ecx, eax
mov dword [esp + 0x10], ecx
lea ecx, [edi - 0xb]
mov edx, ecx
mov eax, ecx
sub edx, esi
xor eax, esi
xor edx, esi
or edx, eax
xor edx, ecx
lea ecx, [edi - 0xb]
shr edx, 0x1f
neg edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
not edx
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
and eax, ecx
and edx, esi
mov esi, 1
or edx, eax
mov dword [esp + 0x20], edx
cmp ecx, esi
jle 0x1012e902
mov eax, edi
sub eax, dword [esp + 0x14]
add eax, 0xfffffff5
mov dword [esp + 0x1c], eax
nop
and eax, esi
sub edi, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edi, 0xb
jle 0x1012e8ea
movzx ebx, cl
lea eax, [ebp + 0xb]
mov dword [esp + 0x2c], ebx
add edi, 0xfffffff5
mov ebp, dword [esp + 0x2c]
not ebx
nop word [eax + eax]
mov dword [esp + 0x2c], ebp
lea eax, [eax + 1]
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x2c]
mov dl, byte [eax + esi - 1]
and dl, cl
mov ecx, dword [esp + 0x28]
and cl, byte [eax - 1]
or cl, dl
mov byte [eax - 1], cl
sub edi, 1
jne 0x1012e8c0
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x48]
add esi, esi
mov eax, dword [esp + 0x1c]
cmp esi, dword [esp + 0x24]
jl 0x1012e890
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
xor esi, esi
test edx, edx
jle 0x1012e970
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
shr eax, 0x1f
neg edi
mov dword [esp + 0x28], eax
nop dword [eax]
mov ecx, edi
mov edx, esi
shr ecx, 0x1f
inc edi
xor cl, al
shr edx, 0x1f
xor al, dl
or cl, al
movzx eax, bl
xor cl, dl
mov edx, dword [esp + 0x38]
neg cl
movzx ecx, cl
and ecx, eax
mov dword [esp + 0x30], ecx
not ecx
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x30]
mov cl, byte [esi + ebp + 0xb]
and cl, al
mov eax, dword [esp + 0x2c]
and al, byte [esi + edx]
or al, cl
mov byte [esi + edx], al
inc esi
mov eax, dword [esp + 0x28]
cmp esi, dword [esp + 0x20]
jl 0x1012e920
mov edi, dword [esp + 0x48]
push 0xab
push str.crypto_rsa_rsa_ssl.c
push edi
push ebp
call sym.libcrypto_1_1.dll_CRYPTO_clear_free
push 0xac
push str.crypto_rsa_rsa_ssl.c
push dword [esp + 0x28]
push 0x72
push 4
call sym.libcrypto_1_1.dll_ERR_put_error
mov eax, ebx
and eax, 1
push eax
call fcn.10006080
add esp, 0x28
mov dword [esp + 0x30], ebx
not ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x30]
and ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
pop edi
pop ebp
pop esi
or eax, ecx
pop ebx
add esp, 0x24
ret
push 0x4a
push str.crypto_rsa_rsa_ssl.c
push 0x6f
push 0x72
push 4
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret