Function at 0x4b75b0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d44de
mov eax, dword fs:[0]
push eax
mov eax, 0x4974
call fcn.0048af60
push esi
push edi
push ecx
lea edi, [ebp - 0x4980]
mov ecx, 0x125d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x51e710]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x20], 0
jmp 0x4b7611
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
call fcn.004af380
cmp dword [ebp - 0x20], eax
jae 0x4b7c63
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x47a8], 0
push 0x477c
push 0
lea ecx, [ebp - 0x47a4]
push ecx
call fcn.0048a180
add esp, 0xc
mov dword [ebp - 0x47b0], 0
mov dword [ebp - 0x47fc], 0
mov dword [ebp - 0x4804], 0
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.004b5450
mov eax, dword [eax]
mov dword [ebp - 0x4928], eax
mov esi, esp
lea ecx, [ebp - 0x47b8]
push ecx
push 0x4e9260
mov edx, dword [ebp - 0x4928]
push edx
mov eax, dword [ebp - 0x4928]
mov ecx, dword [eax]
mov edx, dword [ecx]
call edx
cmp esi, esp
call fcn.004cc645
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x100], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x100], 0
jge 0x4b7795
push 0x49
push ecx
mov ecx, esp
mov dword [ebp - 0x48e4], esp
push 0x4e8a14
call fcn.004add60
mov dword [ebp - 0x492c], eax
mov eax, dword [ebp - 0x492c]
mov dword [ebp - 0x4930], eax
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x48e8], esp
push str.QueryInterface
call fcn.004add60
mov dword [ebp - 0x4934], eax
mov ecx, dword [ebp - 0x4934]
mov dword [ebp - 0x4938], ecx
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x48ec], esp
push str.Failed_to_get_the_COPP_handle
call fcn.004add60
mov dword [ebp - 0x493c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4838]
call fcn.004ade60
mov dword [ebp - 0x4940], eax
mov dword [ebp - 4], 2
push ecx
mov edx, esp
mov dword [ebp - 0x48f0], esp
push edx
lea ecx, [ebp - 0x4838]
call fcn.004ae3b0
mov dword [ebp - 0x4944], eax
call fcn.004ae050
add esp, 4
mov dword [ebp - 0x48f4], 0x7d1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4838]
call fcn.004ab2c0
mov eax, dword [ebp - 0x48f4]
jmp 0x4b7c66
mov esi, esp
push 0x40
push 0x18
push 0
push 0
lea eax, [ebp - 0x4804]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.004cc645
test eax, eax
jne 0x4b78e3
mov esi, esp
push 0x48
push 0x18
push 0
push 0
lea ecx, [ebp - 0x4804]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.004cc645
test eax, eax
jne 0x4b78e3
mov esi, esp
push 0xf0000048
push 0x18
push 0
push 0
lea edx, [ebp - 0x4804]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.004cc645
test eax, eax
jne 0x4b78e3
push 0x55
push ecx
mov ecx, esp
mov dword [ebp - 0x48f8], esp
push 0x4e8d84
call fcn.004add60
mov dword [ebp - 0x4948], eax
mov eax, dword [ebp - 0x4948]
mov dword [ebp - 0x494c], eax
mov dword [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x48fc], esp
push str.CryptAcquireContext
call fcn.004add60
mov dword [ebp - 0x4950], eax
mov ecx, dword [ebp - 0x4950]
mov dword [ebp - 0x4954], ecx
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x4900], esp
push str.Failed_to_get_crypto_context
call fcn.004add60
mov dword [ebp - 0x4958], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4850]
call fcn.004ade60
mov dword [ebp - 0x495c], eax
mov dword [ebp - 4], 5
push ecx
mov edx, esp
mov dword [ebp - 0x4904], esp
push edx
lea ecx, [ebp - 0x4850]
call fcn.004ae3b0
mov dword [ebp - 0x4960], eax
call fcn.004ae050
add esp, 4
mov dword [ebp - 0x4908], 0x64
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4850]
call fcn.004ab2c0
mov eax, dword [ebp - 0x4908]
jmp 0x4b7c66
mov dword [ebp - 0x485c], 0
mov dword [ebp - 0x4864], 0x80
mov eax, dword [ebp - 0x4864]
shl eax, 0x10
mov dword [ebp - 0x4864], eax
mov ecx, dword [ebp - 0x4864]
or ecx, 1
mov dword [ebp - 0x4864], ecx
mov esi, esp
lea edx, [ebp - 0x485c]
push edx
mov eax, dword [ebp - 0x4864]
push eax
push 0x660e
mov ecx, dword [ebp - 0x4804]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
cmp esi, esp
call fcn.004cc645
mov dword [ebp - 0x486c], 0
mov dword [ebp - 0x4874], 0
mov esi, esp
lea edx, [ebp - 0x486c]
push edx
push 0
push 0
push 8
push 0
mov eax, dword [ebp - 0x485c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
cmp esi, esp
call fcn.004cc645
mov ecx, dword [ebp - 0x486c]
push ecx
call fcn.0047228e
add esp, 4
mov dword [ebp - 0x490c], eax
mov edx, dword [ebp - 0x490c]
mov dword [ebp - 0x4874], edx
mov esi, esp
lea eax, [ebp - 0x486c]
push eax
mov ecx, dword [ebp - 0x4874]
push ecx
push 0
push 8
push 0
mov edx, dword [ebp - 0x485c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
cmp esi, esp
call fcn.004cc645
mov eax, dword [ebp - 0x4874]
add eax, 8
mov dword [ebp - 0x4878], eax
mov ecx, dword [ebp - 0x4878]
cmp dword [ecx], 0x10
je 0x4b79fd
push ecx
mov ecx, esp
mov dword [ebp - 0x4910], esp
push str.Wrong_size__Should_be_16_bytes__128_bits_
call fcn.004be3e0
mov dword [ebp - 0x4964], eax
call fcn.004ae050
add esp, 4
mov edx, dword [ebp - 0x4874]
add edx, 0xc
mov dword [ebp - 0x480c], edx
mov eax, dword [ebp - 0x4874]
mov dword [ebp - 0x4914], eax
mov ecx, dword [ebp - 0x4914]
push ecx
call fcn.00472297
add esp, 4
lea edx, [ebp - 0x47f4]
push edx
lea eax, [ebp - 0x47e8]
push eax
lea ecx, [ebp - 0x47dc]
push ecx
lea edx, [ebp - 0x47d0]
push edx
mov eax, dword [ebp - 0x47b8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004b85f0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4b7b5c
lea ecx, [ebp - 0x4880]
call fcn.004ade30
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x1c]
push ecx
push str.Failed_to_validate_device_certificate_:__d
lea edx, [ebp - 0x4880]
push edx
call fcn.004ae100
add esp, 0xc
push 0x76
push ecx
mov ecx, esp
mov dword [ebp - 0x4918], esp
push 0x4e8ed8
call fcn.004add60
mov dword [ebp - 0x4968], eax
mov eax, dword [ebp - 0x4968]
mov dword [ebp - 0x496c], eax
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x491c], esp
push str.GetDriverNonceAndPublicKey
call fcn.004add60
mov dword [ebp - 0x4970], eax
mov ecx, dword [ebp - 0x4970]
mov dword [ebp - 0x4974], ecx
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x4920], esp
lea edx, [ebp - 0x4880]
push edx
call fcn.004add30
mov dword [ebp - 0x4978], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4898]
call fcn.004ade60
mov dword [ebp - 0x497c], eax
mov byte [ebp - 4], 9
push ecx
mov eax, esp
mov dword [ebp - 0x4924], esp
push eax
lea ecx, [ebp - 0x4898]
call fcn.004ae3b0
mov dword [ebp - 0x4980], eax
call fcn.004ae050
add esp, 4
mov dword [ebp - 0x1c], 0x7d2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4898]
call fcn.004ab2c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4880]
call fcn.004adf80
mov esi, esp
lea ecx, [ebp - 0x4814]
push ecx
push 4
mov edx, dword [ebp - 0x4804]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp esi, esp
call fcn.004cc645
mov esi, esp
lea eax, [ebp - 0x4820]
push eax
push 4
mov ecx, dword [ebp - 0x4804]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp esi, esp
call fcn.004cc645
push 0x3c
push 0
lea edx, [ebp - 0x48dc]
push edx
call fcn.0048a180
add esp, 0xc
mov eax, dword [ebp - 0x47b8]
mov dword [ebp - 0x48d8], eax
mov ecx, dword [ebp - 0x47d0]
mov dword [ebp - 0x48d4], ecx
mov edx, dword [ebp - 0x47cc]
mov dword [ebp - 0x48d0], edx
mov eax, dword [ebp - 0x47c8]
mov dword [ebp - 0x48cc], eax
mov ecx, dword [ebp - 0x47c4]
mov dword [ebp - 0x48c8], ecx
mov edx, dword [ebp - 0x47dc]
mov dword [ebp - 0x48c4], edx
mov eax, dword [ebp - 0x47e8]
mov dword [ebp - 0x48c0], eax
mov ecx, dword [ebp - 0x47f4]
mov dword [ebp - 0x48bc], ecx
mov edx, dword [ebp - 0x47fc]
mov dword [ebp - 0x48dc], edx
mov eax, dword [ebp - 0x4804]
mov dword [ebp - 0x48b4], eax
mov ecx, dword [ebp - 0x480c]
mov dword [ebp - 0x48b0], ecx
mov edx, dword [ebp - 0x4814]
mov dword [ebp - 0x48ac], edx
mov eax, dword [ebp - 0x4820]
mov dword [ebp - 0x48a8], eax
lea ecx, [ebp - 0x48dc]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xf4
call fcn.004bf660
jmp 0x4b7608
mov eax, dword [ebp - 0x1c]
push edx
mov ecx, ebp
push eax
lea edx, [0x4b7ca4]
call fcn.004cc5ed
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487e85
add esp, 0x4980
cmp ebp, esp
call fcn.004cc645
mov esp, ebp
pop ebp
ret 4