Function at 0x1012b3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, ecx
push ebx
push esi
xor esi, esi
xor ebx, ebx
test eax, eax
push ecx
cmovne edx, eax
mov dword [ebp - 0x10], edx
call fcn.100a9f80
add esp, 4
mov dword [ebp + 0x18], eax
test eax, eax
js 0x1012b6c0
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
jne 0x1012b4a4
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.100807c0
dec eax
and eax, 7
push esi
mov dword [ebp - 0xc], eax
call fcn.10085860
mov esi, dword [ebp + 0xc]
add esp, 8
mov ecx, eax
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], ebx
jne 0x1012b44e
mov byte [esi], bl
inc esi
dec ecx
mov dword [ebp - 4], ecx
cmp edi, 0xfffffffe
jne 0x1012b4db
mov edi, ecx
sub edi, dword [ebp + 0x18]
sub edi, 2
test edi, edi
jle 0x1012b50e
push 0xe9
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push edi
call fcn.1007d8e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1012b4f9
push 0xec
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push 0x41
push 0x94
push 4
call fcn.10099cb0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xfffffffe
jne 0x1012b4ae
jmp 0x1012b41f
jge 0x1012b41f
push 0xd7
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push 0x88
push 0x94
push 4
call fcn.10099cb0
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
add eax, 2
add eax, edi
cmp ecx, eax
jge 0x1012b45f
push 0xe5
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push 0x6e
jmp 0x1012b48c
push edi
push ebx
call fcn.10096d50
add esp, 8
test eax, eax
jle 0x1012b6a4
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
dec ecx
push eax
mov dword [ebp - 8], ecx
call fcn.100847d0
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.10084280
add esp, 0x10
test eax, eax
je 0x1012b6a4
push 8
lea eax, [ebp - 0x2c]
push 0x101c48f8
push eax
call fcn.10084420
add esp, 0xc
test eax, eax
je 0x1012b6a4
push dword [ebp + 0x18]
lea eax, [ebp - 0x2c]
push dword [ebp + 0x10]
push eax
call fcn.10084420
add esp, 0xc
test eax, eax
je 0x1012b6a4
test edi, edi
je 0x1012b589
push edi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.10084420
add esp, 0xc
test eax, eax
je 0x1012b6a4
mov eax, dword [ebp - 8]
add eax, esi
push 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100841d0
add esp, 0xc
test eax, eax
je 0x1012b6a4
lea eax, [ebp - 0x2c]
push eax
call fcn.10084430
push dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x18]
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.100ff940
add esp, 0x18
test eax, eax
jne 0x1012b6a4
mov eax, dword [ebp - 0x14]
lea ecx, [esi - 2]
sub eax, edi
add ecx, eax
mov dword [ebp + 0x18], ecx
xor byte [ecx], 1
inc ecx
mov dword [ebp - 0x14], ecx
test edi, edi
jle 0x1012b67e
xor edx, edx
cmp edi, 0x40
jb 0x1012b66b
lea eax, [edi - 1]
add eax, ebx
cmp ecx, eax
ja 0x1012b602
mov eax, dword [ebp + 0x18]
add eax, edi
cmp eax, ebx
jae 0x1012b66b
mov eax, edi
and eax, 0x8000003f
jns 0x1012b610
dec eax
or eax, 0xffffffc0
inc eax
mov dword [ebp + 0x18], edi
sub dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
nop dword [eax]
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ebx + edx]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm0, xmmword [ecx + 0x10]
movups xmm1, xmmword [ebx + edx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
movups xmm0, xmmword [ecx + 0x20]
movups xmm1, xmmword [ebx + edx + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx + 0x20], xmm1
movups xmm0, xmmword [ecx + 0x30]
movups xmm1, xmmword [ebx + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [ecx + 0x30], xmm1
add ecx, 0x40
cmp edx, eax
jl 0x1012b620
cmp edx, edi
jge 0x1012b67e
nop
mov al, byte [edx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x1012b670
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1012b695
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [ebp - 4]
mov byte [eax + esi - 1], 0xbc
mov esi, 1
jmp 0x1012b6a6
xor esi, esi
test ebx, ebx
je 0x1012b4d2
push ebx
call fcn.1007d810
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret