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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2ec], eax
mov eax, dword [ebp + 0x18]
push 0x40
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp + 0x24]
pop ebx
mov dword [ebp - 0x300], eax
xor eax, eax
push 8
inc eax
mov dword [ebp - 0x31c], ecx
cmp dword [ebp + 0x20], 0x100000
pop edi
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x2fc], 0x28
mov dword [ebp - 0x2cc], edi
mov dword [ebp - 0x2f8], eax
mov byte [ebp - 0x2ad], al
jae 0x60bfe5
push ecx
call fcn.0054bf2f
push eax
call fcn.00545956
pop ecx
pop ecx
sub eax, 4
je 0x60c0e8
sub eax, 0x3c
je 0x60c0c0
sub eax, 0x260
je 0x60c097
sub eax, 1
je 0x60c05c
sub eax, 1
je 0x60c026
sub eax, 1
je 0x60bff6
test esi, esi
je 0x60bfe5
and dword [esi], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret
lea eax, [ebp - 0x2ac]
push eax
call fcn.0056b43e
pop ecx
test eax, eax
jle 0x60bfe5
push 0x1c
mov dword [ebp - 0x2d4], 0x60c8a3
mov dword [ebp - 0x2c0], 0x56b634
pop ecx
push 0x28
pop edx
jmp 0x60c125
lea eax, [ebp - 0x2ac]
push eax
call fcn.0056ca32
pop ecx
test eax, eax
jle 0x60bfe5
push 0x40
pop ecx
push 0x10
pop edi
mov dword [ebp - 0x2d4], 0x60c8d7
mov dword [ebp - 0x2c0], 0x56caca
lea ebx, [ecx + 0x40]
mov dword [ebp - 0x2cc], edi
jmp 0x60c01e
lea eax, [ebp - 0x2ac]
push eax
call fcn.0056c65d
pop ecx
test eax, eax
jle 0x60bfe5
push 0x30
pop ecx
push 0x10
pop edi
mov dword [ebp - 0x2d4], 0x60c8d7
mov eax, 0x56caca
lea ebx, [ecx + 0x50]
mov dword [ebp - 0x2cc], edi
push 0x28
pop edx
jmp 0x60c11f
lea eax, [ebp - 0x2ac]
push eax
call fcn.0056b5dc
pop ecx
test eax, eax
jle 0x60bfe5
mov dword [ebp - 0x2d4], 0x60c8a3
mov eax, 0x56b634
push 0x20
pop ecx
jmp 0x60c08f
lea eax, [ebp - 0x2ac]
push eax
call fcn.0056a05e
pop ecx
test eax, eax
jle 0x60bfe5
mov dword [ebp - 0x2d4], 0x60c822
mov eax, 0x56a09a
push 0x14
jmp 0x60c0bd
lea eax, [ebp - 0x2ac]
push eax
call fcn.005905e9
pop ecx
test eax, eax
jle 0x60bfe5
push 0x10
pop ecx
push 0x30
pop edx
mov dword [ebp - 0x2d4], 0x60c7ae
mov eax, 0x59061e
mov dword [ebp - 0x2fc], edx
mov byte [ebp - 0x2ad], 0
mov dword [ebp - 0x2c0], eax
cmp byte [ebp + 0x2c], 0
push 0xd
pop esi
mov dword [ebp - 0x2c8], ecx
mov dword [ebp - 0x2f4], esi
je 0x60c14d
mov esi, dword [ebp + 0x28]
add esi, 0xb
add esi, edx
push 2
mov dword [ebp - 0x2f4], esi
pop eax
jmp 0x60c15a
lea eax, [ebx + 0xff]
xor edx, edx
add eax, ecx
div ebx
inc eax
sub esi, ecx
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp + 0x20]
xor edx, edx
dec eax
and dword [ebp - 0x2bc], 0
lea ecx, [esi + edi]
add esi, dword [ebp + 0x1c]
add ecx, ebx
add eax, ecx
xor ecx, ecx
div ebx
xor edx, edx
mov dword [ebp - 0x2b4], eax
mov eax, esi
div ebx
mov dword [ebp - 0x2e8], edx
xor edx, edx
mov dword [ebp - 0x304], eax
lea eax, [esi + edi]
div ebx
cmp byte [ebp + 0x2c], cl
mov edx, dword [ebp - 0x2b4]
setne cl
mov dword [ebp - 0x308], eax
add ecx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d8], ecx
mov ecx, edx
sub ecx, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x2d8]
cmp eax, edx
jae 0x60c1df
mov eax, ecx
imul eax, ebx
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2d8]
cmp eax, edx
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x2d8], eax
mov eax, esi
shl eax, 3
cmp byte [ebp + 0x2c], 0
mov dword [ebp - 0x2b8], eax
jne 0x60c268
lea eax, [eax + ebx*8]
push ebx
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.00739c90
mov eax, dword [ebp + 0x28]
add esp, 0xc
cmp eax, 0x80
ja 0x60bfe5
push eax
push dword [ebp - 0x300]
lea eax, [ebp - 0xd4]
push eax
call fcn.007390e0
add esp, 0xc
xor eax, eax
xor byte [ebp + eax - 0xd4], 0x36
inc eax
cmp eax, ebx
jb 0x60c23b
mov esi, dword [ebp - 0x2c0]
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x2ac]
push eax
call esi
mov eax, dword [ebp - 0x2b8]
pop ecx
pop ecx
jmp 0x60c26e
mov esi, dword [ebp - 0x2c0]
mov ecx, eax
shr ecx, 0x18
mov dword [ebp - 0x2e4], ecx
mov ecx, eax
shr ecx, 0x10
shr eax, 8
cmp byte [ebp - 0x2ad], 0
mov dword [ebp - 0x2e0], ecx
mov dword [ebp - 0x2b4], eax
je 0x60c2cf
lea eax, [edi - 4]
push eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00739c90
mov eax, dword [ebp - 0x2e4]
mov byte [ebp + edi - 0x18], al
mov eax, dword [ebp - 0x2e0]
mov byte [ebp + edi - 0x17], al
mov eax, dword [ebp - 0x2b4]
mov byte [ebp + edi - 0x16], al
mov eax, dword [ebp - 0x2b8]
mov byte [ebp + edi - 0x15], al
jmp 0x60c303
push edi
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00739c90
mov eax, dword [ebp - 0x2e4]
mov byte [ebp + edi - 0x19], al
mov eax, dword [ebp - 0x2e0]
mov byte [ebp + edi - 0x1a], al
mov eax, dword [ebp - 0x2b4]
mov byte [ebp + edi - 0x1b], al
mov eax, dword [ebp - 0x2b8]
mov byte [ebp + edi - 0x1c], al
add esp, 0xc
cmp dword [ebp - 0x2bc], 0
jbe 0x60c44b
cmp byte [ebp + 0x2c], 0
je 0x60c3d3
mov eax, dword [ebp - 0x2f4]
cmp eax, ebx
jbe 0x60bfe5
push dword [ebp - 0x2ec]
sub eax, ebx
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2ac]
push eax
call esi
push dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x2ec]
add eax, ebx
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.007390e0
mov eax, ebx
sub eax, dword [ebp - 0x2b8]
push eax
push dword [ebp - 0x2f0]
lea eax, [ebp - 0x154]
add eax, dword [ebp - 0x2b8]
push eax
call fcn.007390e0
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x2ac]
push eax
call esi
mov eax, dword [ebp - 0x2bc]
xor edx, edx
div ebx
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x60c44b
mov edi, dword [ebp - 0x2f0]
sub edi, dword [ebp - 0x2b8]
add edi, ebx
dec eax
mov dword [ebp - 0x2b4], eax
lea eax, [ebp - 0x2ac]
push edi
push eax
call esi
pop ecx
add edi, ebx
sub dword [ebp - 0x2b4], 1
pop ecx
jne 0x60c3ba
jmp 0x60c445
mov esi, dword [ebp - 0x2ec]
lea edi, [ebp - 0x154]
lea eax, [ebx - 0xd]
push eax
lea eax, [ebp - 0x147]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x2f0]
push edi
push eax
call fcn.007390e0
mov esi, dword [ebp - 0x2c0]
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x2ac]
push eax
call esi
mov eax, dword [ebp - 0x2bc]
xor edx, edx
div ebx
add esp, 0x14
cmp eax, 1
jbe 0x60c445
add edi, 0xfffffff3
add edi, ebx
dec eax
mov dword [ebp - 0x2b4], eax
lea eax, [ebp - 0x2ac]
push edi
push eax
call esi
pop ecx
add edi, ebx
sub dword [ebp - 0x2b4], 1
pop ecx
jne 0x60c42e
mov edi, dword [ebp - 0x2cc]
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00739c90
mov eax, dword [ebp - 0x2d0]
add esp, 0xc
mov ecx, dword [ebp - 0x2d8]
add eax, ecx
mov dword [ebp - 0x318], eax
cmp ecx, eax
ja 0x60c69e
mov eax, dword [ebp - 0x2e8]
neg dword [ebp - 0x2e8]
lea edx, [eax + 1]
shr eax, 0x1f
mov dword [ebp - 0x2b4], eax
mov eax, edx
shr eax, 0x1f
mov dword [ebp - 0x310], eax
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x30c], edx
mov dword [ebp - 0x314], eax
sub edi, ebx
lea eax, [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x2cc], eax
mov eax, ecx
mov esi, dword [ebp - 0x2bc]
xor eax, dword [ebp - 0x304]
xor edi, edi
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and dl, al
mov eax, ecx
xor eax, dword [ebp - 0x308]
neg dl
mov dword [ebp - 0x2e0], edx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and cl, al
neg cl
mov al, cl
mov dword [ebp - 0x2e4], ecx
not al
or al, dl
mov byte [ebp - 0x2c1], al
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2f4]
mov byte [ebp - 0x2ad], 0
cmp esi, ecx
jae 0x60c536
mov eax, dword [ebp - 0x2ec]
jmp 0x60c547
mov eax, dword [ebp + 0x20]
add eax, ecx
cmp esi, eax
jae 0x60c550
mov eax, dword [ebp - 0x2f0]
sub eax, ecx
mov al, byte [eax + esi]
mov byte [ebp - 0x2ad], al
mov ecx, dword [ebp - 0x2d0]
mov edx, edi
shr ecx, 0x1f
inc esi
xor cl, byte [ebp - 0x2b4]
shr edx, 0x1f
mov al, dl
xor al, byte [ebp - 0x2b4]
or cl, al
mov eax, dword [ebp - 0x2e0]
xor cl, dl
movzx eax, al
dec cl
movzx ecx, cl
and ecx, eax
mov dword [ebp - 0x2dc], ecx
not ecx
mov dword [ebp - 0x2bc], ecx
mov eax, dword [ebp - 0x2bc]
and al, byte [ebp - 0x2ad]
mov ecx, dword [ebp - 0x2dc]
and cl, 0x80
or cl, al
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x2dc], ecx
mov ecx, edi
sub ecx, dword [ebp - 0x30c]
shr ecx, 0x1f
xor cl, al
xor al, dl
or cl, al
xor cl, dl
mov edx, dword [ebp - 0x2dc]
dec cl
and cl, byte [ebp - 0x2e0]
not cl
and cl, byte [ebp - 0x2c1]
and dl, cl
cmp edi, dword [ebp - 0x314]
jb 0x60c614
mov eax, dword [ebp - 0x2e4]
movzx eax, al
mov dword [ebp - 0x2dc], eax
not eax
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2dc]
and cl, byte [eax]
mov eax, dword [ebp - 0x2bc]
and dl, al
or dl, cl
mov byte [ebp + edi - 0x1d4], dl
inc edi
inc dword [ebp - 0x2d0]
inc dword [ebp - 0x2b8]
cmp edi, ebx
jb 0x60c51d
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x2bc], esi
mov esi, dword [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x2ac]
push eax
call esi
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x2ac]
push eax
call dword [ebp - 0x2d4]
mov edi, dword [ebp - 0x2c8]
add esp, 0x10
mov edx, dword [ebp - 0x2e4]
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1d4]
and al, dl
or byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, edi
jb 0x60c671
mov ecx, dword [ebp - 0x2d8]
inc ecx
mov dword [ebp - 0x2d8], ecx
cmp ecx, dword [ebp - 0x318]
jbe 0x60c4b7
jmp 0x60c6a4
mov edi, dword [ebp - 0x2c8]
call fcn.005702ef
mov esi, eax
test esi, esi
je 0x60c723
push 0
push dword [ebp - 0x31c]
call fcn.0054bf2f
pop ecx
push eax
push esi
call fcn.0056ffbe
add esp, 0xc
test eax, eax
jle 0x60c723
cmp byte [ebp + 0x2c], 0
je 0x60c73c
mov ebx, dword [ebp - 0x2fc]
lea eax, [ebp - 0xd4]
push ebx
push 0x5c
push eax
call fcn.00739c90
push dword [ebp + 0x28]
push dword [ebp - 0x300]
push esi
call fcn.0057013f
add esp, 0x18
test eax, eax
jle 0x60c723
push ebx
lea eax, [ebp - 0xd4]
push eax
push esi
call fcn.0057013f
add esp, 0xc
test eax, eax
jle 0x60c723
push edi
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.0057013f
add esp, 0xc
test eax, eax
jg 0x60c74d
and dword [ebp - 0x2f8], 0
push esi
call fcn.005702d0
mov eax, dword [ebp - 0x2f8]
pop ecx
jmp 0x60bfe7
xor eax, eax
xor byte [ebp + eax - 0xd4], 0x6a
inc eax
cmp eax, ebx
jb 0x60c73e
jmp 0x60c6fc
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0x320]
push esi
call fcn.0056fe8a
add esp, 0xc
test eax, eax
je 0x60c72a
mov ecx, dword [ebp - 0x324]
test ecx, ecx
je 0x60c72a
mov eax, dword [ebp - 0x328]
mov dword [ecx], eax
jmp 0x60c72a