Function at 0x45b400
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 0x4d93bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [ebp + 0xc]
cmp dword [eax], 1
jae 0x45b42d
mov eax, 1
jmp 0x45b8d2
lea ecx, [ebp - 0x24]
call fcn.004014a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004021c0
add esp, 8
push 0
push 1
push 0x4ded88
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x45b5d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x80090016
jne 0x45b533
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x45b52e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
push str.Error_during_encryption___1001_n_n
lea ecx, [ebp - 0x54]
call fcn.0045c060
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x50]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.0045b9f0
add esp, 8
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x7c]
push edx
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 - 0x24]
call fcn.004014e0
mov eax, dword [ebp - 0x5c]
jmp 0x45b8d2
jmp 0x45b5d5
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0x80090018
ja 0x45b55c
cmp dword [ebp - 0x80], 0x80090018
je 0x45b599
cmp dword [ebp - 0x80], 8
je 0x45b589
cmp dword [ebp - 0x80], 0x80090006
je 0x45b599
jmp 0x45b5a9
cmp dword [ebp - 0x80], 0x80090019
je 0x45b579
cmp dword [ebp - 0x80], 0x8009001a
jbe 0x45b5a9
cmp dword [ebp - 0x80], 0x8009001e
jbe 0x45b599
jmp 0x45b5a9
push 0
push 0x40
push str.eBook_Pro_utilizes_high_encryption._nYou_must_upgrade_your_Internet_Explorer_to_128_bit_encryption._nVisit_www.microsoft.com_for_more_information._nOr_contact_your_eBook_Vendor_for_a_40_bit_version_of_the_eBook.
call fcn.004baa47
jmp 0x45b5b7
push 0
push 0x10
push 0x4deee4
call fcn.004baa47
jmp 0x45b5b7
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_128_bit_encryption.
call fcn.004baa47
jmp 0x45b5b7
push 0
push 0x10
push str.Error_during_decryption___1002
call fcn.004baa47
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004014e0
mov eax, dword [ebp - 0x60]
jmp 0x45b8d2
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.0041fb90
add esp, 8
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x8003
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x45b62c
push 0
push 0x10
push str.Error_during_decryption___1003
call fcn.004baa47
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004014e0
mov eax, dword [ebp - 0x64]
jmp 0x45b8d2
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.0043d550
add esp, 8
push 0
lea ecx, [ebp - 0x24]
call fcn.0045c210
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.0045c1c0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x45b68c
push 0
push 0x10
push str.Error_during_decryption___1004
call fcn.004baa47
mov dword [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004014e0
mov eax, dword [ebp - 0x68]
jmp 0x45b8d2
lea edx, [ebp - 0x1c]
push edx
push 0x800000
mov eax, dword [ebp - 0x20]
push eax
push 0x6801
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x45b6d8
push 0
push 0x10
push str.Error_during_decryption___1005
call fcn.004baa47
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004014e0
mov eax, dword [ebp - 0x6c]
jmp 0x45b8d2
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x3c], 0x3e8
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00497fb5
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x45b737
push 0
push 0x10
push str.Decrypt___Out_of_memory_
call fcn.004baa47
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004014e0
mov eax, dword [ebp - 0x70]
jmp 0x45b8d2
mov dword [ebp - 0x40], 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x30], 0
jne 0x45b87e
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x48]
ja 0x45b792
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00497a80
add esp, 0xc
test eax, eax
jne 0x45b7ca
mov dword [ebp - 0x40], 0
push 0
push 0x10
push str.Error_during_decryption___1006
call fcn.004baa47
jmp 0x45b87e
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 0
mov eax, dword [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x45b811
mov dword [ebp - 0x40], 0
push 0
push 0x10
push str.Error_during_decryption___1007
call fcn.004baa47
jmp 0x45b87e
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [eax]
jbe 0x45b83b
mov dword [ebp - 0x40], 0
push 0
push 0x10
push str.Error_during_decryption___1008
call fcn.004baa47
jmp 0x45b87e
mov edx, dword [ebp - 0x18]
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 0x45b86a
mov dword [ebp - 0x40], 0
push 0
push 0x10
push str.Error_during_decryption___1009
call fcn.004baa47
jmp 0x45b87e
cmp dword [ebp - 0x30], 0
jne 0x45b879
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
jmp 0x45b773
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
cmp dword [ebp - 0x44], 0
je 0x45b898
mov edx, dword [ebp - 0x44]
push edx
call fcn.00497e9d
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x45b8a8
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x2c], 0
je 0x45b8ba
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x74], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004014e0
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret