Function at 0x4cd9b0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x734048
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x819540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x110], ecx
mov eax, dword [ebp - 0x110]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x4cda44
mov edx, dword [str.FileCrypt_ERROR:_Encryption_Decryption_Object_not_Initialized_]
push edx
lea ecx, [ebp - 0x78]
call fcn.00419e90
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004c23d0
push 0x7eb13c
lea edx, [ebp - 0x5c]
push edx
call fcn.005b3dd1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.0041a030
mov eax, dword [ebp - 0x110]
cmp dword [eax + 8], 0x10
jne 0x4cda68
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x110]
call fcn.004ccf20
jmp 0x4cde0c
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 8]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jne 0x4cda8f
mov dword [ebp - 0x11c], 0
jmp 0x4cdaa1
xor ecx, ecx
cmp dword [ebp - 0x10], 6
setne cl
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [eax + 0x765cc4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1c]
shl edx, 5
mov eax, dword [edx + 0x765ccc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 5
mov edx, dword [ecx + 0x765cd4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x110]
add eax, 0x45c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
jmp 0x4cdaf7
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x10]
jge 0x4cdb99
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x18
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 0x10
mov eax, dword [ebp - 0x20]
or edx, dword [eax]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 8
mov edx, dword [ebp - 0x20]
or ecx, dword [edx]
mov eax, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x7c]
or ecx, dword [edx]
mov eax, dword [ebp - 0x7c]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x110]
mov eax, dword [eax]
xor eax, dword [edx + ecx*4 + 0x1f8]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx], eax
jmp 0x4cdaee
mov dword [ebp - 0x34], 1
jmp 0x4cdbab
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax + 0x3d8]
jge 0x4cdccc
mov dword [ebp - 0x18], 0
jmp 0x4cdbd2
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jge 0x4cdc9e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x110]
mov ecx, dword [edx + ecx*4 + 0x45c]
sar ecx, 0x18
and ecx, 0xff
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x10]
mov eax, dword [ebp - 0x110]
mov edx, dword [eax + edx*4 + 0x45c]
sar edx, 0x10
and edx, 0xff
mov ecx, dword [ecx*4 + 0x763c98]
xor ecx, dword [edx*4 + 0x764098]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x10]
mov eax, dword [ebp - 0x110]
mov edx, dword [eax + edx*4 + 0x45c]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x764498]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x10]
mov eax, dword [ebp - 0x110]
mov edx, dword [eax + edx*4 + 0x45c]
and edx, 0xff
xor ecx, dword [edx*4 + 0x764898]
mov eax, dword [ebp - 0x34]
shl eax, 5
mov edx, dword [ebp - 0x110]
lea eax, [edx + eax + 0x1f8]
mov edx, dword [ebp - 0x18]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x110]
mov dword [edx + eax*4 + 0x43c], ecx
jmp 0x4cdbc9
mov eax, dword [ebp - 0x10]
shl eax, 2
push eax
mov ecx, dword [ebp - 0x110]
add ecx, 0x43c
push ecx
mov edx, dword [ebp - 0x110]
add edx, 0x45c
push edx
call fcn.005b2260
add esp, 0xc
jmp 0x4cdba2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 0
jmp 0x4cdce5
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x10]
jge 0x4cde0c
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0x3d8]
shl eax, 5
mov ecx, dword [ebp - 0x110]
lea edx, [ecx + eax + 0x1f8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + edx*4 + 0x45c]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x762b98]
mov eax, dword [ebp - 0x2c]
sar eax, 0x18
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x30]
mov byte [ecx], dl
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x10]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + edx*4 + 0x45c]
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + 0x762b98]
mov eax, dword [ebp - 0x2c]
sar eax, 0x10
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x30]
mov byte [ecx], dl
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x10]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + edx*4 + 0x45c]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + 0x762b98]
mov eax, dword [ebp - 0x2c]
sar eax, 8
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x30]
mov byte [ecx], dl
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x10]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + edx*4 + 0x45c]
and ecx, 0xff
movsx edx, byte [ecx + 0x762b98]
xor edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x30]
mov byte [eax], dl
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
jmp 0x4cdcdc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8