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

Disassembly:
sub esp, 0xb8
mov eax, dword [0x100f9124]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xbc]
push ebp
push esi
mov esi, dword [esp + 0xd0]
mov ebp, ecx
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x18], eax
xor eax, eax
cmp esi, 0x40
push edi
mov edi, dword [esp + 0xd0]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jbe 0x100046c3
lea edx, [esp + 0x30]
push edx
push esi
push edi
mov ecx, ebp
call fcn.100045d0
test eax, eax
je 0x100048cd
mov esi, 0x10
lea edi, [esp + 0x30]
push 0x40
lea eax, [esp + 0x44]
push 0
push eax
call fcn.100956b0
push 0x40
lea ecx, [esp + 0x90]
push 0
push ecx
call fcn.100956b0
push esi
lea edx, [esp + 0x5c]
push edi
push edx
call fcn.10096770
push esi
lea eax, [esp + 0xa8]
push edi
push eax
call fcn.10096770
add esp, 0x30
xor eax, eax
jmp 0x10004710
xor byte [esp + eax + 0x40], 0x36
xor byte [esp + eax + 0x80], 0x5c
add eax, 1
cmp eax, 0x40
jl 0x10004710
mov edx, dword [ebp + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x8003
push edx
mov dword [esp + 0x24], 0
call ebx
test eax, eax
je 0x10004766
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
push 0x40
lea eax, [esp + 0x4c]
push eax
push ecx
call esi
test eax, eax
jne 0x1000477c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004775
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
jmp 0x100048cc
cmp dword [esp + 0x10], 0
jne 0x1000479b
mov eax, dword [ebp + 4]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x8003
push eax
call ebx
test eax, eax
je 0x100047b5
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push 0
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x100047c7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
jmp 0x100048cc
mov ecx, dword [esp + 0x10]
xor eax, eax
push eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
push 2
push ecx
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1000480f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
jmp 0x100048cc
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push eax
call edi
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x8003
push edx
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x10004853
mov ecx, dword [esp + 0x14]
push 0
push 0x40
lea eax, [esp + 0x8c]
push eax
push ecx
call esi
test eax, eax
jne 0x10004862
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000485e
push eax
call edi
xor eax, eax
jmp 0x100048cc
cmp dword [esp + 0x14], 0
jne 0x10004881
mov eax, dword [ebp + 4]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0x8003
push eax
call ebx
test eax, eax
je 0x10004895
mov edx, dword [esp + 0x14]
push 0
push 0x10
lea ecx, [esp + 0x2c]
push ecx
push edx
call esi
test eax, eax
jne 0x100048a0
mov eax, dword [esp + 0x14]
push eax
call edi
xor eax, eax
jmp 0x100048cc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push 2
push eax
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call edi
mov eax, esi
pop ebx
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1009536d
add esp, 0xb8
ret 0x14