Function at 0x454050
Capabilities:
Authenticate hmac
Encode data using xor
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], ecx
push edi
xor edi, edi
mov dword [ebp - 0xc], 0x20
xor esi, esi
mov dword [ebp - 8], edi
push 0x40
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ebx
call fcn.00432ce0
test eax, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
je 0x454171
push 0x40
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x40], 0x40
call fcn.00432ce0
test eax, eax
je 0x45416e
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x20], 0x40
test esi, esi
je 0x4540f4
push esi
lea ecx, [ebp - 0x34]
call fcn.00432ce0
mov ebx, dword [ebp - 0x28]
test eax, eax
je 0x454129
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov edi, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x30], esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
cmp ecx, 0x40
jae 0x45412e
push ecx
push dword [esi]
push dword [ebp - 0x10]
call fcn.00589690
push dword [esi + 4]
push dword [esi]
mov esi, dword [ebp - 0x24]
push esi
call fcn.00589690
add esp, 0x18
jmp 0x454231
mov edi, dword [ebp - 0x34]
jmp 0x45416e
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0x800c
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x45416b
push 0
push dword [esi + 4]
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4541f1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x24]
mov dword [ebp + 8], 0
test esi, esi
je 0x45419e
mov ecx, dword [ebp - 0x18]
mov eax, esi
test ecx, ecx
je 0x45418e
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x454185
push esi
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x4541c9
mov ecx, dword [ebp - 0x38]
mov eax, edx
test ecx, ecx
je 0x4541b9
mov edi, edi
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x4541b0
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x44], 0
test edi, edi
je 0x4541e5
mov ecx, edi
test ebx, ebx
je 0x4541dc
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec ebx
jne 0x4541d3
push edi
call fcn.00582cf0
add esp, 4
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push 0
push eax
push esi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
test eax, eax
je 0x454165
call edi
test eax, eax
jne 0x454221
push dword [ebp - 4]
call edi
jmp 0x45416b
push dword [ebp - 0xc]
push esi
mov esi, dword [ebp - 0x24]
push esi
call fcn.00589690
add esp, 0xc
mov ecx, dword [ebp - 0x10]
lea edx, [esi + 0x3f]
lea eax, [ecx + 0x3f]
cmp esi, eax
ja 0x454260
cmp edx, ecx
jb 0x454260
mov edx, ecx
mov eax, esi
sub edx, esi
mov ecx, 0x40
lea ecx, [ecx]
xor byte [eax + edx], 0x36
lea eax, [eax + 1]
xor byte [eax - 1], 0x5c
dec ecx
jne 0x454250
jmp 0x4542c5
movdqa xmm1, xmmword [0x601b80]
lea edx, [ecx + 0x10]
movdqa xmm2, xmmword [0x601ba0]
mov eax, esi
sub ecx, esi
mov dword [ebp + 8], 2
mov edi, edi
dec dword [ebp + 8]
lea eax, [eax + 0x20]
movdqu xmm0, xmmword [ecx + eax - 0x20]
lea edx, [edx + 0x20]
pxor xmm0, xmm1
movdqu xmmword [ecx + eax - 0x20], xmm0
movdqu xmm0, xmmword [eax - 0x20]
pxor xmm0, xmm2
movdqu xmmword [eax - 0x20], xmm0
movdqu xmm0, xmmword [edx - 0x20]
pxor xmm0, xmm1
movdqu xmmword [edx - 0x20], xmm0
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm2
movdqu xmmword [eax - 0x10], xmm0
jne 0x454280
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0x800c
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4542fa
push 0
push 0x40
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x454302
push dword [ebp - 4]
call edi
mov edi, dword [ebp - 8]
jmp 0x454171
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x454324
push dword [ebp - 4]
call edi
mov edi, dword [ebp - 8]
jmp 0x454171
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
test eax, eax
jne 0x454349
call edi
mov edi, dword [ebp - 8]
jmp 0x454171
call edi
test eax, eax
jne 0x45435c
push dword [ebp - 4]
call edi
mov edi, dword [ebp - 8]
jmp 0x454171
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0x800c
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4542fa
push 0
push 0x40
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x454397
push dword [ebp - 4]
call edi
mov edi, dword [ebp - 8]
jmp 0x454171
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4543b9
push dword [ebp - 4]
call edi
mov edi, dword [ebp - 8]
jmp 0x454171
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
test eax, eax
jne 0x4543de
call edi
mov edi, dword [ebp - 8]
jmp 0x454171
call edi
push dword [ebp - 4]
test eax, eax
jne 0x4543f1
call edi
mov edi, dword [ebp - 8]
jmp 0x454171
call edi
push dword [ebp - 0xc]
mov edi, dword [ebp - 8]
push edi
push dword [ebp + 0x14]
call fcn.00589690
add esp, 0xc
mov dword [ebp + 8], 1
jmp 0x454178