Function at 0x4bf3c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x74], 0xb7c17c51
mov dword [ebp - 0x70], 0x940a2227
mov dword [ebp - 0x6c], 0xe8ab13fe
mov dword [ebp - 0x68], 0xe06e9afa
mov dword [ebp - 0x64], 0xcc4ab16d
mov dword [ebp - 0x60], 0x20c8219e
mov dword [ebp - 0x5c], 0xd5b128ff
mov dword [ebp - 0x58], 0xb0e25def
mov dword [ebp - 0x54], 0x1d3792db
mov dword [ebp - 0x50], 0x70e92621
mov dword [ebp - 0x4c], 0x75972403
mov dword [ebp - 0x48], 0xec9e804
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x88], esi
cmp ebx, 0x80
je 0x4bf462
cmp ebx, 0xc0
je 0x4bf462
cmp ebx, 0x100
je 0x4bf462
pop esi
mov eax, 0xffffffa4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
movzx edx, byte [eax + 3]
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 6]
mov dword [ebp - 0x44], edx
movzx edx, byte [eax + 7]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0xa]
mov dword [ebp - 0x40], edx
movzx edx, byte [eax + 0xb]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 9]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 8]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0xe]
mov dword [ebp - 0x3c], edx
movzx edx, byte [eax + 0xf]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0xd]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0xc]
shl edx, 8
or edx, ecx
mov dword [ebp - 0x38], edx
cmp ebx, 0xc0
jb 0x4bf53f
movzx edx, byte [eax + 0x13]
movzx ecx, byte [eax + 0x12]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x11]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x10]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x16]
mov dword [ebp - 0x34], edx
movzx edx, byte [eax + 0x17]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x15]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x14]
shl edx, 8
or edx, ecx
mov dword [ebp - 0x30], edx
cmp ebx, 0x100
jne 0x4bf58b
movzx edx, byte [eax + 0x1b]
movzx ecx, byte [eax + 0x1a]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x19]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x18]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x1e]
mov dword [ebp - 0x2c], edx
movzx edx, byte [eax + 0x1f]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x1d]
movzx eax, byte [eax + 0x1c]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov dword [ebp - 0x28], edx
add ebx, 0xffffff80
lea ecx, [ebp - 0x74]
shr ebx, 6
push edi
lea eax, [ebx + 6]
add al, al
mov byte [esi], al
lea eax, [ebp - 0x34]
push eax
mov eax, ebx
shl eax, 4
add eax, ecx
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004be2b0
cmp ebx, 2
lea eax, [ebx + 1]
push 0x500330
sbb esi, esi
and esi, eax
mov edi, esi
shl edi, 4
push str.cw
push 0x500530
push 0x500430
mov eax, dword [ebp + edi - 0x74]
xor eax, dword [ebp - 0x34]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + edi - 0x70]
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + edi - 0x6c]
xor eax, dword [ebp - 0x2c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + edi - 0x68]
xor eax, dword [ebp - 0x28]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004be450
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004be140
mov eax, dword [ebp - 0x44]
add esp, 0x40
xor eax, dword [ebp - 0x7c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x40]
xor eax, dword [ebp - 0x80]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
xor eax, dword [ebp - 0x84]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x78]
mov dword [ebp - 0x18], eax
cmp esi, 2
jae 0x4bf669
lea eax, [ebp - 0x64]
add eax, edi
jmp 0x4bf66c
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004be2b0
mov ebx, dword [ebp - 0x88]
lea edi, [ebp - 0x44]
add esp, 0x10
xor eax, eax
add ebx, 0x44
nop
inc eax
lea esi, [ebp - 0x44]
mov dword [ebp - 0x78], eax
and eax, 3
shl eax, 4
add esi, eax
lea eax, [ebx - 0x40]
push 0x6d
push esi
push edi
push eax
call fcn.004be350
push 0x61
push esi
push edi
push ebx
call fcn.004be350
push 0x3d
push esi
lea eax, [ebx + 0x40]
push edi
push eax
call fcn.004be350
push 0x1f
push esi
lea eax, [ebx + 0x80]
push edi
push eax
call fcn.004be350
mov eax, dword [ebp - 0x78]
add esp, 0x40
add ebx, 0x10
add edi, 0x10
cmp eax, 4
jl 0x4bf690
push 0x13
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x88]
add eax, 0x104
push eax
call fcn.004be350
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004a0f10
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret