Function at 0x1012b310
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.100a9f40
add esp, 4
mov dword [ebp + 0x18], eax
test eax, eax
js 0x1012b5f0
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
jne 0x1012b3d4
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.10080770
dec eax
and eax, 7
push esi
mov dword [ebp - 0xc], eax
call fcn.10085810
mov esi, dword [ebp + 0xc]
add esp, 8
mov ecx, eax
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], ebx
jne 0x1012b37e
mov byte [esi], bl
inc esi
dec ecx
mov dword [ebp - 4], ecx
cmp edi, 0xfffffffe
jne 0x1012b40b
mov edi, ecx
sub edi, dword [ebp + 0x18]
sub edi, 2
test edi, edi
jle 0x1012b43e
push 0xe9
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push edi
call fcn.1007d880
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1012b429
push 0xec
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push 0x41
push 0x94
push 4
call fcn.10099c70
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xfffffffe
jne 0x1012b3de
jmp 0x1012b34f
jge 0x1012b34f
push 0xd7
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push 0x88
push 0x94
push 4
call fcn.10099c70
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 0x1012b38f
push 0xe5
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push 0x6e
jmp 0x1012b3bc
push edi
push ebx
call fcn.10096d10
add esp, 8
test eax, eax
jle 0x1012b5d4
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.10084780
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.10084230
add esp, 0x10
test eax, eax
je 0x1012b5d4
push 8
lea eax, [ebp - 0x2c]
push 0x101c48f8
push eax
call fcn.100843d0
add esp, 0xc
test eax, eax
je 0x1012b5d4
push dword [ebp + 0x18]
lea eax, [ebp - 0x2c]
push dword [ebp + 0x10]
push eax
call fcn.100843d0
add esp, 0xc
test eax, eax
je 0x1012b5d4
test edi, edi
je 0x1012b4b9
push edi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.100843d0
add esp, 0xc
test eax, eax
je 0x1012b5d4
mov eax, dword [ebp - 8]
add eax, esi
push 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10084180
add esp, 0xc
test eax, eax
je 0x1012b5d4
lea eax, [ebp - 0x2c]
push eax
call fcn.100843e0
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.100ff8c0
add esp, 0x18
test eax, eax
jne 0x1012b5d4
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 0x1012b5ae
xor edx, edx
cmp edi, 0x40
jb 0x1012b59b
lea eax, [edi - 1]
add eax, ebx
cmp ecx, eax
ja 0x1012b532
mov eax, dword [ebp + 0x18]
add eax, edi
cmp eax, ebx
jae 0x1012b59b
mov eax, edi
and eax, 0x8000003f
jns 0x1012b540
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 0x1012b550
cmp edx, edi
jge 0x1012b5ae
nop
mov al, byte [edx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x1012b5a0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1012b5c5
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 0x1012b5d6
xor esi, esi
test ebx, ebx
je 0x1012b402
push ebx
call fcn.1007d7b0
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