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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
mov esi, eax
push edx
sar esi, 2
push ebx
mov dword [ebp - 8], ebx
lea edi, [esi + 6]
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 8]
mov edx, edi
shl edx, 4
lea ecx, [edx + ebx + 0x10]
shl edi, 5
mov dword [ebp - 4], ecx
and esi, 2
mov dword [ebx + 0x1d4], edi
mov edi, dword [ebp - 4]
add eax, ebx
add esp, 0xc
add esi, 3
cmp eax, edi
mov dword [ebx + 0x1d0], edx
mov cl, 1
jae 0x104e0b6
lea esp, [esp]
movzx edx, byte [eax - 3]
movzx edx, byte [edx + 0x100d800]
xor dl, cl
mov byte [eax], dl
movzx edx, byte [eax - 2]
movzx edx, byte [edx + 0x100d800]
mov byte [eax + 1], dl
movzx edx, byte [eax - 1]
movzx edx, byte [edx + 0x100d800]
mov byte [eax + 2], dl
movzx edx, byte [eax - 4]
movzx edx, byte [edx + 0x100d800]
mov byte [eax + 3], dl
mov edx, eax
sub edx, dword [ebp + 8]
add eax, 4
mov edx, dword [edx]
xor dword [eax - 4], edx
mov dl, cl
and dl, 0x80
neg dl
sbb dl, dl
add cl, cl
and edx, 0x1b
xor cl, dl
test esi, esi
jle 0x104e049
mov edx, 4
sub edx, dword [ebp + 8]
mov edi, esi
mov ebx, dword [edx + eax - 4]
xor ebx, dword [eax - 4]
add eax, 4
sub edi, 1
mov dword [eax - 4], ebx
jne 0x104e034
mov edi, dword [ebp - 4]
cmp dword [ebp + 8], 0x20
jne 0x104e0ab
movzx edx, byte [eax - 4]
movzx edx, byte [edx + 0x100d800]
mov byte [eax], dl
movzx edx, byte [eax - 3]
movzx edx, byte [edx + 0x100d800]
mov byte [eax + 1], dl
movzx edx, byte [eax - 2]
movzx edx, byte [edx + 0x100d800]
mov byte [eax + 2], dl
movzx edx, byte [eax - 1]
movzx edx, byte [edx + 0x100d800]
mov byte [eax + 3], dl
mov edx, dword [eax - 0x20]
xor dword [eax], edx
mov edx, dword [eax - 0x1c]
xor edx, dword [eax]
add eax, 4
mov dword [eax], edx
mov edi, dword [eax - 0x1c]
xor edi, edx
mov dword [eax + 4], edi
mov edx, dword [eax - 0x18]
xor edx, edi
mov edi, dword [ebp - 4]
mov dword [eax + 8], edx
add eax, 0xc
cmp eax, edi
jb 0x104dfd0
mov ebx, dword [ebp - 8]
lea edx, [ebx + 0x20]
cmp edi, edx
mov ecx, edi
mov eax, edi
jbe 0x104e19c
jmp 0x104e0d0
movzx esi, byte [eax - 0x1d]
mov esi, dword [esi*4 + 0x1010800]
movzx edi, byte [eax - 0x1e]
xor esi, dword [edi*4 + 0x1010400]
movzx edi, byte [eax - 0x1f]
xor esi, dword [edi*4 + 0x1010000]
movzx edi, byte [eax - 0x20]
xor esi, dword [edi*4 + 0x100fc00]
sub eax, 0x20
mov dword [ecx], esi
movzx esi, byte [eax + 7]
mov esi, dword [esi*4 + 0x1010800]
movzx edi, byte [eax + 6]
xor esi, dword [edi*4 + 0x1010400]
movzx edi, byte [eax + 5]
xor esi, dword [edi*4 + 0x1010000]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x100fc00]
add eax, 0x10
mov dword [ecx + 4], esi
movzx esi, byte [eax - 5]
mov esi, dword [esi*4 + 0x1010800]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x1010400]
movzx edi, byte [eax - 7]
xor esi, dword [edi*4 + 0x1010000]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x100fc00]
add ecx, 0x10
mov dword [ecx - 8], esi
movzx esi, byte [eax - 1]
movzx edi, byte [eax - 2]
mov esi, dword [esi*4 + 0x1010800]
xor esi, dword [edi*4 + 0x1010400]
movzx edi, byte [eax - 3]
xor esi, dword [edi*4 + 0x1010000]
movzx edi, byte [eax - 4]
xor esi, dword [edi*4 + 0x100fc00]
cmp eax, edx
mov dword [ecx - 4], esi
ja 0x104e0d0
mov eax, dword [ebx]
mov dword [ecx], eax
mov edx, dword [ebx + 4]
mov dword [ecx + 4], edx
mov eax, dword [ebx + 8]
pop edi
mov dword [ecx + 8], eax
mov edx, dword [ebx + 0xc]
pop esi
mov dword [ecx + 0xc], edx
pop ebx
mov esp, ebp
pop ebp
ret 4