Function at 0x100524c0
Capabilities:
Authenticate hmac
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push 0x120
mov ebx, edx
mov edi, ecx
call fcn.1008680d
mov esi, dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x1fbec], eax
test eax, eax
je 0x100526d8
push 0x120
push 0
push eax
call fcn.1007cff0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, 0x14
cmp edi, 0x14
jg 0x1005251b
mov eax, edi
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.1007d410
push 0x40
lea eax, [ebp - 0xf0]
push 0x5c
push eax
call fcn.1007cff0
push 0x40
lea eax, [ebp - 0xb0]
push 0x36
push eax
call fcn.1007cff0
add esp, 0x24
xor ecx, ecx
jmp 0x10052550
mov al, byte [ebp + ecx - 0x14]
xor byte [ebp + ecx - 0xb0], al
xor byte [ebp + ecx - 0xf0], al
mov al, byte [ebp + ecx - 0x13]
xor byte [ebp + ecx - 0xaf], al
xor byte [ebp + ecx - 0xef], al
mov al, byte [ebp + ecx - 0x12]
xor byte [ebp + ecx - 0xae], al
xor byte [ebp + ecx - 0xee], al
mov al, byte [ebp + ecx - 0x11]
xor byte [ebp + ecx - 0xad], al
xor byte [ebp + ecx - 0xed], al
mov al, byte [ebp + ecx - 0x10]
xor byte [ebp + ecx - 0xac], al
xor byte [ebp + ecx - 0xec], al
add ecx, 5
cmp ecx, 0x14
jl 0x10052550
lea eax, [ebp - 0x70]
mov dword [ebp - 0x6c], 0
push eax
mov edx, 0x40
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x68], 0x67452301
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
mov dword [ebp - 0x58], 0xc3d2e1f0
call fcn.10052130
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x14]
call fcn.10052350
lea eax, [ebp - 0x70]
mov dword [ebp - 0x6c], 0
push eax
mov edx, 0x40
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x68], 0x67452301
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
mov dword [ebp - 0x58], 0xc3d2e1f0
call fcn.10052130
add esp, 8
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x104]
call fcn.10052350
mov eax, edi
xor ecx, ecx
cdq
and edx, 7
add edx, eax
sar edx, 3
test edx, edx
jle 0x1005268e
lea esp, [esp]
cmp ecx, 0x14
jae 0x1005267b
mov al, byte [ebp + ecx - 0x14]
jmp 0x10052682
mov al, byte [ebp + ecx - 0x118]
mov byte [ebp + ecx - 0x124], al
inc ecx
cmp ecx, edx
jl 0x10052670
mov ecx, esi
mov edi, 1
call fcn.10048a50
test eax, eax
je 0x100526cb
mov edx, dword [esi + 0x1f560]
lea eax, [esi + 0x1f7ac]
and edx, 3
lea ecx, [ebp - 0x124]
push esi
push eax
lea edx, [edx*8 + 8]
call fcn.10058cb0
dec eax
add esp, 8
neg eax
sbb eax, eax
and edi, eax
test edi, edi
jne 0x100526dd
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, dword [esi + 0x1f564]
test eax, eax
je 0x100526fa
push eax
call fcn.10086818
add esp, 4
mov dword [esi + 0x1f564], 0
mov eax, dword [esi + 0x1fbec]
test eax, eax
je 0x10052739
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10052721
push eax
call fcn.10086818
mov eax, dword [esi + 0x1fbec]
add esp, 4
mov dword [eax + 0xc], 0
push dword [esi + 0x1fbec]
call fcn.10086818
add esp, 4
mov dword [esi + 0x1fbec], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret