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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
xor eax, eax
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
lea ebx, [ebp - 0x34]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], ebx
sub ecx, 6
xor edx, edx
cmp ecx, eax
mov ebx, dword [ebp + 8]
jle 0x46ba76
mov edi, dword [ebp - 0xc]
mov esi, dword [ebx]
add ebx, 4
inc eax
mov dword [edi], esi
add dword [ebp - 0xc], 4
cmp ecx, eax
jg 0x46ba63
xor eax, eax
mov ebx, dword [ebp - 8]
add ebx, ebx
mov esi, dword [ebp + 0xc]
lea ebx, [esi + ebx*8]
jmp 0x46baa7
mov esi, dword [ebp + eax*4 - 0x34]
inc eax
mov dword [ebx + edx*4 + 0x20], esi
inc edx
cmp ecx, eax
jle 0x46ba9a
cmp edx, 4
jl 0x46ba87
cmp edx, 4
jne 0x46baa7
inc dword [ebp - 8]
add ebx, 0x10
xor edx, edx
cmp ecx, eax
jle 0x46bab6
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 0x1c]
cmp esi, dword [ebp - 8]
jge 0x46ba91
mov eax, dword [ebp - 4]
lea eax, [eax*4 + 0x4781fc]
mov dword [ebp - 0x14], eax
lea eax, [ebp + ecx*4 - 0x37]
mov dword [ebp - 0x10], eax
jmp 0x46bbfd
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
mov al, byte [eax + 0x474ffb]
xor byte [ebp - 0x34], al
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 1]
mov al, byte [eax + 0x474ffb]
xor byte [ebp - 0x33], al
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 2]
mov al, byte [eax + 0x474ffb]
xor byte [ebp - 0x32], al
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax - 1]
mov al, byte [eax + 0x474ffb]
xor byte [ebp - 0x31], al
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
xor byte [ebp - 0x34], al
add dword [ebp - 0x14], 4
cmp ecx, 8
je 0x46bb3e
mov eax, 1
lea ebx, [ebp - 0x34]
cmp ecx, eax
jle 0x46bbbd
mov esi, dword [ebx]
inc eax
xor dword [ebx + 4], esi
add ebx, 4
cmp ecx, eax
jg 0x46bb2f
jmp 0x46bbbd
mov eax, 1
lea ebx, [ebp - 0x34]
jmp 0x46bb51
mov esi, dword [ebx]
inc eax
xor dword [ebx + 4], esi
add ebx, 4
mov esi, ecx
sar esi, 1
jns 0x46bb5a
adc esi, 0
cmp eax, esi
jl 0x46bb48
mov eax, ecx
sar eax, 1
jns 0x46bb67
adc eax, 0
xor ebx, ebx
mov bl, byte [ebp + eax*4 - 0x38]
mov bl, byte [ebx + 0x474ffb]
xor byte [ebp + eax*4 - 0x34], bl
xor ebx, ebx
mov bl, byte [ebp + eax*4 - 0x37]
mov bl, byte [ebx + 0x474ffb]
xor byte [ebp + eax*4 - 0x33], bl
xor ebx, ebx
mov bl, byte [ebp + eax*4 - 0x36]
mov bl, byte [ebx + 0x474ffb]
xor byte [ebp + eax*4 - 0x32], bl
xor ebx, ebx
mov bl, byte [ebp + eax*4 - 0x35]
mov bl, byte [ebx + 0x474ffb]
xor byte [ebp + eax*4 - 0x31], bl
inc eax
lea ebx, [ebp + eax*4 - 0x38]
cmp ecx, eax
jle 0x46bbbd
mov esi, dword [ebx]
inc eax
xor dword [ebx + 4], esi
add ebx, 4
cmp ecx, eax
jg 0x46bbb0
xor eax, eax
mov ebx, dword [ebp - 8]
add ebx, ebx
mov esi, dword [ebp + 0xc]
lea ebx, [esi + ebx*8]
jmp 0x46bbee
mov esi, dword [ebp + eax*4 - 0x34]
inc eax
mov dword [ebx + edx*4 + 0x20], esi
inc edx
cmp ecx, eax
jle 0x46bbe1
cmp edx, 4
jl 0x46bbce
cmp edx, 4
jne 0x46bbee
inc dword [ebp - 8]
add ebx, 0x10
xor edx, edx
cmp ecx, eax
jle 0x46bbfd
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 0x1c]
cmp esi, dword [ebp - 8]
jge 0x46bbd8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
cmp eax, dword [ebp - 8]
jge 0x46bacf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret