Function at 0x4ff8a0
Capabilities:
Encode data using xor
Encrypt data using aes
Encrypt data using aes mixcolumns step
Reference aes constants

Disassembly:
sub esp, 0x24
mov ecx, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, 0xffffff4c
add ecx, 2
sub esi, ebp
push edi
lea eax, [ebp + 0xb4]
mov dword [esp + 0x30], esi
mov dl, byte [ecx - 2]
add ecx, 4
mov byte [eax - 4], dl
mov dl, byte [ecx - 5]
mov byte [eax], dl
mov dl, byte [ecx - 4]
mov byte [eax + 4], dl
mov dl, byte [ecx - 3]
mov byte [eax + 8], dl
inc eax
lea edx, [esi + eax]
cmp edx, 4
jl 0x4ff8c3
lea esi, [ebp + 0xb0]
mov edi, 0xfffffffc
lea ecx, [ebp + 0xa0]
sub edi, esi
lea eax, [esi + 4]
mov edx, dword [ecx]
mov bl, byte [eax - 4]
shr edx, 0x18
xor bl, dl
add ecx, 4
mov byte [eax - 4], bl
mov edx, dword [ecx - 4]
mov bl, byte [eax]
shr edx, 0x10
xor bl, dl
mov byte [eax], bl
mov edx, dword [ecx - 4]
mov bl, byte [eax + 4]
shr edx, 8
xor bl, dl
mov byte [eax + 4], bl
mov dl, byte [ecx - 4]
mov bl, byte [eax + 8]
xor bl, dl
mov byte [eax + 8], bl
inc eax
lea edx, [edi + eax]
cmp edx, 4
jl 0x4ff8fc
add ebp, 0x90
mov dword [esp + 0x24], 9
mov dword [esp + 0x20], ebp
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x5e94c4]
mov byte [eax + esi - 1], dl
jl 0x4ff94e
mov cl, byte [esi + 6]
mov al, byte [esi + 7]
mov dl, byte [esi + 5]
mov byte [esi + 7], cl
mov cl, byte [esi + 4]
mov byte [esi + 4], al
mov al, byte [esi + 8]
mov byte [esi + 6], dl
mov dl, byte [esi + 0xa]
mov byte [esi + 0xa], al
mov al, byte [esi + 9]
mov byte [esi + 5], cl
mov cl, byte [esi + 0xb]
mov byte [esi + 8], dl
mov dl, byte [esi + 0xd]
mov byte [esi + 0xb], al
mov al, byte [esi + 0xc]
mov byte [esi + 0xc], dl
mov dl, byte [esi + 0xf]
mov byte [esi + 0xf], al
mov eax, 0xfffffffc
mov byte [esi + 9], cl
mov cl, byte [esi + 0xe]
sub eax, esi
mov byte [esi + 0xd], cl
mov byte [esi + 0xe], dl
lea edi, [esi + 4]
mov dword [esp + 0x2c], eax
mov cl, byte [edi]
mov al, byte [edi - 4]
mov dl, byte [edi + 4]
mov byte [esp + 0x18], cl
mov cl, byte [edi + 8]
mov byte [esp + 0x1c], al
test al, 0x80
mov byte [esp + 0x14], dl
mov byte [esp + 0x28], cl
je 0x4ff9de
shl al, 1
xor al, 0x1b
jmp 0x4ff9e0
shl al, 1
test al, 0x80
mov byte [esp + 0x13], al
je 0x4ff9ee
shl al, 1
xor al, 0x1b
jmp 0x4ff9f0
shl al, 1
test al, 0x80
mov byte [esp + 0x12], al
je 0x4ff9fe
shl al, 1
xor al, 0x1b
jmp 0x4ffa00
shl al, 1
mov ebp, dword [esp + 0x28]
mov byte [esp + 0x11], al
push ebp
call fcn.004ff740
mov edx, dword [esp + 0x18]
mov bl, al
push edx
call fcn.004ff7e0
xor bl, al
mov eax, dword [esp + 0x20]
push eax
call fcn.004ff780
mov dl, byte [esp + 0x1d]
mov cl, byte [esp + 0x1e]
xor bl, al
mov al, byte [esp + 0x1f]
xor bl, dl
push ebp
xor bl, cl
xor bl, al
mov byte [edi - 4], bl
call fcn.004ff7e0
mov ecx, dword [esp + 0x24]
mov bl, al
push ecx
call fcn.004ff780
mov edx, dword [esp + 0x2c]
xor bl, al
push edx
call fcn.004ff840
xor bl, al
mov eax, dword [esp + 0x34]
push eax
call fcn.004ff740
xor bl, al
push ebp
mov byte [edi], bl
call fcn.004ff780
mov ecx, dword [esp + 0x34]
mov bl, al
push ecx
call fcn.004ff840
mov edx, dword [esp + 0x3c]
xor bl, al
push edx
call fcn.004ff740
xor bl, al
mov eax, dword [esp + 0x44]
push eax
call fcn.004ff7e0
xor bl, al
push ebp
mov byte [edi + 4], bl
call fcn.004ff840
mov ecx, dword [esp + 0x44]
mov bl, al
push ecx
call fcn.004ff740
mov edx, dword [esp + 0x4c]
xor bl, al
push edx
call fcn.004ff7e0
xor bl, al
mov eax, dword [esp + 0x54]
push eax
call fcn.004ff780
mov ecx, dword [esp + 0x68]
xor bl, al
add esp, 0x3c
mov byte [edi + 8], bl
inc edi
add ecx, edi
cmp ecx, 4
jl 0x4ff9b9
mov ecx, dword [esp + 0x20]
mov edi, 0xfffffffc
lea eax, [esi + 4]
sub edi, esi
mov edx, dword [ecx]
mov bl, byte [eax - 4]
shr edx, 0x18
xor bl, dl
add ecx, 4
mov byte [eax - 4], bl
mov edx, dword [ecx - 4]
mov bl, byte [eax]
shr edx, 0x10
xor bl, dl
mov byte [eax], bl
mov edx, dword [ecx - 4]
mov bl, byte [eax + 4]
shr edx, 8
xor bl, dl
mov byte [eax + 4], bl
mov dl, byte [ecx - 4]
mov bl, byte [eax + 8]
xor bl, dl
mov byte [eax + 8], bl
inc eax
lea edx, [edi + eax]
cmp edx, 4
jl 0x4ffaea
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, 0x10
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jne 0x4ff94c
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x5e94c4]
mov byte [eax + esi - 1], dl
jl 0x4ffb44
mov cl, byte [esi + 6]
mov al, byte [esi + 7]
mov dl, byte [esi + 5]
mov byte [esi + 7], cl
mov cl, byte [esi + 4]
mov byte [esi + 4], al
mov al, byte [esi + 8]
mov byte [esi + 6], dl
mov dl, byte [esi + 0xa]
mov edi, dword [esp + 0x38]
mov byte [esi + 0xa], al
mov al, byte [esi + 9]
mov byte [esi + 5], cl
mov cl, byte [esi + 0xb]
mov byte [esi + 8], dl
mov dl, byte [esi + 0xd]
mov byte [esi + 0xb], al
mov al, byte [esi + 0xc]
mov byte [esi + 9], cl
mov cl, byte [esi + 0xe]
mov byte [esi + 0xc], dl
mov dl, byte [esi + 0xf]
mov ebp, 0xfffffffc
mov byte [esi + 0xd], cl
mov byte [esi + 0xf], al
mov byte [esi + 0xe], dl
lea eax, [esi + 4]
mov ecx, edi
sub ebp, esi
mov edx, dword [ecx]
mov bl, byte [eax - 4]
shr edx, 0x18
xor bl, dl
add ecx, 4
mov byte [eax - 4], bl
mov edx, dword [ecx - 4]
mov bl, byte [eax]
shr edx, 0x10
xor bl, dl
mov byte [eax], bl
mov edx, dword [ecx - 4]
mov bl, byte [eax + 4]
shr edx, 8
xor bl, dl
mov byte [eax + 4], bl
mov dl, byte [ecx - 4]
mov bl, byte [eax + 8]
xor bl, dl
mov byte [eax + 8], bl
inc eax
lea edx, [eax + ebp]
cmp edx, 4
jl 0x4ffbb1
lea esi, [edi + 0xd0]
lea ecx, [edi + 0xb4]
mov eax, esi
mov dl, byte [eax - 0x10]
mov bl, byte [ecx - 4]
xor dl, bl
mov byte [eax], dl
mov dl, byte [eax - 0xf]
mov bl, byte [ecx]
add eax, 4
xor dl, bl
mov byte [eax - 3], dl
mov dl, byte [eax - 0x12]
xor dl, byte [ecx + 4]
mov byte [eax - 2], dl
mov dl, byte [eax - 0x11]
mov bl, byte [ecx + 8]
xor dl, bl
inc ecx
mov byte [eax - 1], dl
mov edx, dword [esp + 0x30]
add edx, ecx
cmp edx, 4
jl 0x4ffbfd
xor eax, eax
mov ecx, dword [esp + 0x3c]
inc eax
cmp eax, 0x10
mov dl, byte [eax + ecx - 1]
mov byte [edi + eax + 0xbf], dl
jl 0x4ffc36
mov eax, dword [esp + 0x40]
mov dword [edi + 0xe0], 0
test eax, eax
je 0x4ffc88
xor ecx, ecx
mov eax, 0xf
mov cl, byte [edi + 0xdf]
cmp ecx, eax
jg 0x4ffc82
mov edx, eax
sub edx, ecx
dec eax
cmp eax, ecx
mov dl, byte [edx + edi + 0xd0]
mov byte [esi + eax + 1], dl
jge 0x4ffc6e
mov dword [edi + 0xe0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret