Function at 0x4316a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x586420]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x90]
push esi
push edi
cmp eax, 0x47
jne 0x4316d2
mov byte [esp + 0x10], 0x81
lea esi, [eax - 0x46]
jmp 0x4316f6
mov esi, 0x48
sub esi, eax
lea ecx, [esi - 2]
push ecx
lea edx, [esp + 0x15]
push 0
push edx
mov byte [esp + 0x1c], 1
call fcn.0052acb6
add esp, 0xc
mov byte [esp + esi + 0xf], 0x80
push esi
lea eax, [esp + 0x14]
push eax
mov esi, ebx
call fcn.00429560
mov ecx, dword [ebx + 0xa0]
mov edx, dword [ebx + 0xa4]
mov eax, dword [ebx + 0xa8]
not ecx
not edx
not eax
mov dword [ebx + 0xa0], ecx
mov ecx, dword [ebx + 0xac]
mov dword [ebx + 0xa4], edx
mov edx, dword [ebx + 0xd8]
mov dword [ebx + 0xa8], eax
mov eax, dword [ebx + 0xdc]
not ecx
not edx
not eax
mov dword [ebx + 0xac], ecx
mov ecx, dword [ebx + 0xf8]
mov dword [ebx + 0xd8], edx
mov edx, dword [ebx + 0xfc]
mov dword [ebx + 0xdc], eax
mov eax, dword [ebx + 0x120]
not ecx
not edx
not eax
mov dword [ebx + 0xf8], ecx
mov ecx, dword [ebx + 0x124]
mov dword [ebx + 0xfc], edx
mov edx, dword [ebx + 0x138]
mov dword [ebx + 0x120], eax
mov eax, dword [ebx + 0x13c]
not ecx
not edx
not eax
add esp, 8
mov dword [ebx + 0x124], ecx
mov dword [ebx + 0x138], edx
mov dword [ebx + 0x13c], eax
lea esi, [ebx + 0x9c]
mov dword [esp + 8], 0x19
mov ecx, dword [esi]
mov eax, dword [esi - 4]
mov edx, ecx
shl edx, 0x10
xor edx, eax
and edx, 0xffff0000
xor eax, edx
shr edx, 0x10
xor ecx, edx
mov edx, eax
shr edx, 8
xor edx, eax
and edx, 0xff00
mov edi, edx
shl edi, 8
xor edi, edx
xor eax, edi
mov edx, ecx
shr edx, 8
xor edx, ecx
and edx, 0xff00
mov edi, edx
shl edi, 8
xor edi, edx
xor ecx, edi
mov edx, eax
shr edx, 4
xor edx, eax
and edx, 0xf000f0
mov edi, edx
shl edi, 4
xor edi, edx
xor eax, edi
mov edx, ecx
shr edx, 4
xor edx, ecx
and edx, 0xf000f0
mov edi, edx
shl edi, 4
xor edi, edx
mov edx, eax
shr edx, 2
xor edx, eax
and edx, 0xc0c0c0c
xor ecx, edi
lea edi, [edx*4]
xor edi, edx
xor eax, edi
mov edx, ecx
shr edx, 2
xor edx, ecx
and edx, 0xc0c0c0c
lea edi, [edx*4]
xor edi, edx
mov edx, eax
shr edx, 1
xor edx, eax
and edx, 0x22222222
xor ecx, edi
lea edi, [edx + edx]
xor edi, edx
mov edx, ecx
shr edx, 1
xor eax, edi
xor edx, ecx
and edx, 0x22222222
mov dword [esi - 4], eax
lea eax, [edx + edx]
xor eax, edx
xor eax, ecx
mov dword [esi], eax
add esi, 8
dec dword [esp + 8]
jne 0x4317bc
xor eax, eax
jmp 0x4318a0
mov ecx, eax
shr ecx, 2
mov edx, dword [ebx + ecx*4 + 0x98]
mov dword [esp + eax + 0x10], edx
add eax, 4
cmp eax, 0x40
jb 0x4318a0
mov edi, dword [esp + 0xc]
mov ecx, 0x10
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea edi, [ebx + 0x98]
mov ecx, 0x32
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov dword [ebx + 0xd8], eax
mov dword [ebx + 0xdc], eax
mov dword [ebx + 0xf8], eax
mov dword [ebx + 0xfc], eax
mov dword [ebx + 0x120], eax
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x138], eax
mov dword [ebx + 0x13c], eax
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0x48
call fcn.0052abef
mov esp, ebp
pop ebp
ret