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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d017d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5116c0]
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 esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov ecx, eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x4a1b4a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov edi, eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x3c]
mov ebx, eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x24]
mov edi, eax
mov ecx, ebx
mov eax, dword [ebx]
add edi, edi
call dword [eax + 0x20]
mov ebx, dword [esi + 0x14]
add eax, edi
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], edi
cmp edi, eax
je 0x4a1a92
test eax, eax
jne 0x4a1a4b
xor ecx, ecx
jmp 0x4a1a59
push eax
call fcn.00425560
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x58]
cmp eax, edi
mov dword [ebp - 0x5c], ecx
mov edx, edi
cmovb edx, eax
test ebx, ebx
je 0x4a1a8f
test ecx, ecx
je 0x4a1a7a
test edx, edx
je 0x4a1a7a
push edx
push ebx
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x64]
xor al, al
mov edi, ebx
rep stosb byte es:[edi], al
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [ebp - 0x58]
add esp, 4
mov ebx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x68]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], 0xffffffff
cmp edi, dword [ebp - 0x54]
ja 0x4a1ac3
test ebx, ebx
je 0x4a1ae2
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4a1ae2
test edi, edi
je 0x4a1ae2
push edi
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4a1ae2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
push edi
push dword [ebp - 0x60]
mov ecx, eax
mov edx, dword [eax]
push dword [esi + 0x14]
call dword [edx + 0x30]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, eax
mov ecx, dword [ebp - 0x54]
sub ecx, edi
push ecx
mov ecx, dword [esi + 0x14]
add ecx, edi
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
add esp, 0xc
cmp dword [ebp - 0x54], ebx
jbe 0x4a1b2c
nop
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov edi, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
lea ecx, [eax + edi]
mov eax, dword [esi + 0x14]
mov al, byte [eax + ebx]
xor al, 0x5c
mov byte [ecx + ebx], al
mov eax, dword [esi + 0x14]
xor byte [eax + ebx], 0x36
inc ebx
cmp ebx, dword [ebp - 0x54]
jb 0x4a1b00
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.00418035
mov esp, ebp
pop ebp
ret 0xc
push str.HMAC:_can_only_be_used_with_a_block_based_hash_function
lea ecx, [ebp - 0x28]
call fcn.0040f350
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.0041ab10
push 0x4fbd58
lea eax, [ebp - 0x50]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3