Function at 0x974510
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov ecx, dword [esp + 0x64]
mov eax, dword [0xbcbae0]
mov edi, 0xffffffec
lea ecx, [ecx - 4]
xor eax, esp
cmp ecx, 0xc
mov dword [esp + 0x44], eax
ja 0x974735
mov esi, dword [esp + 0x5c]
mov edx, dword [esi + 0x140]
mov ecx, dword [esi + 0x138]
mov edi, dword [esi + 0x13c]
mov ebx, dword [esi + 0x144]
lea eax, [esi + 0x148]
mov dword [esp + 8], edi
lea ebp, [edx*8]
shld edi, ecx, 3
mov dword [esp + 0x30], ecx
lea ecx, [ecx*8]
mov dword [esp], ebx
shld ebx, edx, 3
mov dword [esp + 4], edx
mov dword [esp + 0x14], ecx
push dword [esp + 0x64]
push eax
push dword [esp + 0x68]
call fcn.0097cbc0
add esp, 0xc
mov eax, ebp
mov dword [esp + 0xc], ebp
mov ebp, ebx
or ebx, edi
mov dword [esp + 0x10], edi
or eax, dword [esp + 0x14]
or ebx, eax
jne 0x9745b0
xor edi, edi
jmp 0x974735
lea eax, [esp + 0x34]
push 0x10
push 0
push eax
call fcn.0097bba0
add esp, 0xc
mov eax, dword [esp]
mov dword [esp + 0x28], ebp
mov ebx, eax
mov ecx, eax
shr eax, 5
shr ebx, 0x15
shr ecx, 0xd
mov dword [esp], eax
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], cl
mov byte [esp + 0x36], al
mov eax, ebp
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x37], al
mov eax, dword [esp + 4]
mov ecx, eax
shr ecx, 0x15
mov dword [esp + 0x24], ecx
mov byte [esp + 0x38], cl
mov ecx, eax
shr eax, 5
shr ecx, 0xd
mov dword [esp + 4], eax
mov byte [esp + 0x39], cl
mov byte [esp + 0x3a], al
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
mov byte [esp + 0x3b], al
mov eax, dword [esp + 8]
mov ecx, eax
shr ecx, 0x15
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x3c], cl
mov ecx, eax
shr eax, 5
shr ecx, 0xd
mov dword [esp + 8], eax
mov byte [esp + 0x3d], cl
mov dword [esp + 0x18], ecx
mov byte [esp + 0x3e], al
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov edx, ecx
mov byte [esp + 0x3f], al
mov eax, dword [esp + 0x14]
shr edx, 0x15
mov byte [esp + 0x40], dl
mov ebp, edx
mov edx, ecx
shr ecx, 5
shr edx, 0xd
mov byte [esp + 0x41], dl
mov byte [esp + 0x42], cl
mov byte [esp + 0x43], al
xor byte [esi + 0x168], bl
mov edi, eax
mov ebx, dword [esp + 0x2c]
xor byte [esi + 0x169], bl
mov ebx, dword [esp]
xor byte [esi + 0x16a], bl
mov ebx, dword [esp + 0x28]
xor byte [esi + 0x16b], bl
mov ebx, dword [esp + 0x24]
xor byte [esi + 0x16c], bl
mov ebx, dword [esp + 0x20]
xor byte [esi + 0x16d], bl
mov ebx, dword [esp + 4]
xor byte [esi + 0x16e], bl
mov ebx, dword [esp + 0xc]
xor byte [esi + 0x16f], bl
mov ebx, dword [esp + 0x1c]
xor byte [esi + 0x170], bl
mov ebx, dword [esp + 0x18]
xor byte [esi + 0x171], bl
mov eax, dword [esp + 8]
xor byte [esi + 0x172], al
mov eax, dword [esp + 0x10]
xor byte [esi + 0x173], al
mov eax, ebp
xor byte [esi + 0x174], al
mov eax, edi
xor byte [esi + 0x175], dl
xor byte [esi + 0x176], cl
lea edx, [esi + 0x168]
mov ecx, esi
xor byte [esi + 0x177], al
push edx
call fcn.00974250
add esp, 4
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
xor edi, edi
xor eax, eax
movzx ecx, byte [esi + eax + 0x168]
xor byte [ebx + eax], cl
inc eax
cmp eax, edx
jne 0x974725
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00980459
mov eax, edi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret