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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e161
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x190
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x17c], edx
mov edi, ecx
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov dword [ebp - 0x174], eax
lea esi, [eax + 1]
push esi
call fcn.00481079
push esi
push 0
push eax
mov dword [ebp - 0x178], eax
call fcn.005219d0
mov esi, dword [ebp - 0x174]
push esi
push dword [edi]
mov edi, dword [ebp - 0x178]
push edi
call fcn.00520ed0
movups xmm0, xmmword [str.___o4_r__x_jYkP8_5cSTzxxY2i]
push 0x1e0
mov dword [ebp - 0x158], 0
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [0x58bb54]
movups xmmword [ebp - 0x28], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x170], xmm0
mov dword [ebp - 0x170], 0x20
movq qword [ebp - 0x160], xmm0
mov dword [ebp - 0x16c], 8
mov dword [ebp - 0x168], 0xe
mov dword [ebp - 0x15c], 0x78
call fcn.00481079
mov ecx, eax
mov dword [ebp - 0x164], 1
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x160], 0
mov dword [ebp - 4], 0
movups xmm0, xmmword [str.vz.Jg__Y.92_p86qz2k1X_7u42xCmcQ_GD]
mov eax, dword [0x58bb40]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x1a0]
movups xmmword [ebp - 0x1a0], xmm0
push 0x20
movups xmm0, xmmword [0x58bb30]
push eax
push ecx
movups xmmword [ebp - 0x190], xmm0
call fcn.00520ed0
mov eax, dword [ebp - 0x158]
add esp, 0x2c
mov edx, 8
add eax, 0x22
nop
mov ecx, dword [eax - 6]
mov dword [ebp - 0x144], ecx
mov dword [eax - 2], ecx
mov ecx, edx
and ecx, 0x80000007
jns 0x40b0ed
dec ecx
or ecx, 0xfffffff8
add ecx, 1
jne 0x40b148
mov ecx, dword [ebp - 0x144]
ror ecx, 8
mov dword [eax - 2], ecx
movzx ecx, cl
movzx ecx, byte [ecx + 0x58a9d8]
mov byte [eax - 2], cl
movzx ecx, byte [eax - 1]
movzx ecx, byte [ecx + 0x58a9d8]
mov byte [eax - 1], cl
movzx ecx, byte [eax]
movzx ecx, byte [ecx + 0x58a9d8]
mov byte [eax], cl
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + 0x58a9d8]
mov byte [eax + 1], cl
mov ecx, edx
test ecx, ecx
jns 0x40b139
add ecx, 7
sar ecx, 3
mov ecx, dword [ecx*4 + 0x58a29c]
xor dword [eax - 2], ecx
jmp 0x40b196
mov ecx, edx
and ecx, 0x80000003
jns 0x40b159
dec ecx
or ecx, 0xfffffffc
add ecx, 1
jne 0x40b19f
mov ecx, dword [ebp - 0x144]
movzx ecx, cl
movzx ecx, byte [ecx + 0x58a9d8]
mov byte [eax - 2], cl
movzx ecx, byte [eax - 1]
movzx ecx, byte [ecx + 0x58a9d8]
mov byte [eax - 1], cl
movzx ecx, byte [eax]
movzx ecx, byte [ecx + 0x58a9d8]
mov byte [eax], cl
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + 0x58a9d8]
mov byte [eax + 1], cl
mov ecx, dword [eax - 2]
mov dword [ebp - 0x144], ecx
mov ecx, dword [eax - 0x22]
inc edx
xor ecx, dword [ebp - 0x144]
mov dword [eax - 2], ecx
add eax, 4
cmp edx, 0x78
jl 0x40b0d0
test esi, esi
jle 0x40b216
lea eax, [esi - 1]
add edi, 8
shr eax, 4
inc eax
mov dword [ebp - 0x144], eax
nop dword [eax]
movups xmm1, xmmword [edi - 8]
lea esi, [edi - 8]
push esi
lea ecx, [ebp - 0x170]
call fcn.00401950
mov eax, dword [ebp - 0x38]
lea edi, [edi + 0x10]
xor dword [esi], eax
mov eax, dword [ebp - 0x34]
xor dword [edi - 0x14], eax
mov eax, dword [ebp - 0x30]
xor dword [edi - 0x10], eax
mov eax, dword [ebp - 0x2c]
xor dword [edi - 0xc], eax
sub dword [ebp - 0x144], 1
movups xmmword [ebp - 0x38], xmm1
jne 0x40b1d0
mov esi, dword [ebp - 0x174]
mov edi, dword [ebp - 0x178]
movzx eax, byte [edi + esi - 1]
xorps xmm0, xmm0
sub esi, eax
movlpd qword [ebp - 0x148], xmm0
mov dword [ebp - 0x174], esi
mov dword [ebp - method.CCompress.virtual_0], vtable.CCompress.0
mov dword [ebp - 0x144], 0
push 0x38
mov byte [ebp - 4], 1
call fcn.00481041
add esp, 4
mov esi, eax
mov dword [ebp - 0x144], esi
push 0x38
mov dword [esi + 0x20], 0
push str.1.2.11
mov dword [esi + 0x24], 0
push esi
mov dword [esi + 0x28], 0
call fcn.0051d7f0
test eax, eax
je 0x40b292
push 0x38
push esi
call fcn.00497cc1
add esp, 8
xor esi, esi
xor edi, edi
jmp 0x40b3c3
push dword [ebp - 0x17c]
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x154]
add eax, edi
mov dword [ebp - 0x14c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 0
push eax
movq qword [ebp - 0x154], xmm0
push edi
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
call fcn.0040b420
push 0x101
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.005219d0
mov eax, dword [ebp - 0x150]
add esp, 0xc
mov ecx, dword [ebp - 0x154]
sub eax, ecx
je 0x40b369
mov dword [esi + 4], eax
mov dword [esi], ecx
nop
push 0
lea eax, [ebp - 0x140]
mov dword [esi + 0x10], 0x100
push esi
mov dword [esi + 0xc], eax
call fcn.0051bee0
mov edi, eax
cmp edi, 0xfffffffc
jl 0x40b339
cmp edi, 0xfffffffd
jle 0x40b3a5
cmp edi, 2
je 0x40b3a0
push dword [ebp - 0x17c]
lea eax, [ebp - 0x40]
sub eax, dword [esi + 0x10]
push eax
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x17c]
mov ecx, eax
push dword [eax + 4]
call fcn.004077f0
cmp dword [esi + 0x10], 0
je 0x40b310
mov ecx, dword [ebp - 0x154]
xor edi, edi
xor eax, eax
test edi, edi
sete al
mov dword [ebp - 0x174], eax
test ecx, ecx
je 0x40b3bd
mov edx, dword [ebp - 0x14c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40b3b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b40f
jmp 0x40b3b3
mov edi, 0xfffffffd
push esi
call fcn.0051d6c0
mov ecx, dword [ebp - 0x154]
jmp 0x40b36b
push edx
push ecx
call fcn.00497cc1
add esp, 8
mov edi, dword [ebp - 0x174]
mov eax, dword [ebp - 0x178]
push eax
call fcn.0041f3e0
add esp, 4
test esi, esi
je 0x40b3e1
push 0x38
push esi
call fcn.00497cc1
add esp, 8
push dword [ebp - 0x158]
call fcn.0041f3e0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00524999
int3