Function at 0x1013fe80
Capabilities:
Authenticate hmac
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x338
call fcn.101631e0
mov eax, dword [0x101f9e50]
xor eax, esp
mov dword [esp + 0x334], eax
mov eax, dword [esp + 0x33c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x340]
push ebx
mov ebx, dword [esp + 0x348]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34c]
push ebp
push esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x358]
push edi
mov edi, dword [esp + 0x364]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x368]
mov ebp, 0x40
mov esi, 0x28
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], esi
mov dword [esp + 0x18], 8
mov byte [esp + 0x13], 1
cmp edi, 0x100000
jb 0x1013ff23
push str.data_plus_mac_plus_padding_size___1024__1024
push 0x1c7
push str.._ssl_s3_cbc.c
call fcn.1009d0c0
add esp, 0xc
push dword [esp + 0x50]
call fcn.100906b0
push eax
call fcn.10184530
add esp, 8
cmp eax, 0x2a0
jg 0x10140001
je 0x1013ffcc
cmp eax, 4
je 0x1013ff89
cmp eax, 0x40
jne 0x1014000e
lea eax, [esp + 0x9c]
push eax
call fcn.100a2170
add esp, 4
test eax, eax
jle 0x1014067a
mov eax, 0x14
mov dword [esp + 0x2c], 0x101409e0
mov dword [esp + 0x14], 0x100a21b0
lea edx, [eax - 0xc]
jmp 0x101400c5
lea eax, [esp + 0x9c]
push eax
call fcn.10098f30
add esp, 4
test eax, eax
jle 0x1014067a
mov eax, 0x10
mov esi, 0x30
mov dword [esp + 0x2c], 0x10140960
mov dword [esp + 0x14], 0x10097fd0
mov dword [esp + 0x4c], esi
mov byte [esp + 0x13], 0
lea edx, [eax - 8]
jmp 0x101400c5
lea eax, [esp + 0x9c]
push eax
call fcn.10099ac0
add esp, 4
test eax, eax
jle 0x1014067a
mov eax, 0x20
mov dword [esp + 0x2c], 0x10140a80
mov dword [esp + 0x14], 0x10099b20
lea edx, [eax - 0x18]
jmp 0x101400c5
sub eax, 0x2a1
je 0x10140086
dec eax
je 0x1014006a
dec eax
je 0x10140038
push 0x101973dc
push 0x209
push str.._ssl_s3_cbc.c
call fcn.1009d0c0
add esp, 0xc
test ebx, ebx
je 0x1014067a
mov dword [ebx], 0
jmp 0x1014067a
lea eax, [esp + 0x9c]
push eax
call fcn.10099780
add esp, 4
test eax, eax
jle 0x1014067a
mov eax, 0x1c
mov dword [esp + 0x2c], 0x10140a80
mov dword [esp + 0x14], 0x10099b20
lea edx, [eax - 0x14]
jmp 0x101400c5
lea eax, [esp + 0x9c]
push eax
call fcn.100a3e20
add esp, 4
test eax, eax
jle 0x1014067a
mov eax, ebp
jmp 0x101400a3
lea eax, [esp + 0x9c]
push eax
call fcn.100a37f0
add esp, 4
test eax, eax
jle 0x1014067a
mov eax, 0x30
mov edx, 0x10
mov ebp, 0x80
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x14], 0x100a3ed0
mov dword [esp + 0x2c], 0x10140b70
cmp byte [esp + 0x370], 0
mov ebx, 0xd
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ebx
je 0x101400ec
mov ebx, dword [esp + 0x36c]
add ebx, 0xb
add ebx, esi
mov dword [esp + 0x54], ebx
xor ecx, ecx
cmp byte [esp + 0x370], cl
mov esi, ebx
sete cl
sub esi, eax
lea eax, [edx - 1]
add eax, esi
add eax, ebp
add eax, edi
xor edx, edx
div ebp
add esi, dword [esp + 0x360]
xor edx, edx
lea ecx, [ecx*4 + 2]
mov dword [esp + 0x30], ecx
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, esi
div ebp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], edx
xor edx, edx
lea eax, [esi + eax]
div ebp
cmp byte [esp + 0x370], cl
mov edx, dword [esp + 0x30]
setne cl
add ecx, edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x10140171
sub eax, edx
mov edi, eax
imul edi, ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edi
cmp byte [esp + 0x370], 0
lea eax, [esi*8]
mov dword [esp + 0x1c], eax
jne 0x1014020d
lea eax, [eax + ebp*8]
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c8]
push 0
push eax
call fcn.10161780
mov esi, dword [esp + 0x378]
add esp, 0xc
cmp esi, 0x80
jbe 0x101401ca
push str.mac_secret_length___sizeof_hmac_pad_
push 0x271
push str.._ssl_s3_cbc.c
call fcn.1009d0c0
add esp, 0xc
push esi
push dword [esp + 0x4c]
lea eax, [esp + 0x1cc]
push eax
call fcn.10161dd0
add esp, 0xc
xor eax, eax
test ebp, ebp
je 0x101401f2
xor byte [esp + eax + 0x1c4], 0x36
inc eax
cmp eax, ebp
jb 0x101401e5
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0xa0]
push eax
call esi
add esp, 8
jmp 0x10140211
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x10140267
mov eax, dword [esp + 0x18]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x178]
push 0
push eax
call fcn.10161780
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + edx + 0x17c], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + edx + 0x17d], al
mov eax, ecx
add esp, 0xc
shr eax, 8
mov byte [esp + edx + 0x172], al
mov byte [esp + edx + 0x173], cl
jmp 0x101402b0
push dword [esp + 0x18]
lea eax, [esp + 0x178]
push 0
push eax
call fcn.10161780
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + edx + 0x17b], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + edx + 0x17a], al
mov eax, ecx
add esp, 0xc
shr eax, 8
mov byte [esp + edx + 0x16d], al
mov byte [esp + edx + 0x16c], cl
test edi, edi
je 0x101403d7
cmp byte [esp + 0x370], 0
je 0x10140358
cmp ebx, ebp
jbe 0x1014067a
push dword [esp + 0x34]
lea eax, [esp + 0xa0]
push eax
sub ebx, ebp
call esi
mov eax, dword [esp + 0x3c]
add eax, ebp
push ebx
push eax
lea eax, [esp + 0x254]
push eax
call fcn.10161dd0
mov eax, ebp
sub eax, ebx
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x260]
add eax, ebx
push eax
call fcn.10161dd0
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0xc0]
push eax
call esi
xor edx, edx
mov eax, edi
div ebp
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x101403d7
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
sub esi, ebx
add esi, ebp
lea ebx, [eax - 1]
nop
lea eax, [esp + 0x9c]
push esi
push eax
call edi
add esp, 8
add esi, ebp
dec ebx
jne 0x10140340
jmp 0x101403d3
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x24c], eax
mov al, byte [ecx + 0xc]
mov byte [esp + 0x250], al
lea eax, [ebp - 0xd]
push eax
lea eax, [esp + 0x255]
push ebx
push eax
movq qword [esp + 0x250], xmm0
call fcn.10161dd0
lea eax, [esp + 0x250]
push eax
lea eax, [esp + 0xac]
push eax
call esi
xor edx, edx
mov eax, edi
div ebp
add esp, 0x14
cmp eax, 1
jbe 0x101403d7
mov edi, dword [esp + 0x14]
lea esi, [ebx - 0xd]
add esi, ebp
lea ebx, [eax - 1]
nop
lea eax, [esp + 0x9c]
push esi
push eax
call edi
add esp, 8
add esi, ebp
dec ebx
jne 0x101403c0
mov edi, dword [esp + 0x28]
push 0x40
lea eax, [esp + 0x188]
push 0
push eax
call fcn.10161780
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
add eax, edx
add esp, 0xc
mov dword [esp + 0x58], eax
cmp edx, eax
ja 0x101405ba
mov eax, edx
xor eax, dword [esp + 0x7c]
xor esi, esi
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and cl, al
mov eax, edx
xor eax, dword [esp + 0x60]
neg cl
lea ebx, [eax - 1]
shr ebx, 0x1f
not eax
shr eax, 0x1f
and bl, al
neg bl
mov dword [esp + 0x78], ecx
mov dword [esp + 0x1c], ebx
test ebp, ebp
je 0x10140557
mov eax, dword [esp + 0x40]
lea edx, [eax + 1]
shr eax, 0x1f
mov dword [esp + 0x70], eax
movzx eax, cl
mov dword [esp + 0x68], eax
mov al, bl
not al
or al, cl
mov byte [esp + 0x27], al
mov eax, ebp
sub eax, dword [esp + 0x18]
shr edx, 0x1f
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], edx
sub eax, ebp
or edx, 0xffffffff
sub edx, dword [esp + 0x40]
lea eax, [esp + eax + 0x174]
mov dword [esp + 0x28], eax
mov dword [esp + 0x74], edx
lea esp, [esp]
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x13], 0
cmp edi, ecx
jae 0x101404a3
mov eax, dword [esp + 0x34]
jmp 0x101404b6
mov eax, dword [esp + 0x364]
add eax, ecx
cmp edi, eax
jae 0x101404bd
mov eax, dword [esp + 0x38]
sub eax, ecx
mov al, byte [eax + edi]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x70]
lea ebx, [edx + esi]
mov edx, esi
lea ecx, [ebx + 1]
shr ecx, 0x1f
xor cl, al
shr edx, 0x1f
xor al, dl
or cl, al
xor cl, dl
shr ebx, 0x1f
xor bl, byte [esp + 0x30]
dec cl
movzx ecx, cl
and ecx, dword [esp + 0x68]
mov al, dl
xor al, byte [esp + 0x30]
inc edi
or bl, al
xor bl, dl
dec bl
and bl, byte [esp + 0x78]
mov al, cl
not al
and al, byte [esp + 0x13]
and cl, 0x80
not bl
or al, cl
and bl, al
and bl, byte [esp + 0x27]
cmp esi, dword [esp + 0x80]
jb 0x1014052d
mov eax, dword [esp + 0x1c]
movzx ecx, al
mov eax, dword [esp + 0x28]
mov dl, cl
mov al, byte [eax]
not dl
and bl, dl
and al, cl
or bl, al
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x44]
inc dword [esp + 0x28]
lea ecx, [esp + 0x2c5]
add ecx, dword [esp + 0x40]
lea eax, [edx + esi]
inc esi
mov byte [eax + ecx], bl
cmp esi, ebp
jb 0x10140490
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x2c4]
push eax
lea eax, [esp + 0xa0]
push eax
call dword [esp + 0x1c]
lea eax, [esp + 0x2cc]
push eax
lea eax, [esp + 0xa8]
push eax
call dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
add esp, 0x10
xor eax, eax
test esi, esi
je 0x101405a5
lea esp, [esp]
mov cl, byte [esp + eax + 0x2c4]
and cl, bl
or byte [esp + eax + 0x184], cl
inc eax
cmp eax, esi
jb 0x10140590
mov edx, dword [esp + 0x3c]
inc edx
mov dword [esp + 0x3c], edx
cmp edx, dword [esp + 0x58]
jbe 0x10140401
jmp 0x101405be
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x84]
push eax
call fcn.1008d180
mov eax, dword [esp + 0x54]
push 0
push dword [eax]
lea eax, [esp + 0x90]
push eax
call fcn.1008cd60
add esp, 0x10
test eax, eax
jle 0x1014066a
cmp byte [esp + 0x370], 0
je 0x10140695
mov edi, dword [esp + 0x4c]
push edi
lea eax, [esp + 0x1c8]
push 0x5c
push eax
call fcn.10161780
push dword [esp + 0x378]
lea eax, [esp + 0x94]
push dword [esp + 0x58]
push eax
call fcn.1008cf10
add esp, 0x18
test eax, eax
jle 0x1014066a
push edi
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008cf10
add esp, 0xc
test eax, eax
jle 0x1014066a
push esi
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008cf10
add esp, 0xc
test eax, eax
jg 0x101406e7
lea eax, [esp + 0x84]
push eax
call fcn.1008cf20
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10160171
add esp, 0x338
ret
xor eax, eax
test ebp, ebp
je 0x101406ad
jmp 0x101406a0
xor byte [esp + eax + 0x1c4], 0x6a
inc eax
cmp eax, ebp
jb 0x101406a0
push ebp
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008cf10
add esp, 0xc
test eax, eax
jle 0x1014066a
push esi
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008cf10
add esp, 0xc
test eax, eax
jle 0x1014066a
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x70]
lea eax, [esp + 0x8c]
push eax
call fcn.1008cc80
mov ecx, dword [esp + 0x68]
add esp, 0xc
test ecx, ecx
je 0x1014070e
mov eax, dword [esp + 0x64]
mov dword [ecx], eax
lea eax, [esp + 0x84]
push eax
call fcn.1008cf20
add esp, 4
mov eax, 1
jmp 0x1014067c