Function at 0x4b7da0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
or ebx, 0xffffffff
mov dword [ebp - 0xc], 0
mov edi, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
xor esi, esi
lea eax, [ebp - 0x10]
push eax
call fcn.00597468
add esp, 4
xor ecx, ecx
cmp esi, 0x10
jae 0x4b7deb
mov al, byte [ebp + ecx - 0x10]
inc ecx
mov byte [esi + edi], al
inc esi
cmp ecx, 4
jb 0x4b7dd3
cmp esi, 0x10
jb 0x4b7dc5
push 0xf0000000
push 0x12
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b7e44
call esi
cmp eax, 0x80090016
jne 0x4b7e44
push 8
push 0x12
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4b7e44
call esi
push eax
push str.Unable_to_CryptAcquireContext__X__will_use_fallback.
push 4
call fcn.004a8a80
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 5
push 0x6609
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x4b7f76
lea eax, [ebp - 4]
push eax
push 0
push 0
push 8
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x4b7e94
call esi
push eax
push str.Unable_to_CryptExportKey__u__will_use_fallback
push 4
call fcn.004a8a80
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call fcn.00594461
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4b7ebe
push str.Unable_to_allocate_memory_while_generating_key.
push 4
call fcn.004a8a80
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 8
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x4b7eea
call esi
push eax
push str.Unable_to_CryptExportKey__u__will_use_fallback
push 4
call fcn.004a8a80
add esp, 0xc
jmp 0x4b7f56
mov eax, dword [ebp - 4]
mov edx, 0xc
add eax, 0xfffffff4
mov dword [ebp - 0x14], eax
cmp eax, edx
jle 0x4b7f14
mov ebx, dword [ebp - 0x10]
sub ebx, edi
cmp edx, 0x10
jge 0x4b7f14
lea ecx, [edx + edi]
inc edx
mov al, byte [ebx + ecx]
mov byte [ecx], al
cmp edx, dword [ebp - 0x14]
jl 0x4b7f01
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x4b7f33
call esi
push eax
push str.Unable_to_CryptDestroyKey__u__will_use_fallback.
push 4
call fcn.004a8a80
add esp, 0xc
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x4b7f54
call esi
push eax
push str.Unable_to_CryptReleaseContext__u__will_use_fallback.
push 4
call fcn.004a8a80
add esp, 0xc
xor ebx, ebx
push dword [ebp - 4]
mov esi, dword [ebp - 0x10]
push 0
push esi
call fcn.00581fe0
push esi
call fcn.00593b50
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call esi
push eax
push str.Unable_to_CryptGenKey__u__will_use_fallback
push 4
call fcn.004a8a80
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret