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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x334
call fcn.10084f50
mov eax, dword [0x101c3080]
xor eax, esp
mov dword [esp + 0x330], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 0x28
mov dword [esp + 0xc], 8
mov byte [esp + 7], 1
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x74], esi
push edi
mov edi, 0x40
cmp ebx, 0x100000
jb 0x10164727
push 0xa9
push str.ssl_s3_cbc.c
push str.assertion_failed:_data_plus_mac_plus_padding_size___1024__1024
call fcn.100b8470
add esp, 0xc
push dword [esp + 0x4c]
call fcn.100b0a00
push eax
call fcn.100aa4e0
add esp, 8
cmp eax, 0x2a0
jg 0x101647fc
je 0x101647ca
cmp eax, 4
je 0x1016478a
cmp eax, 0x40
jne 0x10164811
lea eax, [esp + 0x90]
push eax
call fcn.100ec910
add esp, 4
test eax, eax
jle 0x10164f2d
mov dword [esp + 0x28], 0x101650e0
mov eax, 0x14
mov dword [esp + 0x10], 0x100ec950
jmp 0x101648d2
lea eax, [esp + 0x90]
push eax
call fcn.100b4000
add esp, 4
test eax, eax
jle 0x10164f2d
mov edx, 0x30
mov dword [esp + 0x28], 0x10165060
mov dword [esp + 0x10], 0x100b4040
mov eax, 0x10
mov dword [esp + 0x50], edx
mov byte [esp + 0xf], 0
jmp 0x101648d7
lea eax, [esp + 0x90]
push eax
call fcn.100ada10
add esp, 4
test eax, eax
jle 0x10164f2d
mov dword [esp + 0x28], 0x10165180
mov eax, 0x20
mov dword [esp + 0x10], 0x100ada70
jmp 0x101648d2
sub eax, 0x2a1
je 0x10164898
sub eax, 1
je 0x1016487c
sub eax, 1
je 0x1016484d
push 0xe7
push str.ssl_s3_cbc.c
push str.assertion_failed:_0
call fcn.100b8470
add esp, 0xc
test esi, esi
je 0x10164f2d
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.10084565
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x90]
push eax
call fcn.100ad6d0
add esp, 4
test eax, eax
jle 0x10164f2d
mov dword [esp + 0x28], 0x10165180
mov eax, 0x1c
mov dword [esp + 0x10], 0x100ada70
jmp 0x101648d2
lea eax, [esp + 0x90]
push eax
call fcn.100ed080
add esp, 4
test eax, eax
jle 0x10164f2d
mov eax, edi
jmp 0x101648b5
lea eax, [esp + 0x90]
push eax
call fcn.100eca50
add esp, 4
test eax, eax
jle 0x10164f2d
mov eax, 0x30
mov dword [esp + 0x14], 0x10
mov edi, 0x80
mov dword [esp + 0x10], 0x100ed130
mov dword [esp + 0x28], 0x10165270
mov edx, 0x28
cmp byte [ebp + 0x2c], 0
mov ecx, 0xd
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], ecx
je 0x101648f6
mov ecx, dword [ebp + 0x28]
add ecx, 0xb
add ecx, edx
mov dword [esp + 0x40], ecx
xor edx, edx
mov esi, ecx
cmp byte [ebp + 0x2c], dl
sete dl
sub esi, eax
mov eax, dword [esp + 0x14]
dec ebx
add eax, esi
xor ecx, ecx
add eax, edi
add esi, dword [ebp + 0x1c]
lea edx, [edx*4 + 2]
add eax, ebx
mov dword [esp + 0x2c], edx
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x20], ebx
div edi
xor edx, edx
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, esi
div edi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], edx
add eax, esi
xor edx, edx
div edi
cmp byte [ebp + 0x2c], cl
mov edx, dword [esp + 0x2c]
setne cl
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
add ecx, edx
cmp eax, ecx
jbe 0x10164970
sub eax, edx
mov ebx, eax
mov dword [esp + 0x3c], eax
imul ebx, edi
mov dword [esp + 0x20], ebx
cmp byte [ebp + 0x2c], 0
lea eax, [esi*8]
mov dword [esp + 0x24], eax
jne 0x10164a58
lea eax, [eax + edi*8]
push edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1bc]
push 0
push eax
call fcn.10085f10
mov esi, dword [ebp + 0x28]
add esp, 0xc
cmp esi, 0x80
jbe 0x101649c1
push 0x14f
push str.ssl_s3_cbc.c
push str.assertion_failed:_mac_secret_length___sizeof_hmac_pad_
call fcn.100b8470
add esp, 0xc
push esi
push dword [esp + 0x58]
lea eax, [esp + 0x1c0]
push eax
call fcn.10086070
add esp, 0xc
xor ecx, ecx
test edi, edi
je 0x10164a3d
cmp edi, 0x20
jb 0x10164a22
movaps xmm1, xmmword [str.6666666666666666_]
mov eax, edi
and eax, 0x1f
mov edx, edi
sub edx, eax
lea eax, [esp + 0x1c8]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x20
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [eax - 0x20]
pxor xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
cmp ecx, edx
jb 0x10164a00
cmp ecx, edi
jae 0x10164a3d
nop word [eax + eax]
xor byte [esp + ecx + 0x1b8], 0x36
inc ecx
cmp ecx, edi
jb 0x10164a30
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0x94]
push eax
call esi
add esp, 8
jmp 0x10164a5c
mov esi, dword [esp + 0x10]
cmp byte [esp + 0xf], 0
je 0x10164ab2
mov eax, dword [esp + 0x14]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x16c]
push 0
push eax
call fcn.10085f10
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, ecx
shr eax, 0x18
mov byte [esp + edx + 0x164], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + edx + 0x165], al
mov eax, ecx
shr eax, 8
mov byte [esp + edx + 0x166], al
mov byte [esp + edx + 0x167], cl
jmp 0x10164afb
push dword [esp + 0x14]
lea eax, [esp + 0x16c]
push 0
push eax
call fcn.10085f10
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, ecx
shr eax, 0x18
mov byte [esp + edx + 0x163], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + edx + 0x162], al
mov eax, ecx
shr eax, 8
mov byte [esp + edx + 0x161], al
mov byte [esp + edx + 0x160], cl
test ebx, ebx
je 0x10164c29
cmp byte [ebp + 0x2c], 0
je 0x10164bac
mov esi, dword [esp + 0x40]
cmp esi, edi
jbe 0x10164f2d
push dword [esp + 0x38]
lea eax, [esp + 0x94]
sub esi, edi
push eax
mov dword [esp + 0x38], esi
call dword [esp + 0x18]
mov eax, dword [esp + 0x40]
add eax, edi
push esi
push eax
lea eax, [esp + 0x248]
push eax
call fcn.10086070
mov eax, edi
sub eax, esi
push eax
push dword [esp + 0x4c]
lea eax, [esp + 0x254]
add eax, esi
push eax
call fcn.10086070
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [esp + 0x38]
xor edx, edx
mov eax, ebx
div edi
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x10164c29
mov esi, dword [esp + 0x34]
lea ebx, [eax - 1]
sub esi, dword [esp + 0x30]
add esi, edi
lea eax, [esp + 0x90]
push esi
push eax
call dword [esp + 0x18]
add esp, 8
add esi, edi
sub ebx, 1
jne 0x10164b90
jmp 0x10164c29
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x240], eax
mov al, byte [ecx + 0xc]
mov byte [esp + 0x244], al
lea eax, [edi - 0xd]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x24d]
movq qword [esp + 0x240], xmm0
push eax
call fcn.10086070
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0xa0]
push eax
call esi
xor edx, edx
mov eax, ebx
div edi
add esp, 0x14
cmp eax, 1
jbe 0x10164c29
mov esi, dword [esp + 0x34]
lea ebx, [eax - 1]
add esi, 0xfffffff3
add esi, edi
lea eax, [esp + 0x90]
push esi
push eax
call dword [esp + 0x18]
add esp, 8
add esi, edi
sub ebx, 1
jne 0x10164c12
push 0x40
lea eax, [esp + 0x17c]
push 0
push eax
call fcn.10085f10
mov eax, dword [esp + 0x38]
add esp, 0xc
mov edx, dword [esp + 0x3c]
add eax, edx
mov dword [esp + 0x70], eax
cmp edx, eax
ja 0x10164e98
mov esi, dword [esp + 0x18]
mov eax, edx
xor eax, dword [esp + 0x58]
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and cl, al
mov eax, edx
xor eax, dword [esp + 0x5c]
neg cl
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov dword [esp + 0x24], ecx
lea edx, [eax - 1]
not eax
shr edx, 0x1f
shr eax, 0x1f
and dl, al
neg dl
movsx eax, dl
mov dword [esp + 0x30], edx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x80], xmm0
test edi, edi
je 0x10164dc9
mov eax, dword [esp + 0x44]
not dl
lea esi, [eax + 1]
shr eax, 0x1f
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x48]
or dl, al
movzx ebx, al
mov eax, edi
sub eax, dword [esp + 0x14]
shr esi, 0x1f
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], esi
sub eax, edi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x64], ebx
neg esi
lea ebx, [esp + 0x168]
mov byte [esp + 0x1f], dl
add eax, ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x40]
mov byte [esp + 0xf], 0
cmp ebx, edx
jae 0x10164d15
mov eax, dword [esp + 0x38]
jmp 0x10164d24
mov eax, dword [ebp + 0x20]
add eax, edx
cmp ebx, eax
jae 0x10164d2b
mov eax, dword [esp + 0x34]
sub eax, edx
mov al, byte [eax + ebx]
mov byte [esp + 0xf], al
mov eax, dword [esp + 0x60]
mov edx, ecx
inc ebx
shr edx, 0x1f
mov dword [esp + 0x20], ebx
mov ecx, esi
shr ecx, 0x1f
lea ebx, [esi - 1]
xor cl, al
shr ebx, 0x1f
xor al, dl
or cl, al
mov eax, dword [esp + 0x68]
xor bl, al
xor cl, dl
dec cl
xor al, dl
or bl, al
movzx ecx, cl
and ecx, dword [esp + 0x64]
xor bl, dl
dec bl
mov al, cl
and bl, byte [esp + 0x48]
not al
and al, byte [esp + 0xf]
and cl, 0x80
or al, cl
not bl
mov ecx, dword [esp + 0x24]
and bl, al
and bl, byte [esp + 0x1f]
cmp ecx, dword [esp + 0x6c]
jb 0x10164da1
mov eax, dword [esp + 0x30]
movzx ecx, al
mov eax, dword [esp + 0x2c]
mov dl, cl
not dl
and bl, dl
mov al, byte [eax]
and al, cl
mov ecx, dword [esp + 0x24]
or bl, al
inc dword [esp + 0x2c]
lea eax, [esp + 0x2b8]
add eax, dword [esp + 0x44]
inc ecx
mov dword [esp + 0x24], ecx
mov byte [eax + esi], bl
inc esi
mov ebx, dword [esp + 0x20]
cmp ecx, edi
jb 0x10164d02
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x2b8]
push eax
lea eax, [esp + 0x94]
push eax
call dword [esp + 0x18]
lea eax, [esp + 0x2c0]
push eax
lea eax, [esp + 0x9c]
push eax
call dword [esp + 0x38]
add esp, 0x10
xor eax, eax
test esi, esi
je 0x10164e85
cmp esi, 0x20
jb 0x10164e67
movaps xmm2, xmmword [esp + 0x80]
mov ecx, esi
and ecx, 0x1f
mov edx, esi
sub edx, ecx
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [esp + eax + 0x178]
movups xmm1, xmmword [esp + eax + 0x2b8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x178], xmm1
movups xmm1, xmmword [esp + eax + 0x2c8]
movups xmm0, xmmword [esp + eax + 0x188]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x188], xmm1
add eax, 0x20
cmp eax, edx
jb 0x10164e20
cmp eax, esi
jae 0x10164e85
mov edx, dword [esp + 0x30]
nop
mov cl, byte [esp + eax + 0x2b8]
and cl, dl
or byte [esp + eax + 0x178], cl
inc eax
cmp eax, esi
jb 0x10164e70
mov edx, dword [esp + 0x3c]
inc edx
mov dword [esp + 0x3c], edx
cmp edx, dword [esp + 0x70]
jbe 0x10164c57
call fcn.100c98e0
mov esi, eax
test esi, esi
je 0x10164f24
push 0
push dword [esp + 0x50]
call fcn.100b0a00
add esp, 4
push eax
push esi
call fcn.100c9550
add esp, 0xc
test eax, eax
jle 0x10164f24
cmp byte [ebp + 0x2c], 0
je 0x10164f44
mov ebx, dword [esp + 0x50]
lea eax, [esp + 0x1b8]
push ebx
push 0x5c
push eax
call fcn.10085f10
push dword [ebp + 0x28]
push dword [esp + 0x64]
push esi
call fcn.100c9700
add esp, 0x18
test eax, eax
jle 0x10164f24
push ebx
lea eax, [esp + 0x1bc]
push eax
push esi
call fcn.100c9700
add esp, 0xc
test eax, eax
jle 0x10164f24
push dword [esp + 0x18]
lea eax, [esp + 0x17c]
push eax
push esi
call fcn.100c9700
add esp, 0xc
test eax, eax
jg 0x10164fd4
push esi
call fcn.100c98c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.10084565
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edi, edi
je 0x10164f9d
cmp edi, 0x20
jb 0x10164f88
movaps xmm1, xmmword [str.jjjjjjjjjjjjjjjj_]
mov eax, edi
and eax, 0x1f
mov edx, edi
sub edx, eax
lea eax, [esp + 0x1c8]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x20
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [eax - 0x20]
pxor xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
cmp ecx, edx
jb 0x10164f66
cmp ecx, edi
jae 0x10164f9d
nop dword [eax]
xor byte [esp + ecx + 0x1b8], 0x6a
inc ecx
cmp ecx, edi
jb 0x10164f90
push edi
lea eax, [esp + 0x1bc]
push eax
push esi
call fcn.100c9700
add esp, 0xc
test eax, eax
jle 0x10164f24
push dword [esp + 0x18]
lea eax, [esp + 0x17c]
push eax
push esi
call fcn.100c9700
add esp, 0xc
test eax, eax
jle 0x10164f24
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x78]
push esi
call fcn.100c9480
add esp, 0xc
test eax, eax
je 0x10164ff8
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x10164ff8
mov eax, dword [esp + 0x7c]
mov dword [ecx], eax
push esi
call fcn.100c98c0
mov ecx, dword [esp + 0x340]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10084565
mov esp, ebp
pop ebp
ret