Function at 0x10108e00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x20], 0x100000
mov eax, dword [ebx + 8]
mov dword [ebp - 0x308], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x320], eax
mov eax, dword [ebx + 0x14]
push esi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x2ec], eax
mov eax, dword [ebx + 0x18]
push edi
mov dword [ebp - 0x2e0], eax
mov edi, 0x40
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x2e4], edi
mov dword [ebp - 0x300], 0x28
mov dword [ebp - 0x2b8], 8
mov byte [ebp - 0x2b1], 1
jb 0x10108ea4
push str.data_plus_mac_plus_padding_size___1024__1024
push 0x1c7
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.100a5db0
add esp, 0xc
push dword [ebp - 0x308]
call fcn.10087cb0
push eax
call fcn.10081590
add esp, 8
cmp eax, 0x2a0
jg 0x10108fa4
je 0x10108f65
cmp eax, 4
je 0x10108f16
cmp eax, 0x40
jne 0x10108fb9
lea eax, [ebp - 0x2b0]
push eax
call fcn.100aaf60
add esp, 4
test eax, eax
jle 0x1010980b
mov dword [ebp - 0x2dc], 0x10109bf0
mov edx, 8
mov dword [ebp - 0x2bc], 0x100aafb0
mov dword [ebp - 0x2c8], 0x14
jmp 0x10109089
lea eax, [ebp - 0x2b0]
push eax
call fcn.1009e020
add esp, 4
test eax, eax
jle 0x1010980b
mov esi, 0x30
mov dword [ebp - 0x2dc], 0x10109b70
mov dword [ebp - 0x2bc], 0x1009e060
mov dword [ebp - 0x2c8], 0x10
mov dword [ebp - 0x300], esi
mov byte [ebp - 0x2b1], 0
lea edx, [esi - 0x28]
jmp 0x1010908e
lea eax, [ebp - 0x2b0]
push eax
call fcn.100ac7b0
add esp, 4
test eax, eax
jle 0x1010980b
mov dword [ebp - 0x2dc], 0x10109c90
mov edx, 8
mov dword [ebp - 0x2bc], 0x100ac810
mov dword [ebp - 0x2c8], 0x20
jmp 0x10109089
sub eax, 0x2a1
je 0x1010903e
sub eax, 1
je 0x1010901f
sub eax, 1
je 0x10108fe3
push 0x101e8bc8
push 0x209
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.100a5db0
add esp, 0xc
test esi, esi
je 0x1010980b
mov dword [esi], 0
jmp 0x1010980b
lea eax, [ebp - 0x2b0]
push eax
call fcn.100ac470
add esp, 4
test eax, eax
jle 0x1010980b
mov dword [ebp - 0x2dc], 0x10109c90
mov edx, 8
mov dword [ebp - 0x2bc], 0x100ac810
mov dword [ebp - 0x2c8], 0x1c
jmp 0x10109089
lea eax, [ebp - 0x2b0]
push eax
call fcn.100ade00
add esp, 4
test eax, eax
jle 0x1010980b
mov dword [ebp - 0x2c8], edi
jmp 0x1010905f
lea eax, [ebp - 0x2b0]
push eax
call fcn.100ad870
add esp, 4
test eax, eax
jle 0x1010980b
mov dword [ebp - 0x2c8], 0x30
mov edx, 0x10
mov dword [ebp - 0x2bc], 0x100adeb0
mov edi, 0x80
mov dword [ebp - 0x2b8], edx
mov dword [ebp - 0x2e4], edi
mov dword [ebp - 0x2dc], 0x10109d80
mov esi, 0x28
cmp byte [ebx + 0x2c], 0
mov eax, 0xd
mov dword [ebp - 0x2fc], eax
je 0x101090ad
mov eax, dword [ebx + 0x28]
add eax, 0xb
add eax, esi
mov dword [ebp - 0x2fc], eax
xor ecx, ecx
mov esi, eax
cmp byte [ebx + 0x2c], cl
sete cl
sub esi, dword [ebp - 0x2c8]
lea ecx, [ecx*4 + 2]
lea eax, [esi + edx]
mov dword [ebp - 0x2d8], ecx
mov ecx, dword [ebx + 0x20]
add eax, edi
dec ecx
xor edx, edx
add eax, ecx
xor ecx, ecx
div edi
xor edx, edx
xor edi, edi
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 0x2d4], edi
mov esi, dword [ebp - 0x2e4]
mov dword [ebp - 0x2cc], eax
div esi
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x2cc]
add eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x2f8], edx
xor edx, edx
div esi
cmp byte [ebx + 0x2c], cl
mov edx, dword [ebp - 0x2d8]
setne cl
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x2f4]
add edx, ecx
mov ecx, eax
sub ecx, dword [ebp - 0x2d8]
cmp edx, eax
jae 0x1010914d
mov edi, ecx
imul edi, esi
cmp edx, eax
mov dword [ebp - 0x2d4], edi
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x2cc]
shl eax, 3
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x2c0], eax
jne 0x1010924d
lea eax, [eax + esi*8]
push esi
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.10155de0
mov eax, dword [ebx + 0x28]
add esp, 0xc
cmp eax, 0x80
jbe 0x101091af
push str.mac_secret_length___sizeof_hmac_pad_
push 0x271
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.100a5db0
mov eax, dword [ebx + 0x28]
add esp, 0xc
push eax
push dword [ebp - 0x304]
lea eax, [ebp - 0xd8]
push eax
call fcn.10155f40
movaps xmm2, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj_]
add esp, 0xc
xor eax, eax
nop
movups xmm0, xmmword [ebp + eax - 0xd8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xd8], xmm1
movups xmm0, xmmword [ebp + eax - 0xc8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xc8], xmm1
movups xmm0, xmmword [ebp + eax - 0xb8]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0xb8], xmm0
movups xmm0, xmmword [ebp + eax - 0xa8]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xa8], xmm1
add eax, 0x40
cmp eax, esi
jb 0x101091d0
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x2c0]
add esp, 8
mov ecx, eax
shr ecx, 0x18
mov dword [ebp - 0x2cc], ecx
mov ecx, eax
shr ecx, 0x10
shr eax, 8
cmp byte [ebp - 0x2b1], 0
mov dword [ebp - 0x2e8], ecx
mov dword [ebp - 0x2c4], eax
je 0x101092ba
mov eax, dword [ebp - 0x2b8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.10155de0
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2cc]
mov byte [ebp + eax - 0x18], cl
mov ecx, dword [ebp - 0x2e8]
mov byte [ebp + eax - 0x17], cl
mov ecx, dword [ebp - 0x2c4]
mov byte [ebp + eax - 0x16], cl
mov ecx, dword [ebp - 0x2c0]
mov byte [ebp + eax - 0x15], cl
jmp 0x101092f9
push dword [ebp - 0x2b8]
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.10155de0
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2cc]
mov byte [ebp + eax - 0x19], cl
mov ecx, dword [ebp - 0x2e8]
mov byte [ebp + eax - 0x1a], cl
mov ecx, dword [ebp - 0x2c4]
mov byte [ebp + eax - 0x1b], cl
mov ecx, dword [ebp - 0x2c0]
mov byte [ebp + eax - 0x1c], cl
add esp, 0xc
test edi, edi
je 0x10109462
cmp byte [ebx + 0x2c], 0
je 0x101093d1
mov eax, dword [ebp - 0x2fc]
cmp eax, esi
jbe 0x1010980b
push dword [ebp - 0x2ec]
sub eax, esi
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
push dword [ebp - 0x2c0]
mov eax, dword [ebp - 0x2ec]
add eax, esi
push eax
lea eax, [ebp - 0x1d8]
push eax
call fcn.10155f40
mov eax, esi
sub eax, dword [ebp - 0x2c0]
push eax
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x1d8]
add eax, dword [ebp - 0x2c0]
push eax
call fcn.10155f40
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
xor edx, edx
mov eax, edi
div esi
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x10109462
mov edi, dword [ebp - 0x2e0]
sub edi, dword [ebp - 0x2c0]
add edi, esi
dec eax
mov dword [ebp - 0x2c4], eax
nop
lea eax, [ebp - 0x2b0]
push edi
push eax
call dword [ebp - 0x2bc]
add esp, 8
add edi, esi
sub dword [ebp - 0x2c4], 1
jne 0x101093b0
jmp 0x1010945c
mov ecx, dword [ebp - 0x2ec]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [ebp - 0x1d0], eax
mov al, byte [ecx + 0xc]
mov byte [ebp - 0x1cc], al
lea eax, [esi - 0xd]
push eax
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x1cb]
movq qword [ebp - 0x1d8], xmm0
push eax
call fcn.10155f40
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
xor edx, edx
mov eax, edi
div esi
add esp, 0x14
cmp eax, 1
jbe 0x10109462
lea edi, [esi - 0xd]
add edi, dword [ebp - 0x2e0]
dec eax
mov dword [ebp - 0x2c4], eax
nop dword [eax]
lea eax, [ebp - 0x2b0]
push edi
push eax
call dword [ebp - 0x2bc]
add esp, 8
add edi, esi
sub dword [ebp - 0x2c4], 1
jne 0x10109440
mov edi, dword [ebp - 0x2d4]
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.10155de0
mov eax, dword [ebp - 0x2d8]
add esp, 0xc
mov edx, dword [ebp - 0x2f0]
add eax, edx
mov dword [ebp - 0x31c], eax
cmp edx, eax
ja 0x10109758
mov ecx, dword [ebp - 0x2f8]
mov eax, ecx
shr eax, 0x1f
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x2d4], esi
lea eax, [ecx + 1]
mov dword [ebp - 0x2d8], ecx
neg dword [ebp - 0x2d8]
shr eax, 0x1f
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2b8]
sub dword [ebp - 0x2d4], eax
sub eax, esi
lea eax, [ebp + eax - 0x14]
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0x158]
add eax, ecx
mov dword [ebp - 0x318], eax
mov eax, edx
xor esi, esi
xor eax, dword [ebp - 0x30c]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and dl, al
mov eax, dword [ebp - 0x2f0]
xor eax, dword [ebp - 0x310]
neg dl
mov dword [ebp - 0x2e8], edx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [ebp - 0x2f4], ecx
movd xmm0, eax
mov al, cl
not al
punpcklbw xmm0, xmm0
mov byte [ebp - 0x2ce], al
or al, dl
mov edx, dword [ebp - 0x2d8]
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov byte [ebp - 0x2cd], al
mov eax, dword [ebp - 0x2f8]
movaps xmmword [ebp - 0x350], xmm0
mov dword [ebp - 0x2c0], edx
mov dword [ebp - 0x2cc], eax
nop dword [eax + eax]
mov ecx, dword [ebp - 0x2fc]
mov byte [ebp - 0x2b1], 0
cmp edi, ecx
jae 0x10109589
mov eax, dword [ebp - 0x2ec]
jmp 0x1010959a
mov eax, dword [ebx + 0x20]
add eax, ecx
cmp edi, eax
jae 0x101095a3
mov eax, dword [ebp - 0x2e0]
sub eax, ecx
mov al, byte [eax + edi]
mov byte [ebp - 0x2b1], al
mov eax, dword [ebp - 0x314]
mov ecx, esi
shr ecx, 0x1f
inc edi
shr edx, 0x1f
xor dl, al
xor al, cl
or dl, al
mov eax, dword [ebp - 0x2c0]
dec eax
xor dl, cl
shr eax, 0x1f
dec dl
xor al, byte [ebp - 0x2c4]
and dl, byte [ebp - 0x2e8]
mov dword [ebp - 0x2b8], eax
mov al, byte [ebp - 0x2c4]
xor al, cl
or byte [ebp - 0x2b8], al
mov al, dl
xor byte [ebp - 0x2b8], cl
not al
mov ecx, dword [ebp - 0x2b8]
and dl, 0x80
and al, byte [ebp - 0x2b1]
dec cl
and cl, byte [ebp - 0x2e8]
or al, dl
not cl
and cl, al
and cl, byte [ebp - 0x2cd]
mov dword [ebp - 0x2b8], ecx
cmp esi, dword [ebp - 0x2d4]
jb 0x1010963d
mov eax, dword [ebp - 0x2cc]
mov cl, byte [ebp - 0x2f4]
and cl, byte [eax]
mov al, byte [ebp - 0x2ce]
and al, byte [ebp - 0x2b8]
or cl, al
mov edx, dword [ebp - 0x2c0]
inc esi
mov eax, dword [ebp - 0x318]
inc dword [ebp - 0x2cc]
mov byte [eax + edx], cl
inc edx
mov dword [ebp - 0x2c0], edx
cmp esi, dword [ebp - 0x2e4]
jb 0x10109570
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2dc]
mov edx, dword [ebp - 0x2c8]
add esp, 0x10
xor eax, eax
cmp edx, 0x40
jb 0x1010971f
movaps xmm2, xmmword [ebp - 0x350]
mov ecx, edx
and ecx, 0xffffffc0
nop
movups xmm0, xmmword [ebp + eax - 0x58]
movups xmm1, xmmword [ebp + eax - 0x158]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x58], xmm1
movups xmm0, xmmword [ebp + eax - 0x48]
movups xmm1, xmmword [ebp + eax - 0x148]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x48], xmm1
movups xmm0, xmmword [ebp + eax - 0x38]
movups xmm1, xmmword [ebp + eax - 0x138]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x38], xmm1
movups xmm1, xmmword [ebp + eax - 0x128]
movups xmm0, xmmword [ebp + eax - 0x28]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x28], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x101096b0
cmp eax, edx
jae 0x10109739
mov cl, byte [ebp + eax - 0x158]
and cl, byte [ebp - 0x2f4]
or byte [ebp + eax - 0x58], cl
inc eax
cmp eax, edx
jb 0x10109723
mov edx, dword [ebp - 0x2f0]
inc edx
mov dword [ebp - 0x2f0], edx
cmp edx, dword [ebp - 0x31c]
jbe 0x101094e3
mov esi, dword [ebp - 0x2e4]
lea eax, [ebp - 0x340]
push eax
call fcn.100847d0
mov eax, dword [ebp - 0x308]
push 0
push dword [eax]
lea eax, [ebp - 0x340]
push eax
call fcn.10084280
add esp, 0x10
test eax, eax
jle 0x101097fc
cmp byte [ebx + 0x2c], 0
je 0x10109820
mov esi, dword [ebp - 0x300]
lea eax, [ebp - 0xd8]
push esi
push 0x5c
push eax
call fcn.10155de0
push dword [ebx + 0x28]
lea eax, [ebp - 0x340]
push dword [ebp - 0x304]
push eax
call fcn.10084420
add esp, 0x18
test eax, eax
jle 0x101097fc
push esi
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.10084420
add esp, 0xc
test eax, eax
jle 0x101097fc
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.10084420
add esp, 0xc
test eax, eax
jg 0x101098d0
lea eax, [ebp - 0x340]
push eax
call fcn.10084430
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movaps xmm2, xmmword [0x101b2270]
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0xd8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xd8], xmm1
movups xmm0, xmmword [ebp + eax - 0xc8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xc8], xmm1
movups xmm0, xmmword [ebp + eax - 0xb8]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0xb8], xmm0
movups xmm0, xmmword [ebp + eax - 0xa8]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xa8], xmm1
add eax, 0x40
cmp eax, esi
jb 0x10109830
push esi
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.10084420
add esp, 0xc
test eax, eax
jle 0x101097fc
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.10084420
add esp, 0xc
test eax, eax
jle 0x101097fc
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0x320]
lea eax, [ebp - 0x340]
push eax
call fcn.100841a0
mov ecx, dword [ebp - 0x324]
add esp, 0xc
test ecx, ecx
je 0x101098fe
mov eax, dword [ebp - 0x328]
mov dword [ecx], eax
lea eax, [ebp - 0x340]
push eax
call fcn.10084430
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.10153588
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret