Function at 0xaa12d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [0xb0c42c], 0
je 0xaa12eb
call fcn.00aa10c0
mov dword [0xb0c42c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor edx, edx
mov dword [eax + 0x200], 0xe
add ecx, 2
push edi
movzx esi, byte [ecx - 2]
movzx edi, byte [ecx - 1]
shl esi, 8
or esi, edi
movzx edi, byte [ecx]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 1]
shl esi, 8
or esi, edi
mov dword [eax + edx*4], esi
inc edx
add ecx, 4
cmp edx, 8
jl 0xaa1303
mov ebx, 0xb0f380
mov esi, dword [eax + 0x1c]
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + 0xb0e780]
shl ecx, 8
mov edi, dword [eax + 0xc]
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0xb0e780]
movzx edx, byte [eax + 0x1c]
shl ecx, 8
xor ecx, dword [edx*4 + 0xb0e780]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0xb0e780]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add ebx, 4
xor ecx, dword [ebx - 4]
add eax, 0x20
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 0x18]
xor ecx, edx
xor edi, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov ecx, edi
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0xb0e780]
shl ecx, 8
mov edx, edi
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + 0xb0e780]
mov edx, edi
shr edx, 8
shl ecx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0xb0e780]
movzx edx, byte [eax + 0xc]
shl ecx, 8
xor ecx, dword [edx*4 + 0xb0e780]
mov edx, dword [eax - 0xc]
xor ecx, dword [eax - 0x10]
xor edx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], esi
cmp ebx, 0xb0f39c
jl 0xaa1332
cmp dword [0xb0c48c], 0
je 0xaa1512
xor ecx, ecx
lea esp, [esp]
mov edx, dword [ecx + 0xb0e780]
add edx, edx
mov esi, dword [edx + edx + 0xb103c0]
add edx, edx
mov dword [ecx + 0xb0fbc0], esi
mov esi, dword [edx + 0xb0ffc0]
mov dword [ecx + 0xb0f7c0], esi
mov esi, dword [edx + 0xb0ef80]
mov edx, dword [edx + 0xb0eb80]
mov dword [ecx + 0xb11bc0], edx
mov edx, dword [ecx + 0xb0e784]
add edx, edx
add edx, edx
mov dword [ecx + 0xb0f3c0], esi
mov esi, dword [edx + 0xb103c0]
mov dword [ecx + 0xb0fbc4], esi
mov esi, dword [edx + 0xb0ffc0]
mov dword [ecx + 0xb0f7c4], esi
mov esi, dword [edx + 0xb0ef80]
mov edx, dword [edx + 0xb0eb80]
mov dword [ecx + 0xb11bc4], edx
mov edx, dword [ecx + 0xb0e788]
add edx, edx
add edx, edx
mov dword [ecx + 0xb0f3c4], esi
mov esi, dword [edx + 0xb103c0]
mov dword [ecx + 0xb0fbc8], esi
mov esi, dword [edx + 0xb0ffc0]
mov dword [ecx + 0xb0f7c8], esi
mov esi, dword [edx + 0xb0ef80]
mov edx, dword [edx + 0xb0eb80]
mov dword [ecx + 0xb11bc8], edx
mov edx, dword [ecx + 0xb0e78c]
add edx, edx
add edx, edx
mov dword [ecx + 0xb0f3c8], esi
mov esi, dword [edx + 0xb103c0]
mov dword [ecx + 0xb0fbcc], esi
mov esi, dword [edx + 0xb0ffc0]
mov dword [ecx + 0xb0f7cc], esi
mov esi, dword [edx + 0xb0ef80]
mov edx, dword [edx + 0xb0eb80]
mov dword [ecx + 0xb0f3cc], esi
mov dword [ecx + 0xb11bcc], edx
add ecx, 0x10
cmp ecx, 0x400
jl 0xaa1410
mov dword [0xb0c48c], 0
mov esi, dword [eax]
mov edx, dword [ebp + 8]
mov dword [edx + 0x100], esi
mov esi, dword [eax + 4]
lea ecx, [edx + 0x100]
mov dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + 8], esi
mov esi, dword [eax + 0xc]
mov dword [ecx + 0xc], esi
mov edi, 1
add ecx, 0x10
add eax, 0x10
cmp dword [edx + 0x200], edi
jle 0xaa1651
lea esp, [esp]
mov esi, dword [eax - 0x20]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0xb0fbc0]
xor edx, dword [ebx*4 + 0xb0f7c0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0xb0f3c0]
movzx esi, byte [eax - 0x20]
xor edx, dword [esi*4 + 0xb11bc0]
inc edi
mov dword [ecx], edx
mov esi, dword [eax - 0x1c]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0xb0fbc0]
xor edx, dword [ebx*4 + 0xb0f7c0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0xb0f3c0]
movzx esi, byte [eax - 0x1c]
xor edx, dword [esi*4 + 0xb11bc0]
add ecx, 0x10
mov dword [ecx - 0xc], edx
mov esi, dword [eax - 0x18]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0xb0fbc0]
movzx ebx, bl
xor edx, dword [ebx*4 + 0xb0f7c0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0xb0f3c0]
movzx esi, byte [eax - 0x18]
xor edx, dword [esi*4 + 0xb11bc0]
add eax, 0xfffffff0
mov dword [ecx - 8], edx
mov esi, dword [eax - 4]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0xb0fbc0]
movzx ebx, bl
xor edx, dword [ebx*4 + 0xb0f7c0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0xb0f3c0]
movzx esi, byte [eax - 4]
xor edx, dword [esi*4 + 0xb11bc0]
mov dword [ecx - 4], edx
mov edx, dword [ebp + 8]
cmp edi, dword [edx + 0x200]
jl 0xaa1550
mov edx, dword [eax - 0x20]
mov dword [ecx], edx
mov edx, dword [eax - 0x1c]
mov dword [ecx + 4], edx
mov edx, dword [eax - 0x18]
mov dword [ecx + 8], edx
mov eax, dword [eax - 0x14]
pop edi
pop esi
mov dword [ecx + 0xc], eax
xor eax, eax
pop ebx
pop ebp
ret