Function at 0x45af00
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d939d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
cmp dword [ebp + 0xc], 1
jae 0x45af2b
mov eax, 1
jmp 0x45b3e5
lea ecx, [ebp - 0x28]
call fcn.004014a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004021c0
add esp, 8
push 0
push 1
push 0x4dea34
push 0
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x45b0cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x80090016
jne 0x45b02a
push 8
push 1
push 0x4dea64
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x45b025
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
push 0x4dea94
lea ecx, [ebp - 0x54]
call fcn.0045c060
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.0045b9f0
add esp, 8
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0045bdd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004014e0
push 0
push 0x10
lea ecx, [ebp - 0x54]
call fcn.0046d080
push eax
call fcn.004baa47
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004014e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov eax, dword [ebp - 0x5c]
jmp 0x45b3e5
jmp 0x45b0cc
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x80], 0x80090018
ja 0x45b053
cmp dword [ebp - 0x80], 0x80090018
je 0x45b090
cmp dword [ebp - 0x80], 8
je 0x45b080
cmp dword [ebp - 0x80], 0x80090006
je 0x45b090
jmp 0x45b0a0
cmp dword [ebp - 0x80], 0x80090019
je 0x45b070
cmp dword [ebp - 0x80], 0x8009001a
jbe 0x45b0a0
cmp dword [ebp - 0x80], 0x8009001e
jbe 0x45b090
jmp 0x45b0a0
push 0
push 0x40
push str.eBook_Pro_utilizes_high_encryption._nYou_must_upgrade_your_Internet_Explorer_to_128_bit_encryption_to_view_this_eBook._nVisit_www.microsoft.com_for_more_information._nOr_contact_your_eBook_Vendor_for_a_40_bit_version_of_the_eBook.
call fcn.004baa47
jmp 0x45b0ae
push 0
push 0x10
push str.Encrypt___Out_of_Memory
call fcn.004baa47
jmp 0x45b0ae
push 0
push 0x30
push str.An_error_occurred_indicating_that_you_may_have_a_missing_or_corrupt_dll_on_your_system._neBook_Pro_requires_that_you_have_a_proper_install_of_Internet_Explorer_with_128_bit_encryption.
call fcn.004baa47
jmp 0x45b0ae
push 0
push 0x10
push str.Error_during_encryption___1002
call fcn.004baa47
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov eax, dword [ebp - 0x60]
jmp 0x45b3e5
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0041fb90
add esp, 8
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0x8003
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x45b123
push 0
push 0x10
push str.Error_during_encryption___1003
call fcn.004baa47
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov eax, dword [ebp - 0x64]
jmp 0x45b3e5
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0043d550
add esp, 8
push 0
lea ecx, [ebp - 0x28]
call fcn.0045c210
push eax
push 0
lea ecx, [ebp - 0x28]
call fcn.0045c1c0
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x45b183
push 0
push 0x10
push str.Error_during_encryption___1004
call fcn.004baa47
mov dword [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov eax, dword [ebp - 0x68]
jmp 0x45b3e5
lea ecx, [ebp - 0x20]
push ecx
push 0x800000
mov edx, dword [ebp - 0x24]
push edx
push 0x6801
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x45b1cf
push 0
push 0x10
push str.Error_during_encryption___1005
call fcn.004baa47
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov eax, dword [ebp - 0x6c]
jmp 0x45b3e5
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x40], 0x3e8
mov edx, 1
test edx, edx
je 0x45b1fb
mov eax, dword [ebp - 0x40]
add eax, 8
mov dword [ebp - 0x38], eax
jmp 0x45b201
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.00497fb5
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x45b242
push 0
push 0x10
push str.Encrypt___Out_of_memory
call fcn.004baa47
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov eax, dword [ebp - 0x70]
jmp 0x45b3e5
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x34], 0
jne 0x45b389
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x48]
ja 0x45b29b
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x34], 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00497a80
add esp, 0xc
test eax, eax
jne 0x45b2d3
mov dword [ebp - 0x18], 0
push 0
push 0x10
push str.Error_during_encryption___1006
call fcn.004baa47
jmp 0x45b389
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x44]
push eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x45b31e
mov dword [ebp - 0x18], 0
push 0
push 0x10
push str.Error_during_encryption___1007
call fcn.004baa47
jmp 0x45b389
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp + 0xc]
jbe 0x45b346
mov dword [ebp - 0x18], 0
push 0
push 0x10
push str.Error_during_encryption___1008
call fcn.004baa47
jmp 0x45b389
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00497a80
add esp, 0xc
test eax, eax
jne 0x45b375
mov dword [ebp - 0x18], 0
push 0
push 0x10
push str.Error_during_encryption___1009
call fcn.004baa47
jmp 0x45b389
cmp dword [ebp - 0x34], 0
jne 0x45b384
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
jmp 0x45b27c
cmp dword [ebp - 0x44], 0
je 0x45b39b
mov eax, dword [ebp - 0x44]
push eax
call fcn.00497e9d
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x45b3ab
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x24], 0
je 0x45b3bb
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x30], 0
je 0x45b3cd
push 0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret