Function at 0x5202d8
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0xf94
mov eax, 0x564933
call fcn.004cd1e4
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xf98], edi
mov dword [ebp - 0xf94], esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0xf90], eax
mov dword [ebp - 0xf80], edi
mov dword [ebp - 0xf78], edi
jb 0x520321
mov eax, dword [esi]
jmp 0x520323
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0xf7c], 0x20
lea eax, [ebp - 0x14]
push dword [ebp - 0xf7c]
xor ebx, ebx
mov dword [ebp - 0x34], 0x35812d8c
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0x20643f93
inc ebx
mov dword [ebp - 0x2c], 0xdb9038b
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xf98], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], 0xb727e4bc
mov dword [ebp - 0x24], 0x1dad9f69
mov dword [ebp - 0x20], 0xcecd9239
mov dword [ebp - 0x1c], 0xacd82940
mov dword [ebp - 0x18], 0xf0321aa3
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
call fcn.00414089
mov ecx, dword [ebp - 0xf90]
mov byte [ebp - 4], 2
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x5203aa
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.0051eb39
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
sub ecx, eax
push 0
mov dword [ebp - 0xf90], ecx
pop ecx
push 0xf0000040
push 0x18
cmove eax, ecx
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov dword [ebp - 0xf9c], eax
lea eax, [ebp - 0xf80]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x520418
push str.TrySetUserRegistry::GetHashedOLSToken:_CryptAcquireContext_failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x4dc]
call fcn.0051b8b6
push 0x5d6094
lea eax, [ebp - 0x4dc]
push eax
call fcn.004cea74
lea eax, [ebp - 0xf78]
push eax
push edi
push edi
push 0x800c
push dword [ebp - 0xf80]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x52045c
push str.TrySetUserRegistry::GetHashedOLSToken:_CryptCreateHash_failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x864]
call fcn.0051b74d
push 0x5d6094
lea eax, [ebp - 0x864]
jmp 0x520412
push edi
push dword [ebp - 0xf90]
push dword [ebp - 0xf9c]
push dword [ebp - 0xf78]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x5204a2
push str.TrySetUserRegistry::GetHashedOLSToken:_CryptHashData_failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0xbec]
call fcn.0051b6d4
push 0x5d6094
lea eax, [ebp - 0xbec]
jmp 0x520412
push edi
lea eax, [ebp - 0xf7c]
push eax
lea eax, [ebp - 0x54]
push eax
push 2
push dword [ebp - 0xf78]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x5204e9
push str.TrySetUserRegistry::GetHashedOLSToken:_CryptGetHashParam_failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0xf74]
call fcn.0051b7c6
push 0x5d6094
lea eax, [ebp - 0xf74]
jmp 0x520412
push dword [ebp - 0xf7c]
lea eax, [ebp - 0x34]
mov dword [ebp - 0xf8c], edi
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0xf88], edi
push eax
lea ecx, [ebp - 0xf8c]
mov dword [ebp - 0xf84], edi
call fcn.00414089
lea eax, [ebp - 0xf8c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00535b87
push eax
mov ecx, esi
call fcn.004190f4
push edi
push ebx
lea ecx, [ebp - 0x84]
call fcn.0040779d
push esi
call fcn.004c458b
lea ecx, [ebp - 0xf8c]
call fcn.0041193a
lea ecx, [ebp - 0x60]
call fcn.0041193a
jmp 0x52061e
cmp dword [ebp - 0xf78], 0
je 0x520633
push dword [ebp - 0xf78]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xf80], 0
je 0x520649
push edi
push dword [ebp - 0xf80]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
call fcn.004cd135
ret 8