Function at 0x130f5340
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x324
call fcn.13020d10
mov eax, dword [0x13147f14]
xor eax, esp
mov dword [esp + 0x320], eax
cmp dword [esp + 0x340], 0x100000
mov eax, dword [esp + 0x32c]
mov ecx, dword [esp + 0x334]
mov edx, dword [esp + 0x338]
push ebx
mov ebx, dword [esp + 0x334]
push esi
push edi
mov edi, dword [esp + 0x334]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x350]
mov dword [esp + 0x64], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x40], eax
mov esi, 0x40
mov dword [esp + 0x3c], 0x28
mov dword [esp + 0x18], 8
mov byte [esp + 0xf], 1
jb 0x130f53db
push str.data_plus_mac_plus_padding_size___10241024
push 0x1cc
push str.._ssl_s3_cbc.c
call fcn.13081270
add esp, 0xc
mov ecx, dword [edi]
mov eax, dword [ecx]
cmp eax, 0x2a0
jg 0x130f5484
je 0x130f545a
cmp eax, 4
je 0x130f5423
cmp eax, esi
jne 0x130f5499
lea edx, [esp + 0x84]
push edx
call fcn.130badf0
mov dword [esp + 0x24], 0x130f5100
mov dword [esp + 0x14], 0x1309deb0
mov dword [esp + 0x18], 0x14
jmp 0x130f5542
lea eax, [esp + 0x84]
push eax
call fcn.1307bb30
mov dword [esp + 0x24], 0x130f5070
mov dword [esp + 0x14], 0x1307b9e0
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x40], 0x30
mov byte [esp + 0x13], 0
jmp 0x130f5542
lea ecx, [esp + 0x84]
push ecx
call fcn.1309e080
mov dword [esp + 0x24], 0x130f51b0
mov dword [esp + 0x14], 0x1309e1c0
mov dword [esp + 0x18], 0x20
jmp 0x130f5542
sub eax, 0x2a1
je 0x130f5510
sub eax, 1
je 0x130f54fd
sub eax, 1
je 0x130f54d6
push 0x1310bfb4
push 0x202
push str.._ssl_s3_cbc.c
call fcn.13081270
add esp, 0xc
test ebx, ebx
je 0x130f5acf
pop edi
pop esi
mov dword [ebx], 0xffffffff
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.130222cb
add esp, 0x324
ret
lea edx, [esp + 0x84]
push edx
call fcn.1309e020
mov dword [esp + 0x24], 0x130f51b0
mov dword [esp + 0x14], 0x1309e1c0
mov dword [esp + 0x18], 0x1c
jmp 0x130f5542
lea eax, [esp + 0x84]
push eax
call fcn.1309e560
mov dword [esp + 0x18], esi
jmp 0x130f5525
lea ecx, [esp + 0x84]
push ecx
call fcn.1309e4c0
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], 0x10
mov esi, 0x80
mov dword [esp + 0x14], 0x1309eb90
mov dword [esp + 0x24], 0x130f52b0
mov bl, byte [esp + 0x35c]
add esp, 4
mov dword [esp + 0x30], 0xd
test bl, bl
je 0x130f556b
mov edx, dword [esp + 0x354]
mov eax, dword [esp + 0x3c]
lea ecx, [eax + edx + 0xb]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
xor edx, edx
test bl, bl
sete dl
sub ecx, dword [esp + 0x14]
push ebp
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea edx, [edx*4 + 2]
mov dword [esp + 0x28], edx
lea edx, [ecx + eax]
mov eax, dword [esp + 0x350]
add edx, esi
lea eax, [edx + eax - 1]
xor edx, edx
div esi
mov edx, dword [esp + 0x34c]
add ecx, edx
xor edx, edx
mov ebp, eax
mov eax, ecx
div esi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], edx
xor edx, edx
add eax, ecx
div esi
xor edx, edx
test bl, bl
setne dl
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
add edx, eax
cmp ebp, edx
jbe 0x130f55f1
sub ebp, eax
mov eax, ebp
mov dword [esp + 0x2c], eax
imul eax, esi
mov dword [esp + 0x30], eax
mov edi, eax
cmp byte [esp + 0x35c], 0
lea ebx, [ecx*8]
jne 0x130f5688
push esi
lea eax, [esp + 0x1b4]
push 0
push eax
lea ebx, [ebx + esi*8]
call fcn.1301f940
mov ebp, dword [esp + 0x364]
add esp, 0xc
cmp ebp, 0x80
jbe 0x130f5642
push str.mac_secret_length___sizeof_hmac_pad_
push 0x25b
push str.._ssl_s3_cbc.c
call fcn.13081270
add esp, 0xc
mov ecx, dword [esp + 0x44]
push ebp
push ecx
lea edx, [esp + 0x1b8]
push edx
call fcn.1301f5d0
add esp, 0xc
xor eax, eax
test esi, esi
jbe 0x130f566d
mov edi, edi
xor byte [esp + eax + 0x1b0], 0x36
inc eax
cmp eax, esi
jb 0x130f5660
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x8c]
push ecx
call ebp
add esp, 8
jmp 0x130f568c
mov ebp, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x130f56d5
mov ebp, dword [esp + 0x1c]
lea edx, [ebp - 4]
push edx
lea eax, [esp + 0x164]
push 0
push eax
call fcn.1301f940
lea ebp, [esp + ebp + 0x16c]
mov ecx, ebx
mov edx, ebx
shr ecx, 0x18
shr edx, 0x10
mov eax, ebx
add esp, 0xc
shr eax, 8
mov byte [ebp - 4], cl
mov byte [ebp - 3], dl
mov byte [ebp - 2], al
mov byte [ebp - 1], bl
mov ebp, dword [esp + 0x14]
jmp 0x130f5712
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x164]
push 0
push edx
call fcn.1301f940
mov eax, dword [esp + 0x28]
lea eax, [esp + eax + 0x16c]
mov ecx, ebx
shr ecx, 0x18
mov byte [eax - 5], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
add esp, 0xc
shr ecx, 8
mov byte [eax - 6], dl
mov byte [eax - 7], cl
mov byte [eax - 8], bl
test edi, edi
jbe 0x130f5839
cmp byte [esp + 0x35c], 0
je 0x130f57bc
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x8c]
push eax
sub ebp, esi
call ebx
mov ecx, dword [esp + 0x44]
push ebp
add ecx, esi
push ecx
lea edx, [esp + 0x240]
push edx
call fcn.1301f5d0
mov ecx, dword [esp + 0x4c]
mov eax, esi
sub eax, ebp
push eax
push ecx
lea edx, [esp + ebp + 0x24c]
push edx
call fcn.1301f5d0
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0xac]
push ecx
call ebx
xor edx, edx
mov eax, edi
div esi
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x130f5839
mov ebx, dword [esp + 0x38]
sub ebx, ebp
add ebx, esi
lea edi, [eax - 1]
lea ecx, [ecx]
lea edx, [esp + 0x88]
push ebx
push edx
call dword [esp + 0x1c]
add esp, 8
add ebx, esi
sub edi, 1
jne 0x130f57a0
jmp 0x130f5839
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x230], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x234], edx
mov dl, byte [eax + 0xc]
lea eax, [esi - 0xd]
push eax
mov dword [esp + 0x23c], ecx
lea ecx, [esp + 0x241]
push ebx
push ecx
mov byte [esp + 0x248], dl
call fcn.1301f5d0
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x98]
push eax
call ebp
xor edx, edx
mov eax, edi
div esi
add esp, 0x14
cmp eax, 1
jbe 0x130f5839
lea ebx, [ebx + esi - 0xd]
lea edi, [eax - 1]
lea ecx, [esp + 0x88]
push ebx
push ecx
call ebp
add esp, 8
add ebx, esi
sub edi, 1
jne 0x130f5824
push 0x40
lea edx, [esp + 0x174]
push 0
push edx
call fcn.1301f940
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add ecx, eax
add esp, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], ecx
cmp eax, ecx
ja 0x130f59c8
jmp 0x130f5874
mov eax, dword [esp + 0x2c]
mov edx, eax
xor edx, dword [esp + 0x5c]
mov ebx, eax
xor ebx, dword [esp + 0x54]
dec edx
dec ebx
sar ebx, 0x1f
xor ebp, ebp
sar edx, 0x1f
mov byte [esp + 0x13], bl
mov dword [esp + 0x48], ebp
test esi, esi
jbe 0x130f5962
mov edi, dword [esp + 0x64]
mov eax, esi
sub eax, dword [esp + 0x1c]
not bl
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x22], bl
or bl, dl
neg edi
sub eax, esi
lea ecx, [esp + eax + 0x160]
mov byte [esp + 0x23], bl
mov dword [esp + 0x28], ecx
jmp 0x130f58d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
xor bl, bl
cmp eax, ecx
jae 0x130f58e4
mov ecx, dword [esp + 0x3c]
jmp 0x130f58fd
mov eax, dword [esp + 0x350]
add ecx, eax
mov eax, dword [esp + 0x30]
cmp eax, ecx
jae 0x130f5900
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
mov bl, byte [ecx + eax]
inc eax
mov dword [esp + 0x30], eax
mov eax, edi
not eax
sar eax, 0x1f
and al, dl
mov cl, al
and al, 0x80
not cl
and cl, bl
mov bl, byte [esp + 0x13]
or cl, al
lea eax, [edi - 1]
not eax
sar eax, 0x1f
and al, dl
not al
and cl, al
and cl, byte [esp + 0x23]
cmp ebp, dword [esp + 0x6c]
jb 0x130f5949
mov al, byte [esp + 0x22]
mov ebp, dword [esp + 0x28]
and al, cl
mov cl, bl
and cl, byte [ebp]
mov ebp, dword [esp + 0x48]
or cl, al
inc dword [esp + 0x28]
mov byte [esp + ebp + 0x2b0], cl
inc ebp
inc edi
mov dword [esp + 0x48], ebp
cmp ebp, esi
jb 0x130f58d0
lea edx, [esp + 0x2b0]
push edx
lea eax, [esp + 0x8c]
push eax
call dword [esp + 0x1c]
lea ecx, [esp + 0x2b8]
push ecx
lea edx, [esp + 0x94]
push edx
call dword [esp + 0x34]
mov edi, dword [esp + 0x28]
add esp, 0x10
xor eax, eax
test edi, edi
jbe 0x130f59b5
jmp 0x130f59a0
mov cl, byte [esp + eax + 0x2b0]
and cl, bl
or byte [esp + eax + 0x170], cl
inc eax
cmp eax, edi
jb 0x130f59a0
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x60]
jbe 0x130f5870
lea edx, [esp + 0x70]
push edx
call fcn.130813a0
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
push 0
push ecx
lea edx, [esp + 0x7c]
push edx
call fcn.130813f0
add esp, 0x10
cmp byte [esp + 0x35c], 0
pop ebp
je 0x130f5a56
mov esi, dword [esp + 0x3c]
push esi
lea eax, [esp + 0x1b0]
push 0x5c
push eax
call fcn.1301f940
mov ecx, dword [esp + 0x360]
mov edx, dword [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x80]
push eax
call fcn.130815a0
push esi
lea ecx, [esp + 0x1c8]
push ecx
lea edx, [esp + 0x8c]
push edx
call fcn.130815a0
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x194]
push ecx
lea edx, [esp + 0x98]
push edx
call fcn.130815a0
add esp, 0x30
jmp 0x130f5a9d
xor eax, eax
test esi, esi
jbe 0x130f5a6d
lea esp, [esp]
xor byte [esp + eax + 0x1ac], 0x6a
inc eax
cmp eax, esi
jb 0x130f5a60
push esi
lea eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.130815a0
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.130815a0
add esp, 0x18
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.13081710
mov eax, dword [esp + 0x54]
add esp, 0xc
test eax, eax
je 0x130f5ac2
mov edx, dword [esp + 0x4c]
mov dword [eax], edx
lea eax, [esp + 0x6c]
push eax
call fcn.13081630
add esp, 4
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.130222cb
add esp, 0x324
ret