Function at 0x100aa1f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x344
call fcn.1005d3c0
mov eax, dword [0x101c10e0]
xor eax, esp
mov dword [esp + 0x340], eax
cmp dword [ebp + 0x20], 0x100000
mov eax, dword [ebp + 8]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x7c], eax
mov ebx, 0x40
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esp + 0x48], eax
mov edi, 8
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x88], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], 0x28
mov dword [esp + 0x30], edi
mov byte [esp + 0x1b], 1
jb 0x100aa27d
push 0xa9
push str.ssl_s3_cbc.c
push str.assertion_failed:_data_plus_mac_plus_padding_size___1024__1024
call fcn.100c1260
add esp, 0xc
push dword [esp + 0x6c]
call fcn.100b6e10
push eax
call fcn.100855a0
add esp, 8
cmp eax, 0x2a0
jg 0x100aa352
je 0x100aa320
cmp eax, 4
je 0x100aa2e0
cmp eax, 0x40
jne 0x100aa367
lea eax, [esp + 0xa0]
push eax
call fcn.100de7f0
add esp, 4
test eax, eax
jle 0x100aaaf6
mov dword [esp + 0x44], 0x100aacd0
mov ecx, 0x14
mov dword [esp + 0x1c], 0x100de830
jmp 0x100aa42d
lea eax, [esp + 0xa0]
push eax
call fcn.100bdef0
add esp, 4
test eax, eax
jle 0x100aaaf6
mov edx, 0x30
mov dword [esp + 0x44], 0x100aac50
mov dword [esp + 0x1c], 0x100bdf30
mov ecx, 0x10
mov dword [esp + 0x64], edx
mov byte [esp + 0x1b], 0
jmp 0x100aa432
lea eax, [esp + 0xa0]
push eax
call fcn.100bf9b0
add esp, 4
test eax, eax
jle 0x100aaaf6
mov dword [esp + 0x44], 0x100aad70
mov ecx, 0x20
mov dword [esp + 0x1c], 0x100bfa10
jmp 0x100aa42d
sub eax, 0x2a1
je 0x100aa3ee
sub eax, 1
je 0x100aa3d2
sub eax, 1
je 0x100aa3a3
push 0xe7
push str.ssl_s3_cbc.c
push str.assertion_failed:_0
call fcn.100c1260
add esp, 0xc
test esi, esi
je 0x100aaaf6
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xa0]
push eax
call fcn.100bf670
add esp, 4
test eax, eax
jle 0x100aaaf6
mov dword [esp + 0x44], 0x100aad70
mov ecx, 0x1c
mov dword [esp + 0x1c], 0x100bfa10
jmp 0x100aa42d
lea eax, [esp + 0xa0]
push eax
call fcn.100e0460
add esp, 4
test eax, eax
jle 0x100aaaf6
mov ecx, ebx
jmp 0x100aa40b
lea eax, [esp + 0xa0]
push eax
call fcn.100dfed0
add esp, 4
test eax, eax
jle 0x100aaaf6
mov ecx, 0x30
mov edi, 0x10
mov dword [esp + 0x1c], 0x100e0510
mov ebx, 0x80
mov dword [esp + 0x30], edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], 0x100aae60
mov edx, 0x28
cmp byte [ebp + 0x2c], 0
mov eax, 0xd
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], eax
je 0x100aa451
mov eax, dword [ebp + 0x28]
add eax, 0xb
add eax, edx
mov dword [esp + 0x54], eax
xor edx, edx
mov esi, eax
cmp byte [ebp + 0x2c], dl
sete dl
sub esi, ecx
mov ecx, dword [ebp + 0x20]
dec ecx
lea edx, [edx*4 + 2]
mov dword [esp + 0x38], edx
lea eax, [esi + edi]
add eax, ebx
xor edx, edx
add eax, ecx
xor edi, edi
div ebx
mov ecx, dword [ebp + 0x1c]
xor edx, edx
add ecx, esi
mov dword [esp + 0x40], eax
mov eax, ecx
mov esi, dword [esp + 0x30]
div ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x60], edx
xor edx, edx
mov dword [esp + 0x70], eax
lea eax, [ecx + esi]
div ebx
mov edx, dword [esp + 0x38]
xor ecx, ecx
cmp byte [ebp + 0x2c], cl
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x40]
setne cl
add edx, ecx
mov dword [esp + 0x34], edi
mov ecx, eax
sub ecx, dword [esp + 0x38]
cmp edx, eax
jae 0x100aa4ce
mov edi, ecx
imul edi, ebx
cmp edx, eax
mov dword [esp + 0x34], edi
sbb eax, eax
and eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
shl eax, 3
cmp byte [ebp + 0x2c], 0
mov dword [esp + 0x24], eax
jne 0x100aa5c8
lea eax, [eax + ebx*8]
push ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1cc]
push 0
push eax
call fcn.1005e5b0
mov eax, dword [ebp + 0x28]
add esp, 0xc
cmp eax, 0x80
jbe 0x100aa529
push 0x14f
push str.ssl_s3_cbc.c
push str.assertion_failed:_mac_secret_length___sizeof_hmac_pad_
call fcn.100c1260
mov eax, dword [ebp + 0x28]
add esp, 0xc
push eax
push dword [esp + 0x6c]
lea eax, [esp + 0x1d0]
push eax
call fcn.1005ec70
movaps xmm2, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj]
add esp, 0xc
xor eax, eax
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x1c8]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [esp + eax + 0x1c8], xmm0
movups xmm0, xmmword [esp + eax + 0x1d8]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1d8], xmm1
movups xmm0, xmmword [esp + eax + 0x1e8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1e8], xmm1
movups xmm0, xmmword [esp + eax + 0x1f8]
pxor xmm0, xmm2
movups xmmword [esp + eax + 0x1f8], xmm0
add eax, 0x40
cmp eax, ebx
jb 0x100aa550
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0xa4]
push eax
call dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add esp, 8
mov ecx, eax
shr ecx, 0x18
mov dword [esp + 0x4c], ecx
mov ecx, eax
shr ecx, 0x10
shr eax, 8
cmp byte [esp + 0x1b], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
je 0x100aa629
lea eax, [esi - 4]
push eax
lea eax, [esp + 0x17c]
push 0
push eax
call fcn.1005e5b0
mov eax, dword [esp + 0x58]
mov byte [esp + esi + 0x180], al
mov eax, dword [esp + 0x48]
mov byte [esp + esi + 0x181], al
mov eax, dword [esp + 0x4c]
mov byte [esp + esi + 0x182], al
mov eax, dword [esp + 0x30]
mov byte [esp + esi + 0x183], al
jmp 0x100aa665
push esi
lea eax, [esp + 0x17c]
push 0
push eax
call fcn.1005e5b0
mov eax, dword [esp + 0x58]
mov byte [esp + esi + 0x17f], al
mov eax, dword [esp + 0x48]
mov byte [esp + esi + 0x17e], al
mov eax, dword [esp + 0x4c]
mov byte [esp + esi + 0x17d], al
mov eax, dword [esp + 0x30]
mov byte [esp + esi + 0x17c], al
add esp, 0xc
test edi, edi
je 0x100aa7af
cmp byte [ebp + 0x2c], 0
je 0x100aa720
mov eax, dword [esp + 0x54]
cmp eax, ebx
jbe 0x100aaaf6
push dword [esp + 0x50]
sub eax, ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0xa4]
push eax
call dword [esp + 0x24]
push dword [esp + 0x2c]
mov eax, dword [esp + 0x5c]
add eax, ebx
push eax
lea eax, [esp + 0x258]
push eax
call fcn.1005ec70
mov eax, ebx
sub eax, dword [esp + 0x38]
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x264]
add eax, dword [esp + 0x40]
push eax
call fcn.1005ec70
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0xc4]
push eax
call dword [esp + 0x44]
xor edx, edx
mov eax, edi
div ebx
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x100aa7af
mov esi, dword [esp + 0x48]
lea edi, [eax - 1]
sub esi, dword [esp + 0x24]
add esi, ebx
lea eax, [esp + 0xa0]
push esi
push eax
call dword [esp + 0x24]
add esp, 8
add esi, ebx
sub edi, 1
jne 0x100aa704
jmp 0x100aa7a7
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x250], eax
mov al, byte [ecx + 0xc]
mov byte [esp + 0x254], al
lea eax, [ebx - 0xd]
push eax
push dword [esp + 0x4c]
lea eax, [esp + 0x25d]
movq qword [esp + 0x250], xmm0
push eax
call fcn.1005ec70
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0xb0]
push eax
call dword [esp + 0x30]
xor edx, edx
mov eax, edi
div ebx
add esp, 0x14
cmp eax, 1
jbe 0x100aa7af
mov esi, dword [esp + 0x48]
lea edi, [eax - 1]
add esi, 0xfffffff3
add esi, ebx
nop dword [eax + eax]
lea eax, [esp + 0xa0]
push esi
push eax
call dword [esp + 0x24]
add esp, 8
add esi, ebx
sub edi, 1
jne 0x100aa790
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
push 0x40
lea eax, [esp + 0x18c]
push 0
push eax
call fcn.1005e5b0
mov eax, dword [esp + 0x44]
add esp, 0xc
mov edx, dword [esp + 0x5c]
add eax, edx
mov dword [esp + 0x80], eax
cmp edx, eax
ja 0x100aaa5d
mov eax, dword [esp + 0x60]
mov ecx, eax
shr ecx, 0x1f
mov dword [esp + 0x40], ecx
lea ecx, [eax + 1]
shr ecx, 0x1f
mov dword [esp + 0x3c], ecx
mov ecx, ebx
sub ecx, esi
sub esi, ebx
mov dword [esp + 0x78], ecx
mov ecx, eax
neg ecx
lea eax, [esp + eax + 0x2c8]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x178]
add ecx, esi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x30], ecx
nop dword [eax]
mov eax, edx
xor esi, esi
xor eax, dword [esp + 0x70]
lea ebx, [eax - 1]
not eax
shr eax, 0x1f
shr ebx, 0x1f
and bl, al
mov eax, edx
xor eax, dword [esp + 0x74]
neg bl
mov edx, dword [esp + 0x60]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], edx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [esp + 0x24], ecx
movd xmm0, eax
mov ah, cl
mov ecx, dword [esp + 0x30]
not ah
punpcklbw xmm0, xmm0
mov al, ah
punpcklwd xmm0, xmm0
or al, bl
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x90], xmm0
mov byte [esp + 0x23], ah
mov byte [esp + 0x2f], al
mov dword [esp + 0x34], ecx
jmp 0x100aa896
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x1b], 0
cmp edi, ecx
jae 0x100aa8b0
mov ecx, dword [esp + 0x50]
mov al, byte [ecx + edi]
mov byte [esp + 0x1b], al
jmp 0x100aa8ca
mov eax, dword [ebp + 0x20]
add eax, ecx
cmp edi, eax
jae 0x100aa8c6
mov eax, dword [esp + 0x48]
sub eax, ecx
mov al, byte [eax + edi]
mov byte [esp + 0x1b], al
mov ah, byte [esp + 0x23]
mov al, byte [esp + 0x40]
mov ecx, esi
shr edx, 0x1f
inc edi
xor dl, byte [esp + 0x40]
shr ecx, 0x1f
xor al, cl
or dl, al
mov al, byte [esp + 0x3c]
xor dl, cl
xor al, cl
dec dl
and dl, bl
mov ebx, dword [esp + 0x38]
dec ebx
shr ebx, 0x1f
xor bl, byte [esp + 0x3c]
or bl, al
mov al, dl
xor bl, cl
not al
and al, byte [esp + 0x1b]
dec bl
and bl, byte [esp + 0x4c]
and dl, 0x80
not bl
or al, dl
and bl, al
and bl, byte [esp + 0x2f]
cmp esi, dword [esp + 0x78]
jb 0x100aa92c
mov edx, dword [esp + 0x34]
mov cl, ah
mov al, byte [esp + 0x24]
and bl, cl
and al, byte [edx]
or bl, al
mov edx, dword [esp + 0x38]
inc esi
mov ecx, dword [esp + 0x7c]
inc dword [esp + 0x34]
mov byte [ecx + edx], bl
inc edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x38], edx
cmp esi, ebx
jb 0x100aa892
lea eax, [esp + 0x2c8]
push eax
lea eax, [esp + 0xa4]
push eax
call dword [esp + 0x24]
lea eax, [esp + 0x2d0]
push eax
lea eax, [esp + 0xac]
push eax
call dword [esp + 0x54]
mov edx, dword [esp + 0x38]
add esp, 0x10
xor eax, eax
cmp edx, 0x40
jb 0x100aaa2b
movaps xmm2, xmmword [esp + 0x90]
mov ecx, edx
and ecx, 0xffffffc0
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [esp + eax + 0x188]
movups xmm1, xmmword [esp + eax + 0x2c8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x188], xmm1
movups xmm0, xmmword [esp + eax + 0x198]
movups xmm1, xmmword [esp + eax + 0x2d8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x198], xmm1
movups xmm0, xmmword [esp + eax + 0x1a8]
movups xmm1, xmmword [esp + eax + 0x2e8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x1a8], xmm1
movups xmm1, xmmword [esp + eax + 0x2f8]
movups xmm0, xmmword [esp + eax + 0x1b8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x1b8], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x100aa9a0
cmp eax, edx
jae 0x100aaa47
nop
mov cl, byte [esp + eax + 0x2c8]
and cl, byte [esp + 0x24]
or byte [esp + eax + 0x188], cl
inc eax
cmp eax, edx
jb 0x100aaa30
mov edx, dword [esp + 0x5c]
inc edx
mov dword [esp + 0x5c], edx
cmp edx, dword [esp + 0x80]
jbe 0x100aa820
call fcn.100b2260
mov esi, eax
test esi, esi
je 0x100aaaed
push 0
push dword [esp + 0x70]
call fcn.100b6e10
add esp, 4
push eax
push esi
call fcn.100b1da0
add esp, 0xc
test eax, eax
jle 0x100aaaed
cmp byte [ebp + 0x2c], 0
je 0x100aab0d
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x1c8]
push edi
push 0x5c
push eax
call fcn.1005e5b0
push dword [ebp + 0x28]
push dword [esp + 0x78]
push esi
call fcn.100b1f40
add esp, 0x18
test eax, eax
jle 0x100aaaed
push edi
lea eax, [esp + 0x1cc]
push eax
push esi
call fcn.100b1f40
add esp, 0xc
test eax, eax
jle 0x100aaaed
push dword [esp + 0x28]
lea eax, [esp + 0x18c]
push eax
push esi
call fcn.100b1f40
add esp, 0xc
test eax, eax
jg 0x100aabba
push esi
call fcn.100b2240
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret
movaps xmm2, xmmword [0x10177650]
xor eax, eax
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x1c8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1c8], xmm1
movups xmm0, xmmword [esp + eax + 0x1d8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1d8], xmm1
movups xmm0, xmmword [esp + eax + 0x1e8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1e8], xmm1
movups xmm0, xmmword [esp + eax + 0x1f8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1f8], xmm1
add eax, 0x40
cmp eax, ebx
jb 0x100aab20
push ebx
lea eax, [esp + 0x1cc]
push eax
push esi
call fcn.100b1f40
add esp, 0xc
test eax, eax
jle 0x100aaaed
push dword [esp + 0x28]
lea eax, [esp + 0x18c]
push eax
push esi
call fcn.100b1f40
add esp, 0xc
test eax, eax
jle 0x100aaaed
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x88]
push esi
call fcn.100b1cd0
add esp, 0xc
test eax, eax
je 0x100aabea
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x100aabea
mov eax, dword [esp + 0x8c]
mov dword [ecx], eax
push esi
call fcn.100b2240
mov ecx, dword [esp + 0x350]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret