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

Disassembly:
mov eax, 0x338
call fcn.10123f80
mov eax, dword [0x101c2520]
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 0x10112183
push str.data_plus_mac_plus_padding_size___1024__1024
push 0x1c7
push str.._ssl_s3_cbc.c
call fcn.1006f2d0
add esp, 0xc
push dword [esp + 0x50]
call fcn.10067b20
push eax
call fcn.10157230
add esp, 8
cmp eax, 0x2a0
jg 0x10112261
je 0x1011222c
cmp eax, 4
je 0x101121e9
cmp eax, 0x40
jne 0x1011226e
lea eax, [esp + 0x9c]
push eax
call fcn.10074360
add esp, 4
test eax, eax
jle 0x101128da
mov eax, 0x14
mov dword [esp + 0x2c], 0x10112c40
mov dword [esp + 0x14], 0x100743a0
lea edx, [eax - 0xc]
jmp 0x10112325
lea eax, [esp + 0x9c]
push eax
call fcn.1006b160
add esp, 4
test eax, eax
jle 0x101128da
mov eax, 0x10
mov esi, 0x30
mov dword [esp + 0x2c], 0x10112bc0
mov dword [esp + 0x14], 0x1006a200
mov dword [esp + 0x4c], esi
mov byte [esp + 0x13], 0
lea edx, [eax - 8]
jmp 0x10112325
lea eax, [esp + 0x9c]
push eax
call fcn.1006bcf0
add esp, 4
test eax, eax
jle 0x101128da
mov eax, 0x20
mov dword [esp + 0x2c], 0x10112ce0
mov dword [esp + 0x14], 0x1006bd50
lea edx, [eax - 0x18]
jmp 0x10112325
sub eax, 0x2a1
je 0x101122e6
dec eax
je 0x101122ca
dec eax
je 0x10112298
push 0x1016a3d0
push 0x209
push str.._ssl_s3_cbc.c
call fcn.1006f2d0
add esp, 0xc
test ebx, ebx
je 0x101128da
mov dword [ebx], 0
jmp 0x101128da
lea eax, [esp + 0x9c]
push eax
call fcn.1006b9b0
add esp, 4
test eax, eax
jle 0x101128da
mov eax, 0x1c
mov dword [esp + 0x2c], 0x10112ce0
mov dword [esp + 0x14], 0x1006bd50
lea edx, [eax - 0x14]
jmp 0x10112325
lea eax, [esp + 0x9c]
push eax
call fcn.10076010
add esp, 4
test eax, eax
jle 0x101128da
mov eax, ebp
jmp 0x10112303
lea eax, [esp + 0x9c]
push eax
call fcn.100759e0
add esp, 4
test eax, eax
jle 0x101128da
mov eax, 0x30
mov edx, 0x10
mov ebp, 0x80
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x14], 0x100760c0
mov dword [esp + 0x2c], 0x10112dd0
cmp byte [esp + 0x370], 0
mov ebx, 0xd
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ebx
je 0x1011234c
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 0x101123d1
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 0x1011246d
lea eax, [eax + ebp*8]
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c8]
push 0
push eax
call fcn.10122830
mov esi, dword [esp + 0x378]
add esp, 0xc
cmp esi, 0x80
jbe 0x1011242a
push str.mac_secret_length___sizeof_hmac_pad_
push 0x271
push str.._ssl_s3_cbc.c
call fcn.1006f2d0
add esp, 0xc
push esi
push dword [esp + 0x4c]
lea eax, [esp + 0x1cc]
push eax
call fcn.10122e80
add esp, 0xc
xor eax, eax
test ebp, ebp
je 0x10112452
xor byte [esp + eax + 0x1c4], 0x36
inc eax
cmp eax, ebp
jb 0x10112445
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0xa0]
push eax
call esi
add esp, 8
jmp 0x10112471
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x101124c7
mov eax, dword [esp + 0x18]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x178]
push 0
push eax
call fcn.10122830
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 0x10112510
push dword [esp + 0x18]
lea eax, [esp + 0x178]
push 0
push eax
call fcn.10122830
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 0x10112637
cmp byte [esp + 0x370], 0
je 0x101125b8
cmp ebx, ebp
jbe 0x101128da
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.10122e80
mov eax, ebp
sub eax, ebx
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x260]
add eax, ebx
push eax
call fcn.10122e80
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 0x10112637
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 0x101125a0
jmp 0x10112633
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.10122e80
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 0x10112637
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 0x10112620
mov edi, dword [esp + 0x28]
push 0x40
lea eax, [esp + 0x188]
push 0
push eax
call fcn.10122830
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 0x1011281a
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 0x101127b7
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 0x10112703
mov eax, dword [esp + 0x34]
jmp 0x10112716
mov eax, dword [esp + 0x364]
add eax, ecx
cmp edi, eax
jae 0x1011271d
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 0x1011278d
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 0x101126f0
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 0x10112805
lea esp, [esp]
mov cl, byte [esp + eax + 0x2c4]
and cl, bl
or byte [esp + eax + 0x184], cl
inc eax
cmp eax, esi
jb 0x101127f0
mov edx, dword [esp + 0x3c]
inc edx
mov dword [esp + 0x3c], edx
cmp edx, dword [esp + 0x58]
jbe 0x10112661
jmp 0x1011281e
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x84]
push eax
call fcn.1005f360
mov eax, dword [esp + 0x54]
push 0
push dword [eax]
lea eax, [esp + 0x90]
push eax
call fcn.1005ef40
add esp, 0x10
test eax, eax
jle 0x101128ca
cmp byte [esp + 0x370], 0
je 0x101128f5
mov edi, dword [esp + 0x4c]
push edi
lea eax, [esp + 0x1c8]
push 0x5c
push eax
call fcn.10122830
push dword [esp + 0x378]
lea eax, [esp + 0x94]
push dword [esp + 0x58]
push eax
call fcn.1005f0f0
add esp, 0x18
test eax, eax
jle 0x101128ca
push edi
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1005f0f0
add esp, 0xc
test eax, eax
jle 0x101128ca
push esi
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1005f0f0
add esp, 0xc
test eax, eax
jg 0x10112947
lea eax, [esp + 0x84]
push eax
call fcn.1005f100
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1012032b
add esp, 0x338
ret
xor eax, eax
test ebp, ebp
je 0x1011290d
jmp 0x10112900
xor byte [esp + eax + 0x1c4], 0x6a
inc eax
cmp eax, ebp
jb 0x10112900
push ebp
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1005f0f0
add esp, 0xc
test eax, eax
jle 0x101128ca
push esi
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1005f0f0
add esp, 0xc
test eax, eax
jle 0x101128ca
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x70]
lea eax, [esp + 0x8c]
push eax
call fcn.1005ee60
mov ecx, dword [esp + 0x68]
add esp, 0xc
test ecx, ecx
je 0x1011296e
mov eax, dword [esp + 0x64]
mov dword [ecx], eax
lea eax, [esp + 0x84]
push eax
call fcn.1005f100
add esp, 4
mov eax, 1
jmp 0x101128dc