Function at 0x74a34040
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 0xc], 0x10
je 0x74a3407a
cmp dword [ebp + 0xc], 0x18
je 0x74a3407a
cmp dword [ebp + 0xc], 0x20
je 0x74a3407a
mov eax, 3
jmp 0x74a3482f
cmp dword [ebp + 0x10], 0
je 0x74a3409f
mov eax, dword [ebp + 0xc]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax + eax + 6]
cmp dword [ebp + 0x10], eax
je 0x74a3409f
mov eax, 4
jmp 0x74a3482f
mov eax, dword [ebp + 0xc]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax + eax + 6]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x1e0], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 1]
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 2]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 3]
and eax, 0xff
or ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 4]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 5]
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 6]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 7]
and eax, 0xff
or ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 8]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 9]
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xa]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xb]
and eax, 0xff
or ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [edx + 8], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xc]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xd]
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xe]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xf]
and eax, 0xff
or ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0xc], ecx
cmp dword [ebp + 0xc], 0x10
jne 0x74a3426d
mov dword [ebp - 0x14], 0x2c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
push eax
call fcn.74a34850
add esp, 4
mov ecx, dword [ebp - 0x2c]
xor eax, dword [ecx]
mov edx, dword [ebp - 8]
xor eax, dword [edx*4 + 0x74a3ce70]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
xor edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 8]
xor edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
xor edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xa
jne 0x74a3425d
jmp 0x74a34268
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x74a341ec
jmp 0x74a345d4
cmp dword [ebp + 0xc], 0x18
jne 0x74a343bc
mov dword [ebp - 0x14], 0x34
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x10]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x11]
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x13]
and eax, 0xff
or ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x14]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x15]
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x16]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x17]
and eax, 0xff
or ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp + 0x14]
sar eax, 2
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax*4 + 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.74a34850
add esp, 4
mov ecx, dword [ebp - 0x2c]
xor eax, dword [ecx]
mov edx, dword [ebp - 8]
xor eax, dword [edx*4 + 0x74a3ce70]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
xor edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 8]
xor edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
xor edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 8
jne 0x74a34385
jmp 0x74a343b7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0x10]
xor edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0x14]
xor edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x2c]
add eax, 0x18
mov dword [ebp - 0x2c], eax
jmp 0x74a3430a
jmp 0x74a345d4
cmp dword [ebp + 0xc], 0x20
jne 0x74a345ca
mov dword [ebp - 0x14], 0x3c
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x10]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x11]
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x12]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x13]
and eax, 0xff
or ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x14]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x15]
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x16]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x17]
and eax, 0xff
or ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x18]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x19]
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x1a]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x1b]
and eax, 0xff
or ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x1c]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x1d]
and eax, 0xff
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x1e]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x1f]
and eax, 0xff
or ecx, eax
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp + 0x14]
sar eax, 2
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax*4 + 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.74a34850
add esp, 4
mov ecx, dword [ebp - 0x2c]
xor eax, dword [ecx]
mov edx, dword [ebp - 8]
xor eax, dword [edx*4 + 0x74a3ce70]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
xor edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 8]
xor edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
xor edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 7
jne 0x74a34560
jmp 0x74a345c8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
ror eax, 8
push eax
call fcn.74a34850
add esp, 4
mov ecx, dword [ebp - 0x2c]
xor eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0x14]
xor edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0x18]
xor edx, dword [ecx + 0x34]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0x1c]
xor edx, dword [ecx + 0x38]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0x2c]
add eax, 0x20
mov dword [ebp - 0x2c], eax
jmp 0x74a344e5
jmp 0x74a345d4
mov eax, 1
jmp 0x74a3482f
mov eax, dword [ebp + 0x14]
add eax, 0xf0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + eax*4 - 0x10]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
sub eax, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
sub eax, 0xc
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], 1
jmp 0x74a3466e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x1e0]
jge 0x74a347bd
mov eax, dword [ebp - 0x38]
sub eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
shr eax, 0x18
movzx ecx, al
mov edx, dword [ebp - 0x20]
shr edx, 0x10
movzx eax, dl
mov ecx, dword [ecx*4 + 0x74a3be70]
xor ecx, dword [eax*4 + 0x74a3c270]
mov edx, dword [ebp - 0x20]
shr edx, 8
movzx eax, dl
xor ecx, dword [eax*4 + 0x74a3c670]
movzx edx, byte [ebp - 0x20]
xor ecx, dword [edx*4 + 0x74a3ca70]
mov eax, dword [ebp - 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
shr eax, 0x18
movzx ecx, al
mov edx, dword [ebp - 0x20]
shr edx, 0x10
movzx eax, dl
mov ecx, dword [ecx*4 + 0x74a3be70]
xor ecx, dword [eax*4 + 0x74a3c270]
mov edx, dword [ebp - 0x20]
shr edx, 8
movzx eax, dl
xor ecx, dword [eax*4 + 0x74a3c670]
movzx edx, byte [ebp - 0x20]
xor ecx, dword [edx*4 + 0x74a3ca70]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
shr eax, 0x18
movzx ecx, al
mov edx, dword [ebp - 0x20]
shr edx, 0x10
movzx eax, dl
mov ecx, dword [ecx*4 + 0x74a3be70]
xor ecx, dword [eax*4 + 0x74a3c270]
mov edx, dword [ebp - 0x20]
shr edx, 8
movzx eax, dl
xor ecx, dword [eax*4 + 0x74a3c670]
movzx edx, byte [ebp - 0x20]
xor ecx, dword [edx*4 + 0x74a3ca70]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
shr eax, 0x18
movzx ecx, al
mov edx, dword [ebp - 0x20]
shr edx, 0x10
movzx eax, dl
mov ecx, dword [ecx*4 + 0x74a3be70]
xor ecx, dword [eax*4 + 0x74a3c270]
mov edx, dword [ebp - 0x20]
shr edx, 8
movzx eax, dl
xor ecx, dword [eax*4 + 0x74a3c670]
movzx edx, byte [ebp - 0x20]
xor ecx, dword [edx*4 + 0x74a3ca70]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], ecx
jmp 0x74a34665
mov eax, dword [ebp - 0x38]
sub eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.74a35b09
mov esp, ebp
pop ebp
ret