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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x254
mov eax, dword [0x100883c8]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x24]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x18], edi
mov dword [esp + 0x3c], esi
call eax
mov ebx, dword [edi + 0x1c]
xor edx, edx
mov dword [esp + 0x10], eax
cmp ebx, 0x40
mov ecx, dword [edi]
setne dl
mov dword [esp + 0x44], ecx
xor eax, eax
mov dword [esp + 0x54], ebx
cmp dword [edi + 0x20], 2
sete al
lea edx, [edx*8 + 8]
mov dword [esp + 0x38], edx
lea eax, [eax*8 + 0x28]
mov dword [esp + 0x5c], eax
xor eax, eax
cmp byte [ebp + 0x34], al
sete al
sub esi, ecx
mov ecx, dword [ebp + 0x30]
xor edi, edi
dec ecx
mov dword [esp + 0x28], edi
lea eax, [eax*4 + 2]
mov dword [esp + 0x20], eax
lea eax, [esi + edx]
add eax, ebx
add esi, dword [ebp + 0x2c]
add eax, ecx
xor edx, edx
div ebx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, esi
div ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], edx
add eax, esi
xor edx, edx
div ebx
cmp byte [ebp + 0x34], cl
mov edx, dword [esp + 0x20]
setne cl
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
add edx, ecx
mov ecx, eax
sub ecx, dword [esp + 0x20]
cmp edx, eax
jae 0x1003a14f
mov edi, ecx
imul edi, ebx
cmp edx, eax
mov dword [esp + 0x28], edi
push dword [esp + 0x10]
sbb eax, eax
shl esi, 3
and eax, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
cmp byte [ebp + 0x34], 0
jne 0x1003a1d6
push ebx
lea eax, [esp + 0xdc]
push 0
lea esi, [esi + ebx*8]
push eax
mov dword [esp + 0x38], esi
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0x1c]
lea eax, [esp + 0xe8]
push dword [esp + 0x68]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
xor eax, eax
test ebx, ebx
je 0x1003a1bd
nop dword [eax + eax]
xor byte [esp + eax + 0xd8], 0x36
inc eax
cmp eax, ebx
jb 0x1003a1b0
push ebx
lea eax, [esp + 0xdc]
push eax
mov eax, dword [esp + 0x20]
push dword [esp + 0x18]
mov eax, dword [eax + 0x14]
call eax
add esp, 0xc
xor ecx, ecx
mov eax, 8
cmp ebx, 0x40
xorps xmm0, xmm0
movups xmmword [esp + 0x88], xmm0
cmove eax, ecx
mov ecx, dword [esp + 0x18]
xor edx, edx
cmp dword [ecx + 0x20], 2
jne 0x1003a21c
lea edi, [esp + 0x88]
xor ecx, ecx
add eax, edi
mov edi, eax
mov eax, esi
lea edx, [edx + 1]
shr eax, cl
add ecx, 8
mov byte [edi + edx - 1], al
cmp ecx, 0x20
jb 0x1003a207
jmp 0x1003a24e
mov edi, dword [esp + 0x2c]
lea ebx, [esp + 0x8c]
xor esi, esi
add eax, ebx
mov ebx, eax
nop dword [eax]
mov ecx, 0x18
lea esi, [esi + 1]
sub ecx, edx
mov eax, edi
shr eax, cl
add edx, 8
mov byte [ebx + esi - 1], al
cmp edx, 0x20
jb 0x1003a230
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
test edi, edi
je 0x1003a385
cmp byte [ebp + 0x34], 0
je 0x1003a301
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
push ebx
push dword [esp + 0x34]
mov eax, dword [eax + 0x14]
sub esi, ebx
push dword [esp + 0x18]
mov dword [esp + 0x28], esi
call eax
mov eax, dword [esp + 0x3c]
add eax, ebx
push esi
push eax
lea eax, [esp + 0x16c]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, ebx
sub eax, esi
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x178]
add eax, esi
push eax
call sub.VCRUNTIME140.dll_memcpy
push ebx
lea eax, [esp + 0x180]
push eax
mov eax, dword [esp + 0x44]
push dword [esp + 0x3c]
mov eax, dword [eax + 0x14]
call eax
xor edx, edx
mov eax, edi
div ebx
add esp, 0x30
dec eax
cmp eax, 1
jbe 0x1003a385
mov esi, dword [esp + 0x34]
lea edi, [eax - 1]
sub esi, dword [esp + 0x1c]
add esi, ebx
mov eax, dword [esp + 0x18]
push ebx
push esi
push dword [esp + 0x18]
mov eax, dword [eax + 0x14]
call eax
add esp, 0xc
add esi, ebx
sub edi, 1
jne 0x1003a2e3
jmp 0x1003a381
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x160], eax
mov al, byte [ecx + 0xc]
mov byte [esp + 0x164], al
lea eax, [ebx - 0xd]
push eax
lea eax, [esp + 0x169]
movq qword [esp + 0x15c], xmm0
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
push ebx
lea eax, [esp + 0x168]
push eax
mov eax, dword [esp + 0x2c]
push dword [esp + 0x24]
mov eax, dword [eax + 0x14]
call eax
xor edx, edx
mov eax, edi
div ebx
add esp, 0x18
cmp eax, 1
jbe 0x1003a385
add esi, 0xfffffff3
lea edi, [eax - 1]
add esi, ebx
mov eax, dword [esp + 0x18]
push ebx
push esi
push dword [esp + 0x18]
mov eax, dword [eax + 0x14]
call eax
add esp, 0xc
add esi, ebx
sub edi, 1
jne 0x1003a368
mov edi, dword [esp + 0x28]
push 0x40
lea eax, [esp + 0x9c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x40]
add eax, ecx
mov esi, dword [esp + 0x44]
mov dword [esp + 0x64], eax
cmp ecx, eax
ja 0x1003a618
mov eax, dword [esp + 0x48]
movzx eax, al
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
movzx eax, al
mov dword [esp + 0x4c], eax
nop dword [eax]
mov eax, dword [esp + 0x1c]
movzx edx, cl
mov ecx, edx
neg ecx
add eax, ecx
add ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov eax, edx
sub eax, dword [esp + 0x1c]
or dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
sub edx, dword [esp + 0x4c]
sar eax, 0x1f
mov dword [esp + 0x20], eax
not al
sar ecx, 0x1f
sar edx, 0x1f
or cl, dl
mov byte [esp + 0x16], al
mov dword [esp + 0x60], ecx
mov al, cl
not al
mov byte [esp + 0x17], al
movsx eax, al
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x70], xmm0
test ebx, ebx
je 0x1003a4fe
mov dl, byte [esp + 0x16]
mov al, cl
mov esi, dword [esp + 0x50]
or al, dl
mov byte [esp + 0x27], al
neg esi
mov eax, ebx
sub eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
sub eax, ebx
lea eax, [esp + eax + 0x88]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
lea ebx, [esi - 1]
mov ecx, esi
sar ebx, 0x1f
sar ecx, 0x1f
xor dh, dh
not cl
and cl, dl
cmp edi, eax
jae 0x1003a485
mov eax, dword [esp + 0x30]
jmp 0x1003a498
add eax, dword [ebp + 0x30]
mov edi, dword [esp + 0x28]
cmp edi, eax
jae 0x1003a49b
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x3c]
mov dh, byte [eax + edi]
or bl, byte [esp + 0x20]
mov dl, cl
not dl
and cl, 0x80
and dl, dh
inc edi
or dl, cl
mov dword [esp + 0x28], edi
and dl, bl
mov ebx, dword [esp + 0x50]
and dl, byte [esp + 0x27]
lea eax, [esi + ebx]
cmp eax, dword [esp + 0x48]
jb 0x1003a4d6
mov eax, dword [esp + 0x2c]
mov cl, byte [eax]
mov al, byte [esp + 0x60]
and cl, byte [esp + 0x17]
and al, dl
or cl, al
mov dl, cl
inc dword [esp + 0x2c]
lea eax, [esp + 0x1d8]
add eax, ebx
mov byte [eax + esi], dl
inc esi
mov dl, byte [esp + 0x16]
lea eax, [esi + ebx]
mov ebx, dword [esp + 0x54]
cmp eax, ebx
jb 0x1003a466
mov esi, dword [esp + 0x44]
push ebx
lea eax, [esp + 0x1dc]
push eax
mov eax, dword [esp + 0x20]
push dword [esp + 0x18]
mov eax, dword [eax + 0x14]
call eax
push esi
push 0
lea eax, [esp + 0x1ec]
push eax
mov eax, dword [esp + 0x30]
push dword [esp + 0x28]
mov eax, dword [eax + 0x24]
call eax
add esp, 0x1c
xor eax, eax
test esi, esi
je 0x1003a605
cmp esi, 0x40
jb 0x1003a5df
movaps xmm2, xmmword [esp + 0x70]
mov ecx, esi
and ecx, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x98]
movups xmm1, xmmword [esp + eax + 0x1d8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x98], xmm1
movups xmm0, xmmword [esp + eax + 0xa8]
movups xmm1, xmmword [esp + eax + 0x1e8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0xa8], xmm1
movups xmm0, xmmword [esp + eax + 0xb8]
movups xmm1, xmmword [esp + eax + 0x1f8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0xb8], xmm1
movups xmm1, xmmword [esp + eax + 0x208]
movups xmm0, xmmword [esp + eax + 0xc8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0xc8], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x1003a550
cmp eax, esi
jae 0x1003a605
mov dl, byte [esp + 0x17]
nop dword [eax]
nop word [eax + eax]
mov cl, byte [esp + eax + 0x1d8]
and cl, dl
or byte [esp + eax + 0x98], cl
inc eax
cmp eax, esi
jb 0x1003a5f0
mov ecx, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x64]
jbe 0x1003a3d0
mov edi, dword [esp + 0x18]
push dword [esp + 0x10]
mov eax, dword [edi + 0x10]
call eax
add esp, 4
cmp byte [ebp + 0x34], 0
je 0x1003a678
push dword [esp + 0x5c]
lea eax, [esp + 0xdc]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0x1c]
mov ebx, dword [esp + 0x20]
push dword [esp + 0x68]
mov eax, dword [edi + 0x14]
push ebx
call eax
push dword [esp + 0x74]
lea eax, [esp + 0xf4]
push eax
mov eax, dword [edi + 0x14]
push ebx
call eax
push esi
lea eax, [esp + 0xc0]
push eax
mov eax, dword [edi + 0x14]
push ebx
call eax
add esp, 0x30
jmp 0x1003a6b2
xor eax, eax
test ebx, ebx
je 0x1003a68d
nop
xor byte [esp + eax + 0xd8], 0x6a
inc eax
cmp eax, ebx
jb 0x1003a680
push ebx
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0xdc]
push eax
mov eax, dword [edi + 0x14]
push ebx
call eax
push esi
lea eax, [esp + 0xa8]
push eax
mov eax, dword [edi + 0x14]
push ebx
call eax
add esp, 0x18
push dword [ebp + 0x10]
mov eax, dword [edi + 0x18]
push dword [esp + 0x6c]
push dword [esp + 0x74]
push ebx
call eax
mov eax, dword [edi + 0xc]
push 1
push ebx
call eax
mov ecx, dword [esp + 0x274]
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10065810
mov esp, ebp
pop ebp
ret