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

Disassembly:
mov eax, 0x338
call fcn.101637b0
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 0x10140263
push str.data_plus_mac_plus_padding_size___1024__1024
push 0x1c7
push str.._ssl_s3_cbc.c
call fcn.1009d470
add esp, 0xc
push dword [esp + 0x50]
call fcn.10090eb0
push eax
call fcn.100b06e0
add esp, 8
cmp eax, 0x2a0
jg 0x10140341
je 0x1014030c
cmp eax, 4
je 0x101402c9
cmp eax, 0x40
jne 0x1014034e
lea eax, [esp + 0x9c]
push eax
call fcn.100a2530
add esp, 4
test eax, eax
jle 0x101409ba
mov eax, 0x14
mov dword [esp + 0x2c], 0x10140d20
mov dword [esp + 0x14], 0x100a2570
lea edx, [eax - 0xc]
jmp 0x10140405
lea eax, [esp + 0x9c]
push eax
call fcn.100992f0
add esp, 4
test eax, eax
jle 0x101409ba
mov eax, 0x10
mov esi, 0x30
mov dword [esp + 0x2c], 0x10140ca0
mov dword [esp + 0x14], 0x10098390
mov dword [esp + 0x4c], esi
mov byte [esp + 0x13], 0
lea edx, [eax - 8]
jmp 0x10140405
lea eax, [esp + 0x9c]
push eax
call fcn.10099e80
add esp, 4
test eax, eax
jle 0x101409ba
mov eax, 0x20
mov dword [esp + 0x2c], 0x10140dc0
mov dword [esp + 0x14], 0x10099ee0
lea edx, [eax - 0x18]
jmp 0x10140405
sub eax, 0x2a1
je 0x101403c6
dec eax
je 0x101403aa
dec eax
je 0x10140378
push 0x101973e0
push 0x209
push str.._ssl_s3_cbc.c
call fcn.1009d470
add esp, 0xc
test ebx, ebx
je 0x101409ba
mov dword [ebx], 0
jmp 0x101409ba
lea eax, [esp + 0x9c]
push eax
call fcn.10099b40
add esp, 4
test eax, eax
jle 0x101409ba
mov eax, 0x1c
mov dword [esp + 0x2c], 0x10140dc0
mov dword [esp + 0x14], 0x10099ee0
lea edx, [eax - 0x14]
jmp 0x10140405
lea eax, [esp + 0x9c]
push eax
call fcn.100a41e0
add esp, 4
test eax, eax
jle 0x101409ba
mov eax, ebp
jmp 0x101403e3
lea eax, [esp + 0x9c]
push eax
call fcn.100a3bb0
add esp, 4
test eax, eax
jle 0x101409ba
mov eax, 0x30
mov edx, 0x10
mov ebp, 0x80
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x14], 0x100a4290
mov dword [esp + 0x2c], 0x10140eb0
cmp byte [esp + 0x370], 0
mov ebx, 0xd
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ebx
je 0x1014042c
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 0x101404b1
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 0x1014054d
lea eax, [eax + ebp*8]
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c8]
push 0
push eax
call fcn.10161f10
mov esi, dword [esp + 0x378]
add esp, 0xc
cmp esi, 0x80
jbe 0x1014050a
push str.mac_secret_length___sizeof_hmac_pad_
push 0x271
push str.._ssl_s3_cbc.c
call fcn.1009d470
add esp, 0xc
push esi
push dword [esp + 0x4c]
lea eax, [esp + 0x1cc]
push eax
call fcn.10162560
add esp, 0xc
xor eax, eax
test ebp, ebp
je 0x10140532
xor byte [esp + eax + 0x1c4], 0x36
inc eax
cmp eax, ebp
jb 0x10140525
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0xa0]
push eax
call esi
add esp, 8
jmp 0x10140551
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x101405a7
mov eax, dword [esp + 0x18]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x178]
push 0
push eax
call fcn.10161f10
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 0x101405f0
push dword [esp + 0x18]
lea eax, [esp + 0x178]
push 0
push eax
call fcn.10161f10
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 0x10140717
cmp byte [esp + 0x370], 0
je 0x10140698
cmp ebx, ebp
jbe 0x101409ba
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.10162560
mov eax, ebp
sub eax, ebx
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x260]
add eax, ebx
push eax
call fcn.10162560
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 0x10140717
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 0x10140680
jmp 0x10140713
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.10162560
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 0x10140717
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 0x10140700
mov edi, dword [esp + 0x28]
push 0x40
lea eax, [esp + 0x188]
push 0
push eax
call fcn.10161f10
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 0x101408fa
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 0x10140897
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 0x101407e3
mov eax, dword [esp + 0x34]
jmp 0x101407f6
mov eax, dword [esp + 0x364]
add eax, ecx
cmp edi, eax
jae 0x101407fd
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 0x1014086d
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 0x101407d0
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 0x101408e5
lea esp, [esp]
mov cl, byte [esp + eax + 0x2c4]
and cl, bl
or byte [esp + eax + 0x184], cl
inc eax
cmp eax, esi
jb 0x101408d0
mov edx, dword [esp + 0x3c]
inc edx
mov dword [esp + 0x3c], edx
cmp edx, dword [esp + 0x58]
jbe 0x10140741
jmp 0x101408fe
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x84]
push eax
call fcn.1008d4b0
mov eax, dword [esp + 0x54]
push 0
push dword [eax]
lea eax, [esp + 0x90]
push eax
call fcn.1008d090
add esp, 0x10
test eax, eax
jle 0x101409aa
cmp byte [esp + 0x370], 0
je 0x101409d5
mov edi, dword [esp + 0x4c]
push edi
lea eax, [esp + 0x1c8]
push 0x5c
push eax
call fcn.10161f10
push dword [esp + 0x378]
lea eax, [esp + 0x94]
push dword [esp + 0x58]
push eax
call fcn.1008d240
add esp, 0x18
test eax, eax
jle 0x101409aa
push edi
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008d240
add esp, 0xc
test eax, eax
jle 0x101409aa
push esi
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008d240
add esp, 0xc
test eax, eax
jg 0x10140a27
lea eax, [esp + 0x84]
push eax
call fcn.1008d250
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101604df
add esp, 0x338
ret
xor eax, eax
test ebp, ebp
je 0x101409ed
jmp 0x101409e0
xor byte [esp + eax + 0x1c4], 0x6a
inc eax
cmp eax, ebp
jb 0x101409e0
push ebp
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008d240
add esp, 0xc
test eax, eax
jle 0x101409aa
push esi
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008d240
add esp, 0xc
test eax, eax
jle 0x101409aa
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x70]
lea eax, [esp + 0x8c]
push eax
call fcn.1008cfb0
mov ecx, dword [esp + 0x68]
add esp, 0xc
test ecx, ecx
je 0x10140a4e
mov eax, dword [esp + 0x64]
mov dword [ecx], eax
lea eax, [esp + 0x84]
push eax
call fcn.1008d250
add esp, 4
mov eax, 1
jmp 0x101409bc