Function at 0x44dcd0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493dd0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x11c
push ebx
push esi
push edi
mov eax, dword [0x4aeb00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x108]
cmp dword [eax + 8], 0
jne 0x44dd4b
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xac]
call fcn.0044eb50
push 0x4a7c84
lea ecx, [ebp - 0xac]
push ecx
call fcn.0046021e
cmp dword [ebp + 8], 0
jne 0x44dd7d
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xb8]
call fcn.0044eb50
push 0x4a7c84
lea edx, [ebp - 0xb8]
push edx
call fcn.0046021e
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x10
div ecx
test edx, edx
je 0x44ddb9
push 0x80090005
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Data_size_is_not_a_multple_of_block_size
lea ecx, [ebp - 0xc4]
call fcn.0044eb50
push 0x4a7c84
lea edx, [ebp - 0xc4]
push edx
call fcn.0046021e
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x108]
call fcn.0044d990
mov byte [ebp - 0x109], al
movzx edx, byte [ebp - 0x109]
test edx, edx
je 0x44de1b
mov eax, dword [ebp - 0x18]
sub eax, 0x10
cmp dword [ebp + 0xc], eax
ja 0x44de1b
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd0]
call fcn.0044eb50
push 0x4a7c84
lea ecx, [ebp - 0xd0]
push ecx
call fcn.0046021e
mov edx, dword [ebp - 0x108]
movzx eax, byte [edx + 0x10]
test eax, eax
jne 0x44de55
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xdc]
call fcn.0044eb50
push 0x4a7c84
lea ecx, [ebp - 0xdc]
push ecx
call fcn.0046021e
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 1
push 0
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x44dfbd
push 1
push 2
lea ecx, [ebp - 0xa0]
call fcn.0044f150
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
lea ecx, [ebp - 0xa0]
push ecx
call fcn.00451d10
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044e5d0
add esp, 4
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0xa0]
push eax
call fcn.00451d10
add esp, 8
push 0x4992d0
lea ecx, [ebp - 0xa0]
push ecx
call fcn.00451d10
add esp, 8
mov dword [ebp - 0x118], eax
push 0x44eca0
mov ecx, dword [ebp - 0x118]
call fcn.0044ed30
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x11c]
call fcn.0044ed70
mov dword [ebp - 0x120], eax
push 0x4992cc
mov edx, dword [ebp - 0x120]
push edx
call fcn.00451d10
add esp, 8
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0044f2a0
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x128], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x128]
call fcn.0042e8f0
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0044eb50
push 0x4a7c84
lea ecx, [ebp - 0xe8]
push ecx
call fcn.0046021e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x104]
call fcn.0042e8d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.0044ed00
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
jmp 0x44dff2
mov dword [ebp - 4], 0xffffffff
xor eax, eax
cmp dword [ebp - 0x14], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10