Function at 0x45a1e0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x4dac91
mov eax, dword fs:[0]
push eax
mov eax, 0x264
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov eax, dword [0x5808f0]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [esp + 0x134], 7
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], ax
lea ecx, [esp + 0x138]
mov dword [esp + 0x278], ebx
call fcn.00424cc0
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], vtable.dwcl::AES.0
mov byte [esp + 0x278], 2
cmp dword [0x584064], ebx
je 0x45a284
mov ecx, 0x4e43d8
mov eax, 0x4e2e58
jmp 0x45a28e
mov ecx, 0x4e43a0
mov eax, str.Choose_encrypted_doc_file
lea edx, [esp + 0x11c]
push edx
push ecx
push eax
mov ecx, esi
call fcn.0042bd50
test al, al
jne 0x45a30b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.dwcl::AbstractCipher.0
cmp eax, ebx
je 0x45a2c0
push eax
call fcn.004690f0
add esp, 4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x45a2d5
push eax
call fcn.004690f0
add esp, 4
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x138]
mov byte [esp + 0x278], bl
call fcn.00424ce0
cmp dword [esp + 0x134], 8
jb 0x45a51d
mov eax, dword [esp + 0x120]
push eax
call fcn.004699ce
add esp, 4
jmp 0x45a51d
lea ecx, [esp + 0x10]
push ecx
call fcn.0041ae00
add esp, 4
cmp eax, 0x92d
jae 0x45a39e
push str.Wrong_pass_file_size_n
call fcn.0041a700
mov edx, dword [esp + 0x14]
push edx
call fcn.004690f0
mov eax, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x18], vtable.dwcl::AbstractCipher.0
cmp eax, ebx
je 0x45a353
push eax
call fcn.004690f0
add esp, 4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x45a368
push eax
call fcn.004690f0
add esp, 4
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x138]
mov byte [esp + 0x278], bl
call fcn.00424ce0
cmp dword [esp + 0x134], 8
jb 0x45a51d
mov eax, dword [esp + 0x120]
push eax
call fcn.004699ce
add esp, 4
jmp 0x45a51d
mov ecx, dword [esp + 0x10]
add ecx, 5
push 0x494
push ecx
mov ecx, esi
call fcn.00459b60
mov edx, dword [esp + 0x10]
push edx
mov byte [esp + 0x13], al
call fcn.004690f0
add esp, 4
cmp byte [esp + 0xf], bl
je 0x45a4f5
cmp dword [esp + 0x134], 8
mov eax, dword [esp + 0x120]
jae 0x45a3e5
lea eax, [esp + 0x120]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test al, al
jne 0x45a405
push str.File_is_not_crypted_by_DMALOCK4.0_n
call fcn.0041a700
add esp, 4
jmp 0x45a4f5
cmp dword [esp + 0x134], 8
mov eax, dword [esp + 0x120]
jae 0x45a41d
lea eax, [esp + 0x120]
push ebx
push eax
lea ecx, [esp + 0x140]
call fcn.00424d40
lea ecx, [esp + 0x138]
call fcn.00424740
test al, al
jne 0x45a44d
push str.Error_reading_file_for_test_n
call fcn.0041a700
add esp, 4
jmp 0x45a4f5
push ebx
push 0x100
lea ecx, [esp + 0x174]
push ecx
push ebx
push 0xb
lea ecx, [esp + 0x14c]
call fcn.00424750
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x170]
push eax
push ebx
push 1
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x45a498
push str.Error_decrypting_key_n
call fcn.0041a700
add esp, 4
jmp 0x45a4f5
push ebx
push 0x10
lea edx, [esp + 0x164]
push edx
push ebx
push 0x10b
lea ecx, [esp + 0x14c]
call fcn.00424750
mov eax, dword [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x174]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401b90
lea edx, [esp + 0x15c]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x20]
call fcn.00401c20
lea ecx, [esp + 0x15c]
push 0x10
push ecx
call fcn.0041a7a0
add esp, 8
mov byte [esi + 0x20], al
lea ecx, [esp + 0x18]
call fcn.00402020
lea ecx, [esp + 0x138]
mov byte [esp + 0x278], bl
call fcn.00424ce0
lea ecx, [esp + 0x11c]
call fcn.0041b5b0
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.004690b5
add esp, 0x270
ret