Function at 0x101b2400
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, 0x338
mov eax, dword [0x1041f700]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x20], 0x100000
mov eax, dword [ebx + 8]
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x2fc], 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 - 0x2e4], eax
mov edi, 0x40
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x2f0], esi
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2b8], 8
mov byte [ebp - 0x2b1], 1
jb 0x101b249a
push str.data_plus_mac_plus_padding_size___10241024
push 0x1a1
push str.Z:metasploit_payloadscmeterpreterdepslibressl_ssl_s3_cbc.c
call fcn.10112bb0
add esp, 0xc
push dword [ebp - 0x2e8]
call fcn.10136cb0
push eax
call fcn.101278d0
add esp, 8
cmp eax, 0x2a0
jg 0x101b254e
je 0x101b2524
cmp eax, 4
je 0x101b24f3
cmp eax, 0x40
jne 0x101b255b
lea eax, [ebp - 0x2b0]
push eax
call fcn.1014dcf0
mov dword [ebp - 0x2cc], 0x101b2d90
mov eax, 0x14
mov dword [ebp - 0x2c0], 0x10146940
jmp 0x101b2602
lea eax, [ebp - 0x2b0]
push eax
call fcn.10145da0
mov dword [ebp - 0x2cc], 0x101b2d10
mov eax, 0x10
mov dword [ebp - 0x2c0], 0x10145de0
mov byte [ebp - 0x2b1], 0
jmp 0x101b2602
lea eax, [ebp - 0x2b0]
push eax
call fcn.10149280
mov dword [ebp - 0x2cc], 0x101b2e30
mov eax, 0x20
mov dword [ebp - 0x2c0], 0x101492e0
jmp 0x101b2602
sub eax, 0x2a1
je 0x101b25c8
dec eax
je 0x101b25b8
dec eax
je 0x101b2591
push 0x1028f5b8
push 0x1d1
push str.Z:metasploit_payloadscmeterpreterdepslibressl_ssl_s3_cbc.c
call fcn.10112bb0
add esp, 0xc
test esi, esi
je 0x101b257c
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101c7f5c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x2b0]
push eax
call fcn.10148f40
mov dword [ebp - 0x2cc], 0x101b2e30
mov eax, 0x1c
mov dword [ebp - 0x2c0], 0x101492e0
jmp 0x101b2602
lea eax, [ebp - 0x2b0]
push eax
call fcn.1014a9c0
mov eax, edi
jmp 0x101b25d9
lea eax, [ebp - 0x2b0]
push eax
call fcn.1014a380
mov eax, 0x30
mov edi, 0x80
mov dword [ebp - 0x2b8], 0x10
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2c0], 0x1014aa70
mov dword [ebp - 0x2cc], 0x101b2f20
mov ecx, dword [ebx + 0x20]
mov esi, 0xd
sub esi, eax
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2b8]
dec ecx
add eax, esi
xor edx, edx
add eax, edi
add esp, 4
add eax, ecx
mov ecx, dword [ebx + 0x1c]
div edi
add ecx, esi
xor edx, edx
mov esi, dword [ebp - 0x2c8]
xor edi, edi
mov dword [ebp - 0x2d8], eax
mov eax, ecx
div esi
mov dword [ebp - 0x2d0], edi
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x2dc], edx
add eax, ecx
xor edx, edx
mov dword [ebp - 0x2e0], edi
div esi
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2d8]
cmp eax, 6
jbe 0x101b2686
lea edi, [eax - 6]
mov dword [ebp - 0x2d0], edi
imul edi, esi
mov dword [ebp - 0x2e0], edi
lea eax, [ecx + esi]
shl eax, 3
push esi
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.101b9cb0
mov eax, dword [ebx + 0x28]
add esp, 0xc
cmp eax, 0x80
jbe 0x101b26c8
push str.mac_secret_length___sizeof_hmac_pad_
push 0x212
push str.Z:metasploit_payloadscmeterpreterdepslibressl_ssl_s3_cbc.c
call fcn.10112bb0
mov eax, dword [ebx + 0x28]
add esp, 0xc
push eax
push dword [ebp - 0x2d4]
lea eax, [ebp - 0xd8]
push eax
call fcn.101b8700
add esp, 0xc
xor ecx, ecx
test esi, esi
je 0x101b273d
cmp esi, 0x20
jb 0x101b2726
movdqa xmm1, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj_]
mov eax, esi
and eax, 0x1f
mov edx, esi
sub edx, eax
lea eax, [ebp - 0xc8]
movdqu xmm0, xmmword [eax - 0x10]
add ecx, 0x20
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movdqu xmmword [eax - 0x30], xmm0
movdqu xmm0, xmmword [eax - 0x20]
pxor xmm0, xmm1
movdqu xmmword [eax - 0x20], xmm0
cmp ecx, edx
jb 0x101b2700
cmp ecx, esi
jae 0x101b273d
lea ebx, [ebx]
xor byte [ebp + ecx - 0xd8], 0x36
inc ecx
cmp ecx, esi
jb 0x101b2730
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2c0]
add esp, 8
cmp byte [ebp - 0x2b1], 0
je 0x101b27a2
mov eax, dword [ebp - 0x2b8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.101b9cb0
mov ecx, dword [ebp - 0x2bc]
add esp, 0xc
mov edx, dword [ebp - 0x2b8]
mov eax, ecx
shr eax, 0x18
mov byte [ebp + edx - 0x18], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + edx - 0x17], al
mov eax, ecx
shr eax, 8
mov byte [ebp + edx - 0x16], al
mov byte [ebp + edx - 0x15], cl
jmp 0x101b27e1
push dword [ebp - 0x2b8]
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.101b9cb0
mov ecx, dword [ebp - 0x2bc]
add esp, 0xc
mov edx, dword [ebp - 0x2b8]
mov eax, ecx
shr eax, 0x18
mov byte [ebp + edx - 0x19], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + edx - 0x1a], al
mov eax, ecx
shr eax, 8
mov byte [ebp + edx - 0x1b], al
mov byte [ebp + edx - 0x1c], cl
test edi, edi
je 0x101b2876
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 - 0x2e4]
lea eax, [ebp - 0x1cb]
movq qword [ebp - 0x1d8], xmm0
push eax
call fcn.101b8700
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2c0]
xor edx, edx
mov eax, edi
div esi
add esp, 0x14
cmp eax, 1
jbe 0x101b2876
lea edi, [esi - 0xd]
add edi, dword [ebp - 0x2e4]
dec eax
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x2b0]
push edi
push eax
call dword [ebp - 0x2c0]
add esp, 8
add edi, esi
dec dword [ebp - 0x2bc]
jne 0x101b2855
mov edi, dword [ebp - 0x2e0]
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.101b9cb0
mov eax, dword [ebp - 0x2d0]
add esp, 0xc
lea ecx, [eax + 6]
mov dword [ebp - 0x308], ecx
cmp eax, ecx
ja 0x101b2ac1
lea ecx, [ecx]
mov ecx, eax
mov edx, eax
xor ecx, dword [ebp - 0x2f8]
xor edx, dword [ebp - 0x2f4]
dec ecx
sar ecx, 0x1f
dec edx
movsx eax, cl
sar edx, 0x1f
mov dword [ebp - 0x2d4], edx
mov dword [ebp - 0x2d8], ecx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movdqa xmmword [ebp - 0x330], xmm0
test esi, esi
je 0x101b29dc
mov ch, cl
not ch
mov al, ch
or al, dl
mov byte [ebp - 0x2b1], al
mov eax, esi
sub eax, dword [ebp - 0x2b8]
mov esi, dword [ebp - 0x2dc]
mov dword [ebp - 0x300], eax
neg esi
mov eax, dword [ebp - 0x2b8]
sub eax, dword [ebp - 0x2c8]
lea eax, [ebp + eax - 0x14]
mov dword [ebp - 0x2bc], eax
xor cl, cl
cmp edi, 0xd
jae 0x101b2934
mov eax, dword [ebp - 0x2ec]
mov cl, byte [eax + edi]
jmp 0x101b2948
mov eax, dword [ebx + 0x20]
add eax, 0xd
cmp edi, eax
jae 0x101b2948
mov eax, dword [ebp - 0x2e4]
mov cl, byte [eax + edi - 0xd]
mov eax, esi
inc edi
not eax
mov dword [ebp - 0x2e0], edi
sar eax, 0x1f
and al, dl
mov dl, al
and al, 0x80
not dl
and dl, cl
or dl, al
lea eax, [esi - 1]
not eax
sar eax, 0x1f
and al, byte [ebp - 0x2d4]
not al
and dl, al
mov eax, dword [ebp - 0x2dc]
and dl, byte [ebp - 0x2b1]
add eax, esi
cmp eax, dword [ebp - 0x300]
jb 0x101b29a0
mov eax, dword [ebp - 0x2bc]
mov cl, byte [ebp - 0x2d8]
and cl, byte [eax]
mov al, ch
and al, dl
or cl, al
mov dl, cl
inc dword [ebp - 0x2bc]
lea eax, [ebp - 0x158]
add eax, dword [ebp - 0x2dc]
mov edi, dword [ebp - 0x2e0]
mov byte [eax + esi], dl
inc esi
mov eax, dword [ebp - 0x2dc]
mov edx, dword [ebp - 0x2d4]
add eax, esi
cmp eax, dword [ebp - 0x2c8]
jb 0x101b2922
mov esi, dword [ebp - 0x2c8]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2c0]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2cc]
mov edx, dword [ebp - 0x2c4]
add esp, 0x10
xor eax, eax
test edx, edx
je 0x101b2aa8
cmp edx, 0x20
jb 0x101b2a77
movdqa xmm2, xmmword [ebp - 0x330]
mov ecx, edx
and ecx, 0x1f
sub edx, ecx
jmp 0x101b2a30
movdqu xmm0, xmmword [ebp + eax - 0x58]
movdqu xmm1, xmmword [ebp + eax - 0x158]
pand xmm1, xmm2
por xmm1, xmm0
movdqu xmmword [ebp + eax - 0x58], xmm1
movdqu xmm1, xmmword [ebp + eax - 0x148]
movdqu xmm0, xmmword [ebp + eax - 0x48]
pand xmm1, xmm2
por xmm1, xmm0
movdqu xmmword [ebp + eax - 0x48], xmm1
add eax, 0x20
cmp eax, edx
jb 0x101b2a30
mov edx, dword [ebp - 0x2c4]
cmp eax, edx
jae 0x101b2aa8
mov edx, dword [ebp - 0x2d8]
mov esi, dword [ebp - 0x2c4]
jmp 0x101b2a90
mov cl, byte [ebp + eax - 0x158]
and cl, dl
or byte [ebp + eax - 0x58], cl
inc eax
cmp eax, esi
jb 0x101b2a90
mov esi, dword [ebp - 0x2c8]
mov eax, dword [ebp - 0x2d0]
inc eax
mov dword [ebp - 0x2d0], eax
cmp eax, dword [ebp - 0x308]
jbe 0x101b28a0
lea eax, [ebp - 0x320]
push eax
call fcn.10110120
mov eax, dword [ebp - 0x2e8]
push 0
push dword [eax]
lea eax, [ebp - 0x320]
push eax
call fcn.1010fc70
add esp, 0x10
test eax, eax
jne 0x101b2b0e
lea eax, [ebp - 0x320]
push eax
call fcn.1010fe70
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101c7f5c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor ecx, ecx
test esi, esi
je 0x101b2b6d
cmp esi, 0x20
jb 0x101b2b56
movdqa xmm1, xmmword [0x102ce200]
mov eax, esi
and eax, 0x1f
mov edx, esi
sub edx, eax
lea eax, [ebp - 0xc8]
movdqu xmm0, xmmword [eax - 0x10]
add ecx, 0x20
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movdqu xmmword [eax - 0x30], xmm0
movdqu xmm0, xmmword [eax - 0x20]
pxor xmm0, xmm1
movdqu xmmword [eax - 0x20], xmm0
cmp ecx, edx
jb 0x101b2b30
cmp ecx, esi
jae 0x101b2b6d
lea ebx, [ebx]
xor byte [ebp + ecx - 0xd8], 0x6a
inc ecx
cmp ecx, esi
jb 0x101b2b60
push esi
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.1010fe60
push dword [ebp - 0x2c4]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.1010fe60
lea eax, [ebp - 0x304]
push eax
push dword [ebp - 0x2fc]
lea eax, [ebp - 0x320]
push eax
call fcn.1010fb90
mov ecx, dword [ebp - 0x2f0]
add esp, 0x24
test ecx, ecx
je 0x101b2bc5
mov eax, dword [ebp - 0x304]
mov dword [ecx], eax
lea eax, [ebp - 0x320]
push eax
call fcn.1010fe70
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.101c7f5c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret