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

Disassembly:
mov eax, 0x338
call fcn.10163610
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 0x10140323
push str.data_plus_mac_plus_padding_size___1024__1024
push 0x1c7
push str.._ssl_s3_cbc.c
call fcn.1009d490
add esp, 0xc
push dword [esp + 0x50]
call fcn.10095cd0
push eax
call fcn.101249e0
add esp, 8
cmp eax, 0x2a0
jg 0x10140401
je 0x101403cc
cmp eax, 4
je 0x10140389
cmp eax, 0x40
jne 0x1014040e
lea eax, [esp + 0x9c]
push eax
call fcn.10108a10
add esp, 4
test eax, eax
jle 0x10140a7a
mov eax, 0x14
mov dword [esp + 0x2c], 0x10140de0
mov dword [esp + 0x14], 0x100a2590
lea edx, [eax - 0xc]
jmp 0x101404c5
lea eax, [esp + 0x9c]
push eax
call fcn.10099310
add esp, 4
test eax, eax
jle 0x10140a7a
mov eax, 0x10
mov esi, 0x30
mov dword [esp + 0x2c], 0x10140d60
mov dword [esp + 0x14], 0x100983b0
mov dword [esp + 0x4c], esi
mov byte [esp + 0x13], 0
lea edx, [eax - 8]
jmp 0x101404c5
lea eax, [esp + 0x9c]
push eax
call fcn.10099ea0
add esp, 4
test eax, eax
jle 0x10140a7a
mov eax, 0x20
mov dword [esp + 0x2c], 0x10140e80
mov dword [esp + 0x14], 0x10099f00
lea edx, [eax - 0x18]
jmp 0x101404c5
sub eax, 0x2a1
je 0x10140486
dec eax
je 0x1014046a
dec eax
je 0x10140438
push 0x101973e0
push 0x209
push str.._ssl_s3_cbc.c
call fcn.1009d490
add esp, 0xc
test ebx, ebx
je 0x10140a7a
mov dword [ebx], 0
jmp 0x10140a7a
lea eax, [esp + 0x9c]
push eax
call fcn.10099b60
add esp, 4
test eax, eax
jle 0x10140a7a
mov eax, 0x1c
mov dword [esp + 0x2c], 0x10140e80
mov dword [esp + 0x14], 0x10099f00
lea edx, [eax - 0x14]
jmp 0x101404c5
lea eax, [esp + 0x9c]
push eax
call fcn.100a4200
add esp, 4
test eax, eax
jle 0x10140a7a
mov eax, ebp
jmp 0x101404a3
lea eax, [esp + 0x9c]
push eax
call fcn.100a3bd0
add esp, 4
test eax, eax
jle 0x10140a7a
mov eax, 0x30
mov edx, 0x10
mov ebp, 0x80
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x14], 0x100a42b0
mov dword [esp + 0x2c], 0x10140f70
cmp byte [esp + 0x370], 0
mov ebx, 0xd
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ebx
je 0x101404ec
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 0x10140571
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 0x1014060d
lea eax, [eax + ebp*8]
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c8]
push 0
push eax
call fcn.10161d70
mov esi, dword [esp + 0x378]
add esp, 0xc
cmp esi, 0x80
jbe 0x101405ca
push str.mac_secret_length___sizeof_hmac_pad_
push 0x271
push str.._ssl_s3_cbc.c
call fcn.1009d490
add esp, 0xc
push esi
push dword [esp + 0x4c]
lea eax, [esp + 0x1cc]
push eax
call fcn.101623c0
add esp, 0xc
xor eax, eax
test ebp, ebp
je 0x101405f2
xor byte [esp + eax + 0x1c4], 0x36
inc eax
cmp eax, ebp
jb 0x101405e5
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0xa0]
push eax
call esi
add esp, 8
jmp 0x10140611
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x10140667
mov eax, dword [esp + 0x18]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x178]
push 0
push eax
call fcn.10161d70
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 0x101406b0
push dword [esp + 0x18]
lea eax, [esp + 0x178]
push 0
push eax
call fcn.10161d70
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 0x101407d7
cmp byte [esp + 0x370], 0
je 0x10140758
cmp ebx, ebp
jbe 0x10140a7a
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.101623c0
mov eax, ebp
sub eax, ebx
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x260]
add eax, ebx
push eax
call fcn.101623c0
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 0x101407d7
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 0x10140740
jmp 0x101407d3
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.101623c0
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 0x101407d7
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 0x101407c0
mov edi, dword [esp + 0x28]
push 0x40
lea eax, [esp + 0x188]
push 0
push eax
call fcn.10161d70
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 0x101409ba
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 0x10140957
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 0x101408a3
mov eax, dword [esp + 0x34]
jmp 0x101408b6
mov eax, dword [esp + 0x364]
add eax, ecx
cmp edi, eax
jae 0x101408bd
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 0x1014092d
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 0x10140890
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 0x101409a5
lea esp, [esp]
mov cl, byte [esp + eax + 0x2c4]
and cl, bl
or byte [esp + eax + 0x184], cl
inc eax
cmp eax, esi
jb 0x10140990
mov edx, dword [esp + 0x3c]
inc edx
mov dword [esp + 0x3c], edx
cmp edx, dword [esp + 0x58]
jbe 0x10140801
jmp 0x101409be
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x84]
push eax
call fcn.1008d560
mov eax, dword [esp + 0x54]
push 0
push dword [eax]
lea eax, [esp + 0x90]
push eax
call fcn.1008d140
add esp, 0x10
test eax, eax
jle 0x10140a6a
cmp byte [esp + 0x370], 0
je 0x10140a95
mov edi, dword [esp + 0x4c]
push edi
lea eax, [esp + 0x1c8]
push 0x5c
push eax
call fcn.10161d70
push dword [esp + 0x378]
lea eax, [esp + 0x94]
push dword [esp + 0x58]
push eax
call fcn.1008d2f0
add esp, 0x18
test eax, eax
jle 0x10140a6a
push edi
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008d2f0
add esp, 0xc
test eax, eax
jle 0x10140a6a
push esi
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008d2f0
add esp, 0xc
test eax, eax
jg 0x10140ae7
lea eax, [esp + 0x84]
push eax
call fcn.1008d300
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1016059f
add esp, 0x338
ret
xor eax, eax
test ebp, ebp
je 0x10140aad
jmp 0x10140aa0
xor byte [esp + eax + 0x1c4], 0x6a
inc eax
cmp eax, ebp
jb 0x10140aa0
push ebp
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008d2f0
add esp, 0xc
test eax, eax
jle 0x10140a6a
push esi
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1008d2f0
add esp, 0xc
test eax, eax
jle 0x10140a6a
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x70]
lea eax, [esp + 0x8c]
push eax
call fcn.1008d060
mov ecx, dword [esp + 0x68]
add esp, 0xc
test ecx, ecx
je 0x10140b0e
mov eax, dword [esp + 0x64]
mov dword [ecx], eax
lea eax, [esp + 0x84]
push eax
call fcn.1008d300
add esp, 4
mov eax, 1
jmp 0x10140a7c