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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
push esi
push edi
mov edx, dword [ebx + 0x1c]
sub edx, 6
test edx, edx
jle 0x498f33
mov esi, dword [ebp + 8]
mov ecx, edx
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
push 4
test edx, edx
mov dword [ebp + 8], edi
pop esi
jle 0x498f85
push 8
pop ecx
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x1c]
jg 0x498f85
cmp edi, edx
jge 0x498f73
lea eax, [ebp + edi*4 - 0x38]
cmp dword [ebp + 0xc], esi
jge 0x498f76
mov esi, dword [ebp + 0xc]
mov edi, dword [eax]
add esi, ecx
inc dword [ebp + 8]
push 4
mov dword [ebx + esi*4], edi
mov edi, dword [ebp + 8]
pop esi
add eax, esi
inc dword [ebp + 0xc]
cmp edi, edx
jl 0x498f52
cmp dword [ebp + 0xc], esi
jne 0x498f81
inc dword [ebp - 4]
add ecx, esi
and dword [ebp + 0xc], 0
cmp edi, edx
jl 0x498f42
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x1c]
jg 0x4990d7
mov eax, edx
mov dword [ebp - 8], 0x4b2d28
shl eax, 2
lea ecx, [eax + ebp - 0x3b]
mov dword [ebp - 0xc], ecx
lea ecx, [eax + ebp - 0x3a]
mov dword [ebp - 0x10], ecx
lea ecx, [eax + ebp - 0x39]
lea eax, [eax + ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
mov al, byte [ebp - 0x38]
xor al, byte [ecx + 0x4afb28]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 0x38], al
movzx ecx, byte [ecx]
mov cl, byte [ecx + 0x4afb28]
xor byte [ebp - 0x37], cl
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ecx]
mov cl, byte [ecx + 0x4afb28]
xor byte [ebp - 0x36], cl
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx]
mov cl, byte [ecx + 0x4afb28]
xor byte [ebp - 0x35], cl
mov ecx, dword [ebp - 8]
add dword [ebp - 8], esi
xor al, byte [ecx]
cmp edx, 8
mov byte [ebp - 0x38], al
je 0x49901f
cmp edx, 1
jle 0x499073
lea eax, [ebp - 0x34]
lea ecx, [edx - 1]
mov edi, dword [eax - 4]
xor dword [eax], edi
add eax, esi
dec ecx
jne 0x499013
jmp 0x499073
push 3
lea eax, [ebp - 0x34]
pop ecx
mov edi, dword [eax - 4]
xor dword [eax], edi
add eax, esi
dec ecx
jne 0x499025
movzx eax, byte [ebp - 0x2c]
push 3
mov al, byte [eax + 0x4afb28]
pop ecx
xor byte [ebp - 0x28], al
movzx eax, byte [ebp - 0x2b]
mov al, byte [eax + 0x4afb28]
xor byte [ebp - 0x27], al
movzx eax, byte [ebp - 0x2a]
mov al, byte [eax + 0x4afb28]
xor byte [ebp - 0x26], al
movzx eax, byte [ebp - 0x29]
mov al, byte [eax + 0x4afb28]
xor byte [ebp - 0x25], al
lea eax, [ebp - 0x24]
mov edi, dword [eax - 4]
xor dword [eax], edi
add eax, esi
dec ecx
jne 0x499069
and dword [ebp + 8], 0
test edx, edx
jle 0x4990cb
mov eax, dword [ebp - 4]
lea ecx, [eax*4 + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x1c]
jg 0x4990cb
cmp dword [ebp + 8], edx
jge 0x4990b8
mov eax, dword [ebp + 8]
lea eax, [ebp + eax*4 - 0x38]
mov edi, dword [ebp + 0xc]
cmp edi, esi
jge 0x4990b8
inc dword [ebp + 8]
lea esi, [edi + ecx]
mov edi, dword [eax]
push 4
mov dword [ebx + esi*4], edi
pop esi
add eax, esi
inc dword [ebp + 0xc]
cmp dword [ebp + 8], edx
jl 0x499099
cmp dword [ebp + 0xc], esi
jne 0x4990c6
inc dword [ebp - 4]
add ecx, esi
and dword [ebp + 0xc], 0
cmp dword [ebp + 8], edx
jl 0x499085
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x1c]
jle 0x498fb9
pop edi
pop esi
pop ebx
leave
ret