Function at 0x100503c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2f8
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x2f4], eax
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
jl 0x1005107b
mov eax, dword [ecx]
lea edx, [esp + 0x1b0]
push 0
push 0x10
push edx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x40], 0
call eax
test eax, eax
jne 0x10050453
mov dword [esi + 0x74c], 0xa0000015
mov edx, dword [esi + 8]
test edx, edx
je 0x10051068
lea eax, [esi + 0x754]
push eax
push 0
push dword [esp + 0x10]
push 0xa0000015
jmp 0x10051062
cmp byte [esi + 0x740], 0
mov ecx, esi
je 0x1005046c
push 0
push 0
sub esp, 8
call fcn.10057590
jmp 0x10050489
add dword [esi + 0x7a0], 0x10
mov dword [esi + 0x768], 0
adc dword [esi + 0x7a4], 0
call fcn.10057380
mov edx, dword [esi + 8]
test edx, edx
je 0x10050517
cmp byte [esi + 0x742], 0
jne 0x100504b8
mov ecx, dword [edx]
lea eax, [esi + 0x754]
push eax
lea eax, [esi + 0x750]
push eax
lea eax, [esi + 0x758]
push eax
push edx
call dword [ecx + 0xc]
mov eax, dword [esi + 0x754]
or eax, dword [esi + 0x750]
je 0x100504e9
mov eax, dword [esi + 0x730]
mov dword [esi + 0x74c], 0xa0000017
cmp dword [eax + 0x38], 0
je 0x100504e9
test edi, edi
je 0x100504e9
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x24]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10050517
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
test eax, eax
je 0x10050517
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x38]
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x54]
call eax
push eax
mov eax, dword [esp + 0x10]
push edi
call dword [eax + 0x18]
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0x1d8], xmm0
add eax, eax
movlpd qword [esp + 0x1e0], xmm0
mov edi, 0x2000
movups xmm0, xmmword [esp + 0x1b0]
mov esi, eax
movups xmmword [esp + 0x1c8], xmm0
nop dword [eax + eax]
movups xmm0, xmmword [0x101a2500]
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0
push eax
movups xmmword [esp + 0x5c], xmm0
mov edx, 0x20
lea ecx, [esp + 0x1cc]
movups xmm0, xmmword [0x101a2510]
mov dword [esp + 0x54], 0
movups xmmword [esp + 0x6c], xmm0
call fcn.100e8ff0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x54]
add esp, 4
mov edx, esi
push eax
call fcn.100e8ff0
add esp, 4
lea edx, [esp + 0x50]
lea ecx, [esp + 0x1c8]
call fcn.100e9080
sub edi, 1
jne 0x10050550
call fcn.100e4a10
lea edx, [esp + 0xb8]
lea ecx, [esp + 0x1c8]
call fcn.100e5a80
push 0x40
lea eax, [esp + 0x24c]
push 0x36
push eax
call fcn.10152e30
add esp, 0xc
lea eax, [esp + 0x288]
push 0x40
push 0x5c
push eax
call fcn.10152e30
mov esi, dword [esp + 0x3c]
add esp, 0xc
xor eax, eax
nop
movups xmm1, xmmword [esp + eax + 0x1c8]
movups xmm0, xmmword [esp + eax + 0x248]
xorps xmm0, xmm1
movups xmmword [esp + eax + 0x248], xmm0
movups xmm0, xmmword [esp + eax + 0x288]
xorps xmm0, xmm1
movups xmmword [esp + eax + 0x288], xmm0
add eax, 0x10
cmp eax, 0x20
jl 0x10050600
movups xmm0, xmmword [0x101a2500]
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0
push eax
movups xmmword [esp + 0x5c], xmm0
mov edx, 0x40
lea ecx, [esp + 0x24c]
movups xmm0, xmmword [0x101a2510]
mov dword [esp + 0x54], 0
movups xmmword [esp + 0x6c], xmm0
call fcn.100e8ff0
add esp, 4
cmp byte [esi + 0x81b], 1
jb 0x10050a6b
xor edi, edi
mov dword [esp + 0xc], edi
nop word [eax + eax]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1e8]
push 0
push 0x10
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test eax, eax
je 0x10050427
cmp byte [esi + 0x740], 0
mov ecx, esi
je 0x100506c8
push 0
push 0
sub esp, 8
call fcn.10057590
jmp 0x100506e5
add dword [esi + 0x7a0], 0x10
mov dword [esi + 0x768], 0
adc dword [esi + 0x7a4], 0
call fcn.10057380
mov edx, dword [esi + 8]
test edx, edx
je 0x10050779
cmp byte [esi + 0x742], 0
jne 0x10050714
mov ecx, dword [edx]
lea eax, [esi + 0x754]
push eax
lea eax, [esi + 0x750]
push eax
lea eax, [esi + 0x758]
push eax
push edx
call dword [ecx + 0xc]
mov eax, dword [esi + 0x754]
or eax, dword [esi + 0x750]
je 0x10050747
mov eax, dword [esi + 0x730]
mov dword [esi + 0x74c], 0xa0000017
cmp dword [eax + 0x38], 0
je 0x10050747
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10050747
mov eax, dword [ecx]
push 1
call dword [eax + 0x24]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10050779
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
test eax, eax
je 0x10050779
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x38]
mov eax, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x54]
call eax
push eax
mov eax, dword [esp + 0x24]
push edi
call dword [eax + 0x18]
mov edi, dword [esp + 0xc]
movups xmm0, xmmword [esp + 0x1e8]
lea eax, [esp + 0x50]
mov edx, 0x10
push eax
lea ecx, [esp + 0x1ec]
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x22c], xmm0
call fcn.100e8ff0
add esp, 4
lea eax, [esp + 0xb8]
lea edx, [esp + 0x1e8]
mov ecx, edx
push eax
call fcn.100e7540
movups xmm0, xmmword [esp + 0x1ec]
add esp, 4
movaps xmm1, xmmword [esp + 0x1b0]
xorps xmm1, xmm0
movups xmm0, xmmword [esp + 0x20]
movups xmmword [esp + edi + 0x2cc], xmm1
add edi, 0x10
mov dword [esp + 0xc], edi
movups xmmword [esp + 0x1b0], xmm0
cmp edi, 0x30
jl 0x10050690
lea edx, [esp + 0x50]
lea ecx, [esp + 0x1c8]
call fcn.100e9080
movups xmm0, xmmword [0x101a2500]
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0
push eax
movups xmmword [esp + 0x5c], xmm0
mov edx, 0x40
lea ecx, [esp + 0x28c]
movups xmm0, xmmword [0x101a2510]
mov dword [esp + 0x54], 0
movups xmmword [esp + 0x6c], xmm0
call fcn.100e8ff0
add esp, 4
lea eax, [esp + 0x50]
mov edx, 0x20
lea ecx, [esp + 0x1c8]
push eax
call fcn.100e8ff0
add esp, 4
lea edx, [esp + 0x50]
lea ecx, [esp + 0x1c8]
call fcn.100e9080
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1e8]
push 0
push 0x20
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test eax, eax
je 0x10050427
cmp byte [esi + 0x740], 0
mov ecx, esi
je 0x100508aa
push 0
push 0
sub esp, 8
call fcn.10057590
jmp 0x100508c7
add dword [esi + 0x7a0], 0x20
mov dword [esi + 0x768], 0
adc dword [esi + 0x7a4], 0
call fcn.10057380
mov edx, dword [esi + 8]
test edx, edx
je 0x10050957
cmp byte [esi + 0x742], 0
jne 0x100508f6
mov ecx, dword [edx]
lea eax, [esi + 0x754]
push eax
lea eax, [esi + 0x750]
push eax
lea eax, [esi + 0x758]
push eax
push edx
call dword [ecx + 0xc]
mov eax, dword [esi + 0x754]
or eax, dword [esi + 0x750]
je 0x10050929
mov eax, dword [esi + 0x730]
mov dword [esi + 0x74c], 0xa0000017
cmp dword [eax + 0x38], 0
je 0x10050929
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10050929
mov eax, dword [ecx]
push 1
call dword [eax + 0x24]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10050957
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
test eax, eax
je 0x10050957
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x38]
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x54]
call eax
push eax
mov eax, dword [esp + 0x10]
push edi
call dword [eax + 0x18]
lea ecx, [esp + 0x1c8]
mov edi, 0x1c
lea edx, [esp + 0x1e8]
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10050afb
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10050970
movups xmm0, xmmword [esp + 0x2cc]
movups xmmword [esp + 0x1b0], xmm0
call fcn.100e4a10
lea edx, [esp + 0xb8]
lea ecx, [esp + 0x2dc]
call fcn.100e5a80
push 0x40
lea eax, [esp + 0x24c]
push 0x36
push eax
call fcn.10152e30
add esp, 0xc
lea eax, [esp + 0x288]
push 0x40
push 0x5c
push eax
call fcn.10152e30
add esp, 0xc
xor eax, eax
nop word [eax + eax]
movups xmm1, xmmword [esp + eax + 0x2dc]
movups xmm0, xmmword [esp + eax + 0x248]
xorps xmm0, xmm1
movups xmmword [esp + eax + 0x248], xmm0
movups xmm0, xmmword [esp + eax + 0x288]
xorps xmm1, xmm0
movups xmmword [esp + eax + 0x288], xmm1
add eax, 0x10
cmp eax, 0x20
jl 0x100509e0
push 0x30
lea eax, [esp + 0x2d0]
push 0
push eax
call fcn.10152e30
movups xmm0, xmmword [0x101a2500]
add esp, 0xc
mov dword [esp + 0x54], 0
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0
movups xmmword [esp + 0x58], xmm0
mov edx, 0x40
lea ecx, [esp + 0x248]
movups xmm0, xmmword [0x101a2510]
push eax
movups xmmword [esp + 0x6c], xmm0
call fcn.100e8ff0
add esp, 4
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x48]
push edx
push 0
push 0x30
mov eax, dword [ecx]
lea edx, [esp + 0x1f4]
push edx
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x10050427
push dword [esp + 0x18]
lea ecx, [esi + 4]
push 0
push 0
push dword [esp + 0x58]
push dword [esp + 0x58]
call fcn.10057270
cmp dword [esp + 0x4c], 0
ja 0x10050c7b
jb 0x10050abf
cmp dword [esp + 0x48], 0x30
jae 0x10050c7b
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
test eax, eax
je 0x10050427
mov al, byte [esi + 0x81b]
test al, al
jne 0x10050b61
cmp dword [esp + 0x48], 0x20
jne 0x10050b8b
cmp dword [esp + 0x4c], 0
jne 0x10050b8b
jmp 0x10050b82
mov eax, dword [esi + 0x704]
test eax, eax
je 0x10050b0e
push eax
call fcn.10154f5a
add esp, 4
mov eax, dword [esi + 0x708]
mov dword [esi + 0x704], 0
test eax, eax
je 0x10050b2b
push eax
call fcn.10154f5a
add esp, 4
mov dword [esi + 0x708], 0
mov dword [esi + 0x74c], 0xa0000060
mov edx, dword [esi + 8]
test edx, edx
je 0x10051068
lea eax, [esi + 0x754]
push eax
push 0
push dword [esp + 0x10]
push 0xa0000060
jmp 0x10051062
cmp al, 1
jb 0x10050b82
cmp dword [esp + 0x48], 0x21
jne 0x10050b8b
cmp dword [esp + 0x4c], 0
jne 0x10050b8b
mov al, byte [esp + 0x1e8]
and al, 0xf
mov byte [esi + 0x81c], al
cmp byte [esi + 0x81c], 0
je 0x10050bb7
mov dword [esi + 0x74c], 0xa0000035
mov edx, dword [esi + 8]
test edx, edx
je 0x10051068
lea eax, [esi + 0x754]
push eax
push 0
push dword [esp + 0x10]
push 0xa0000035
jmp 0x10051062
lea edi, [esp + 0x1e8]
lea edx, [esp + 0x50]
lea ecx, [esp + 0x1c8]
call fcn.100e9080
movups xmm0, xmmword [0x101a2500]
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0
push eax
movups xmmword [esp + 0x5c], xmm0
mov edx, 0x40
lea ecx, [esp + 0x28c]
movups xmm0, xmmword [0x101a2510]
mov dword [esp + 0x54], 0
movups xmmword [esp + 0x6c], xmm0
call fcn.100e8ff0
add esp, 4
lea eax, [esp + 0x50]
mov edx, 0x20
lea ecx, [esp + 0x1c8]
push eax
call fcn.100e8ff0
add esp, 4
lea edx, [esp + 0x50]
lea ecx, [esp + 0x1c8]
call fcn.100e9080
mov al, byte [esi + 0x81b]
lea edx, [edi + 0x10]
mov byte [esp + 0x13], al
test al, al
jne 0x10050f4d
movups xmm0, xmmword [edi]
lea ecx, [esp + 0x228]
cmp edx, ecx
lea eax, [esp + 0x1e8]
movups xmmword [esp + 0x228], xmm0
cmovne eax, edx
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x238], xmm0
jmp 0x10050fb5
xorps xmm0, xmm0
lea ecx, [esp + 0x218]
movlpd qword [esp + 0x20], xmm0
lea edi, [esp + 0x1e8]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x228]
xorps xmm0, xmm0
cmp ecx, edx
movlpd qword [esp + 0x48], xmm0
lea eax, [esp + 0x1e8]
cmovne eax, ecx
lea esi, [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov edx, eax
push esi
push 0
push 0x10
mov eax, dword [ecx]
push edx
mov dword [esp + 0x1c], edx
call dword [eax + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
add eax, ecx
mov edx, dword [esp + 0x4c]
adc dword [esp + 0x14], edx
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x30]
mov dword [esp + 0x20], eax
jg 0x10050d14
jl 0x10050d01
cmp eax, 0x1000
ja 0x10050d14
test edx, edx
ja 0x10050e1d
jb 0x10050d14
cmp ecx, 0x10
jae 0x10050e04
push dword [esp + 0x18]
lea ecx, [esi + 4]
push 0
push 0
push dword [esp + 0x20]
push eax
call fcn.10057270
mov eax, dword [esi + 0x750]
xorps xmm0, xmm0
or eax, dword [esi + 0x754]
movlpd qword [esp + 0x20], xmm0
jne 0x1005107b
mov edx, dword [esp + 0x4c]
test edx, edx
ja 0x10050df0
jb 0x10050d5f
mov ecx, dword [esp + 0x48]
cmp ecx, 0x10
jae 0x10050df4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
test eax, eax
je 0x10050f1b
mov al, byte [esi + 0x81b]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
test al, al
jne 0x10050da0
test edx, edx
ja 0x10050b8b
jb 0x10050de6
test ecx, ecx
jne 0x10050b8b
mov dword [esp + 0x34], 1
jmp 0x10050df4
cmp al, 1
jb 0x10050de6
cmp ecx, 1
jne 0x10050b8b
test edx, edx
jne 0x10050b8b
lea esi, [esp + 0x228]
lea eax, [edi + 0x10]
cmp eax, esi
mov esi, dword [esp + 0x30]
jae 0x10050dd7
mov al, byte [eax]
and al, 0xf
mov dword [esp + 0x34], ecx
mov byte [esi + 0x81c], al
jmp 0x10050df4
mov al, byte [esp + 0x1e8]
and al, 0xf
mov byte [esi + 0x81c], al
mov dword [esp + 0x34], 1
jmp 0x10050df4
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
test edx, edx
ja 0x10050e1d
jb 0x10050e0e
test ecx, ecx
jne 0x10050e1d
cmp byte [esi + 0x81b], 0
jne 0x10050f07
jmp 0x10050e22
add dword [esp + 0xc], 0x10
movups xmm0, xmmword [edi]
lea eax, [esp + 0x50]
mov edx, 0x10
push eax
mov ecx, edi
movups xmmword [esp + 0x3c], xmm0
movups xmmword [esp + 0x22c], xmm0
call fcn.100e8ff0
add esp, 4
lea eax, [esp + 0xb8]
mov edx, edi
mov ecx, edi
push eax
call fcn.100e7540
lea ecx, [esp + 0x1c3]
add esp, 4
lea eax, [edi + 0xf]
cmp edi, ecx
ja 0x10050e97
lea ecx, [esp + 0x1b0]
cmp eax, ecx
jb 0x10050e97
lea esi, [esp + 0x1b0]
mov ecx, edi
sub esi, edi
mov edx, 0x10
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x10050e83
mov esi, dword [esp + 0x30]
jmp 0x10050ea8
movups xmm0, xmmword [edi]
movaps xmm1, xmmword [esp + 0x1b0]
xorps xmm1, xmm0
movups xmmword [edi], xmm1
cmp dword [esp + 0x34], 0
movups xmm0, xmmword [esp + 0x38]
movups xmmword [esp + 0x1b0], xmm0
je 0x10050ece
mov al, byte [esi + 0x81c]
test al, al
je 0x10050ece
movzx eax, al
cdq
mov ecx, eax
jmp 0x10050ed5
mov ecx, 0x10
xor edx, edx
mov eax, dword [esp + 0x18]
push edx
push ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
push edi
mov eax, dword [eax + 0x18]
call eax
test eax, eax
je 0x10051004
add edi, 0x10
lea ecx, [esp + 0x228]
cmp edi, ecx
lea eax, [esp + 0x1e8]
cmovne eax, edi
mov edi, eax
cmp dword [esp + 0x34], 0
jne 0x10050bbe
mov ecx, dword [esp + 0xc]
jmp 0x10050ca2
mov ecx, dword [esi + 8]
mov dword [esi + 0x74c], 0xa0000015
test ecx, ecx
je 0x10051068
mov eax, dword [ecx]
lea edx, [esi + 0x754]
push edx
push 0
push dword [esp + 0x10]
push 0xa0000015
push ecx
call dword [eax + 0x14]
jmp 0x10051068
mov eax, dword [edi + 9]
lea ecx, [esp + 0x1e8]
movq xmm0, qword [edi + 1]
mov dword [esp + 0x230], eax
mov ax, word [edi + 0xd]
mov word [esp + 0x234], ax
movzx eax, byte [edi + 0xf]
mov byte [esp + 0x236], al
lea eax, [esp + 0x228]
cmp edx, eax
movq qword [esp + 0x228], xmm0
cmovne ecx, edx
mov edx, eax
lea eax, [esp + 0x1e8]
movups xmm0, xmmword [ecx]
add ecx, 0x10
cmp ecx, edx
movups xmmword [esp + 0x237], xmm0
cmovne eax, ecx
movzx eax, byte [eax]
mov byte [esp + 0x247], al
lea ecx, [esp + 0x1c8]
mov edi, 0x1c
lea edx, [esp + 0x228]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10050ff4
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10050fc8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x2f4]
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esp + 0x13], 0
jne 0x10050b35
jmp 0x10050afb
cmp dword [esi + 0x74c], 0
jne 0x1005107b
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov edx, dword [esi + 8]
cmp eax, 0x70
jne 0x10051042
mov dword [esi + 0x74c], 0xa0000054
test edx, edx
je 0x10051068
lea eax, [esi + 0x754]
push eax
push 0
push dword [esp + 0x10]
push 0xa0000054
jmp 0x10051062
mov dword [esi + 0x74c], 0xa0000030
test edx, edx
je 0x10051068
lea eax, [esi + 0x754]
push eax
push 0
push dword [esp + 0x10]
push 0xa0000030
mov ecx, dword [edx]
push edx
call dword [ecx + 0x14]
cmp byte [esi + 0x734], 0
je 0x1005107b
mov dword [esi + 0x748], 1
mov ecx, dword [esp + 0x2fc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret 0x14