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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596140
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov dword [ebp - 0x64], ecx
lea ecx, [edi + 4]
mov dword [ebp - 0x68], eax
mov eax, dword [edx + 0x18]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
mov ecx, edi
call eax
mov edx, dword [eax]
mov dword [ebp - 0x60], eax
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x422f9e
push 0x37
mov edi, 0xf
push str.HMAC:_can_only_be_used_with_a_block_based_hash_function
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x58], 0
call fcn.00410120
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.004fb249
push 0xffffffffffffffff
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x3c], vtable.CryptoPP::Exception.0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
call fcn.0040fda0
push 0x5f4e64
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 0
push edx
mov dword [ebp - 0x3c], vtable.CryptoPP::InvalidArgument.0
call fcn.004fa35f
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
mov ecx, edi
call edx
mov esi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
mov ecx, edi
call edx
mov dword [ebp - 0x6c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
mov ecx, dword [ebp - 0x6c]
add eax, eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov esi, eax
add esi, dword [ebp - 0x5c]
lea eax, [edi + 8]
push eax
call fcn.0040f350
mov esi, dword [ebp - 0x64]
cmp esi, ebx
ja 0x422ff5
mov ecx, dword [ebp - 0x68]
mov edx, dword [edi + 0x10]
push esi
push ecx
push edx
call fcn.004fbb10
add esp, 0xc
jmp 0x42301c
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
mov ecx, edi
call edx
mov ecx, dword [ebp - 0x68]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
push esi
push ecx
mov ecx, dword [edi + 0x10]
push ecx
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov esi, eax
mov ecx, dword [edi + 0x10]
mov eax, ebx
sub eax, esi
push eax
add ecx, esi
push 0
push ecx
call fcn.004fc1f0
add esp, 0xc
xor esi, esi
test ebx, ebx
je 0x423070
mov edx, dword [edi + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x5c], edx
mov edx, dword [eax + 0x3c]
mov ecx, edi
call edx
mov ecx, dword [edi + 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x60], ecx
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x5c]
mov dl, byte [ecx + esi]
add eax, dword [ebp - 0x60]
xor dl, 0x5c
mov byte [eax + esi], dl
mov eax, dword [edi + 0x10]
xor byte [eax + esi], 0x36
inc esi
cmp esi, ebx
jb 0x423037
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fb958
mov esp, ebp
pop ebp
ret 0xc