Function at 0x4f76c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov dword [edi + 0x3cc], 0x10
lea eax, [edi + 0x3f4]
mov dword [edi + 0x3c8], 0x10
movups xmm0, xmmword [0x7f6f88]
movups xmmword [edi + 0x3d4], xmm0
push dword [edi + 0x3cc]
push 0x7f6f88
push eax
call fcn.0070d1d0
mov eax, dword [edi + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x4f772f
cmp eax, 0x18
je 0x4f7721
mov eax, 0xe
jmp 0x4f774e
xor eax, eax
cmp dword [edi + 0x3cc], 0x20
sete al
jmp 0x4f7747
mov ecx, dword [edi + 0x3cc]
cmp ecx, 0x10
jne 0x4f773f
lea eax, [ecx - 6]
jmp 0x4f774e
xor eax, eax
cmp ecx, 0x18
setne al
lea eax, [eax*2 + 0xc]
mov dword [edi + 0x3d0], eax
xor esi, esi
mov eax, dword [edi + 0x3cc]
cdq
and edx, 3
lea ebx, [edx + eax]
mov eax, dword [edi + 0x3d0]
sar ebx, 2
mov dword [ebp - 0x10], ebx
test eax, eax
js 0x4f7793
lea edx, [edi + 8]
test ebx, ebx
jle 0x4f7785
mov ecx, ebx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x3d0]
inc esi
add edx, 0x20
cmp esi, eax
jle 0x4f7776
xor edx, edx
test eax, eax
js 0x4f77bd
lea esi, [edi + 0x1e8]
nop
test ebx, ebx
jle 0x4f77af
mov ecx, ebx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x3d0]
inc edx
add esi, 0x20
cmp edx, eax
jle 0x4f77a0
lea ecx, [eax + 1]
mov esi, str.thisis32bitlongp
mov eax, dword [edi + 0x3c8]
cdq
and edx, 3
imul ecx, ebx
add eax, edx
lea edx, [edi + 0x414]
sar eax, 2
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], edx
test eax, eax
jle 0x4f7835
mov edi, eax
mov ebx, edx
movzx eax, byte [esi]
lea esi, [esi + 4]
shl eax, 0x18
lea ebx, [ebx + 4]
mov dword [ebx - 4], eax
movzx edx, byte [esi - 3]
shl edx, 0x10
or edx, eax
mov dword [ebx - 4], edx
movzx ecx, byte [esi - 2]
shl ecx, 8
or ecx, edx
mov dword [ebx - 4], ecx
movzx eax, byte [esi - 1]
or eax, ecx
mov dword [ebx - 4], eax
sub edi, 1
jne 0x4f77f1
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 8], esi
test eax, eax
jle 0x4f7888
mov dword [ebp - 0x14], edx
cmp esi, ecx
jge 0x4f7a1c
mov eax, esi
mov ecx, dword [ebp - 0x14]
cdq
idiv ebx
mov ecx, dword [ecx]
lea esi, [edx + eax*8]
mov dword [edi + esi*4 + 8], ecx
mov ecx, dword [edi + 0x3d0]
mov esi, dword [ebp - 8]
sub ecx, eax
inc esi
mov dword [ebp - 8], esi
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
add edx, 4
mov dword [edi + ecx*4 + 0x1e8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
cmp esi, eax
jl 0x4f7841
cmp esi, dword [ebp - 4]
jge 0x4f7a1c
add eax, 0x104
lea ecx, [edi + eax*4]
mov eax, 0x7fbb48
mov dword [ebp - 0x20], ecx
mov ebx, dword [ecx]
movzx ecx, byte [eax]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, ebx
sar eax, 0x10
movzx eax, al
movsx edx, byte [eax + 0x7fdbc8]
mov eax, ebx
sar eax, 8
xor edx, ecx
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x7fdbc8]
xor edx, eax
movzx eax, bl
shl edx, 8
sar ebx, 0x18
movzx eax, byte [eax + 0x7fdbc8]
xor edx, eax
movzx eax, bl
mov ebx, dword [ebp - 0xc]
shl edx, 8
movzx eax, byte [eax + 0x7fdbc8]
xor edx, eax
lea eax, [edi + 0x414]
xor dword [eax], edx
cmp ebx, 8
je 0x4f7925
cmp ebx, 1
jle 0x4f79b4
lea ecx, [edi + 0x418]
lea edx, [ebx - 1]
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x4f7912
jmp 0x4f79ae
lea eax, [edi + 0x418]
mov edx, 3
mov ecx, dword [eax - 4]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x4f7930
mov edx, dword [edi + 0x420]
mov eax, edx
sar eax, 0x18
movzx eax, al
movsx ecx, byte [eax + 0x7fdbc8]
mov eax, edx
sar eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x7fdbc8]
xor ecx, eax
mov eax, edx
sar eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x7fdbc8]
xor ecx, eax
movzx eax, dl
shl ecx, 8
mov edx, 3
movzx eax, byte [eax + 0x7fdbc8]
xor ecx, eax
xor dword [edi + 0x424], ecx
lea ecx, [edi + 0x428]
nop dword [eax + eax]
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x4f79a0
lea eax, [edi + 0x414]
test ebx, ebx
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp - 0x10]
jle 0x4f7a0d
mov ecx, eax
mov dword [ebp - 0x14], eax
cmp esi, dword [ebp - 4]
jge 0x4f7a1c
mov eax, esi
mov ecx, dword [ecx]
cdq
idiv ebx
lea esi, [edx + eax*8]
mov dword [edi + esi*4 + 8], ecx
mov ecx, dword [edi + 0x3d0]
mov esi, dword [ebp - 8]
sub ecx, eax
mov eax, dword [ebp - 0x14]
inc esi
mov dword [ebp - 8], esi
lea ecx, [edx + ecx*8]
mov eax, dword [eax]
mov dword [edi + ecx*4 + 0x1e8], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
inc eax
add ecx, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [ebp - 0xc]
jl 0x4f79c7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
cmp esi, dword [ebp - 4]
jl 0x4f78a1
mov eax, 1
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x3d0], eax
jle 0x4f7ab2
lea ecx, [edi + 0x208]
mov dword [ebp - 0x14], ecx
nop dword [eax]
test ebx, ebx
jle 0x4f7a93
mov esi, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x7fc3c8]
xor ecx, dword [eax*4 + 0x7fc7c8]
mov eax, edx
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7fbbc8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x7fbfc8]
mov dword [esi - 4], ecx
sub ebx, 1
jne 0x4f7a46
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
inc eax
add ecx, 0x20
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [edi + 0x3d0]
jl 0x4f7a40
mov byte [edi + 4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [edi + 4], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10