Function at 0x537640
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b36d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0040f7a0
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x5376df
push str.HMAC:_can_only_be_used_with_a_block_based_hash_function
lea ecx, [ebp - 0x54]
call fcn.00414fd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040eeb0
push 0x589e80
lea edx, [ebp - 0x7c]
push edx
call fcn.00541c91
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00417140
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x24]
mov eax, dword [edx + 0x20]
call eax
mov esi, eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x24]
call eax
lea ecx, [esi + eax*2]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.005120a0
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x20]
ja 0x53776b
mov ecx, dword [ebp - 0x14]
call fcn.0040fc20
test eax, eax
je 0x537769
cmp dword [ebp + 8], 0
je 0x537769
cmp dword [ebp + 0xc], 0
je 0x537769
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040fc20
push eax
call fcn.00542020
add esp, 0xc
jmp 0x5377b3
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x3c]
call edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x14]
call fcn.0040fc20
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x2c]
call dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp + 0xc]
push ecx
push 0
mov ecx, dword [ebp - 0x14]
call fcn.0040fc20
add eax, dword [ebp + 0xc]
push eax
call fcn.00541ec0
add esp, 0xc
mov dword [ebp - 0x18], 0
jmp 0x5377e2
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jae 0x53782e
mov ecx, dword [ebp - 0x14]
call fcn.0040fc20
mov ecx, dword [ebp - 0x18]
movzx edx, byte [eax + ecx]
xor edx, 0x5c
mov byte [ebp - 0xd], dl
mov ecx, dword [ebp - 0x14]
call fcn.005375c0
mov ecx, dword [ebp - 0x18]
mov dl, byte [ebp - 0xd]
mov byte [eax + ecx], dl
mov ecx, dword [ebp - 0x14]
call fcn.0040fc20
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax]
xor ecx, 0x36
mov edx, dword [ebp - 0x30]
mov byte [edx], cl
jmp 0x5377d9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc