Function at 0x10109f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
xor esi, esi
call fcn.1008eb10
add esp, 0xc
test eax, eax
je 0x1010a13f
mov edi, dword [ebp + 8]
nop dword [eax]
mov eax, dword [ebp - 4]
shl eax, 0xa
test edi, eax
lea eax, [esi + 1]
cmove eax, esi
inc ebx
mov esi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.1008eb10
add esp, 0xc
test eax, eax
jne 0x10109f80
mov edi, dword [ebp + 0x44]
test esi, esi
je 0x1010a13f
mov eax, dword [ebp + 0x38]
cdq
idiv esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
cmp esi, 1
mov esi, dword [ebp + 0x3c]
push 0
cmovne eax, dword [ebp + 0x38]
push esi
mov dword [ebp - 0x14], eax
call fcn.10155de0
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
call fcn.1008eb10
add esp, 0x18
test eax, eax
je 0x1010a133
mov ebx, dword [ebp + 0x40]
mov eax, dword [ebp - 4]
shl eax, 0xa
test dword [ebp + 8], eax
je 0x1010a0fe
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1010a122
push edi
push ebx
push dword [ebp + 0x30]
mov eax, dword [ebp - 0x14]
push dword [ebp + 0x2c]
and eax, 1
push dword [ebp + 0x28]
add eax, dword [ebp - 0xc]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x34]
push ecx
call fcn.1010a170
add esp, 0x3c
test eax, eax
je 0x1010a15a
mov eax, dword [ebp - 0xc]
xor ecx, ecx
add dword [ebp + 0x34], eax
test edi, edi
jle 0x1010a0fe
cmp edi, 0x40
jb 0x1010a0e0
lea eax, [edi - 1]
lea edx, [edi - 1]
add eax, ebx
add edx, esi
cmp esi, eax
ja 0x1010a075
cmp edx, ebx
jae 0x1010a0e0
mov eax, edi
and eax, 0x8000003f
jns 0x1010a083
dec eax
or eax, 0xffffffc0
inc eax
mov edx, edi
sub edx, eax
mov eax, esi
mov esi, ebx
sub esi, dword [ebp + 0x3c]
nop
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx + ecx + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ebx + ecx + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ebx + ecx + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x1010a090
mov esi, dword [ebp + 0x3c]
cmp ecx, edi
jge 0x1010a0fe
lea eax, [ecx + esi]
mov edx, edi
mov esi, ebx
sub esi, dword [ebp + 0x3c]
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x1010a0f0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
inc eax
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.1008eb10
add esp, 0xc
test eax, eax
je 0x1010a133
mov esi, dword [ebp + 0x3c]
jmp 0x10109ff6
push 0x114
push str.g:copenssl_1.0.2e_ssl_t1_enc.c
push 0x146
jmp 0x1010a14b
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0x109
push str.g:copenssl_1.0.2e_ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.10099cb0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret