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

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp - 8], 1
jne 0x49aabc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49acfe
mov esi, esi
xor eax, eax
push 0x49acdf
push ebp
push 0x413930
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0xffffffff
xor eax, eax
push fcn.0049aa70
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0049a650
cmp dword [ebp - 4], 0
jne 0x49ab28
mov ecx, dword [str.Invalid_input_arguments]
mov edx, 1
mov eax, 0x502d6c
call fcn.00430fb0
mov edx, 0x49ab05
mov ecx, ebp
call fcn.00413470
mov esi, esi
mov eax, dword [ebp - 4]
mov edx, 1
mov ecx, dword [ebp - 4]
call dword [ecx + 0x70]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x20]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, 0x20
jg 0x49ab5e
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0x40
jmp 0x49ab68
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], pe_nt_image_headers32
mov ecx, 0x537ef0
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov edx, dword [ebp + 8]
call fcn.0040bd80
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov edx, 0x537ef0
mov eax, dword [ebp - 0xc]
add eax, 0x28
mov ecx, 1
call fcn.0040bda0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov edx, 0x537ef0
mov eax, dword [ebp - 0xc]
add eax, 0x2c
mov ecx, 1
call fcn.0040bda0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x10]
mov ecx, 1
call fcn.0040bda0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x49abec
mov edx, dword [edx - 4]
add edx, 1
cmp edx, dword [eax + 0x30]
jle 0x49ac18
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x20]
mov edx, dword [edx]
call dword [edx + 0x74]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
lea ecx, [ebp - 0x10]
call fcn.0049a8e0
jmp 0x49ac2b
mov ecx, 0x537ef0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x10]
call fcn.0040bd80
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x10]
mov ecx, 1
call fcn.0040bda0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
sub eax, 1
test eax, eax
jl 0x49ac98
mov dword [ebp - 0x14], 0xffffffff
mov esi, esi
add dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx edx, byte [edx + ecx]
xor edx, 0x36
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx + 0x28]
mov byte [ebx + ecx], dl
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx edx, byte [edx + ecx]
xor edx, 0x5c
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx + 0x2c]
mov byte [ebx + ecx], dl
cmp eax, dword [ebp - 0x14]
jg 0x49ac60
lea esi, [esi]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x74]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0049aa70
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], 0
je 0x49acd4
cmp dword [ebp - 8], 0
je 0x49acd4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
lea esi, [esi]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x49acfe
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4