Function at 0x470a40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdac
mov ebx, edx
mov dword [esp], eax
lea esi, [esp + 4]
lea ebp, [esp + 0x234]
mov eax, dword [esp]
call fcn.004054f0
mov edi, eax
cmp edi, 0x20
jbe 0x470a6e
mov edi, 0x20
test edi, edi
jbe 0x470a7e
mov edx, ebp
mov eax, dword [esp]
mov ecx, edi
call fcn.00402c84
cmp edi, 0x20
jae 0x470a88
mov byte [ebp + edi], 1
cmp edi, 0x1f
jae 0x470aa0
mov edx, 0x20
sub edx, edi
dec edx
lea eax, [ebp + edi + 1]
xor ecx, ecx
call fcn.00402f74
xor eax, eax
mov al, byte [ebp]
xor edx, edx
mov dl, byte [ebp + 1]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebp + 2]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [ebp + 3]
shl edx, 0x18
or eax, edx
mov dword [esi], eax
xor eax, eax
mov al, byte [ebp + 4]
xor edx, edx
mov dl, byte [ebp + 5]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebp + 6]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [ebp + 7]
shl edx, 0x18
or eax, edx
mov dword [esi + 4], eax
xor eax, eax
mov al, byte [ebp + 8]
xor edx, edx
mov dl, byte [ebp + 9]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0xa]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0xb]
shl edx, 0x18
or eax, edx
mov dword [esi + 8], eax
xor eax, eax
mov al, byte [ebp + 0xc]
xor edx, edx
mov dl, byte [ebp + 0xd]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0xe]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0xf]
shl edx, 0x18
or eax, edx
mov dword [esi + 0xc], eax
xor eax, eax
mov al, byte [ebp + 0x10]
xor edx, edx
mov dl, byte [ebp + 0x11]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0x12]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0x13]
shl edx, 0x18
or eax, edx
mov dword [esi + 0x10], eax
xor eax, eax
mov al, byte [ebp + 0x14]
xor edx, edx
mov dl, byte [ebp + 0x15]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0x16]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0x17]
shl edx, 0x18
or eax, edx
mov dword [esi + 0x14], eax
xor eax, eax
mov al, byte [ebp + 0x18]
xor edx, edx
mov dl, byte [ebp + 0x19]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0x1a]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0x1b]
shl edx, 0x18
or eax, edx
mov dword [esi + 0x18], eax
xor eax, eax
mov al, byte [ebp + 0x1c]
xor edx, edx
mov dl, byte [ebp + 0x1d]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0x1e]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [ebp + 0x1f]
shl edx, 0x18
or eax, edx
mov dword [esi + 0x1c], eax
mov edx, 8
mov eax, esi
mov ecx, dword [eax]
xor ecx, dword [eax + 0xc]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax + 0x1c]
xor ecx, 0x9e3779b9
mov edi, edx
sub edi, 8
xor ecx, edi
mov dword [eax + 0x20], ecx
mov edi, ecx
shl edi, 0xb
shr ecx, 0x15
or edi, ecx
mov dword [eax + 0x20], edi
inc edx
add eax, 4
cmp edx, 0x8c
jne 0x470bd6
mov eax, dword [esi + 0x2c]
push eax
push ebx
lea eax, [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 0xc]
push eax
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
call fcn.004705c4
mov eax, dword [esi + 0x3c]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0x14]
push eax
lea eax, [ebx + 0x18]
push eax
lea eax, [ebx + 0x1c]
push eax
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
call fcn.004704dc
mov eax, dword [esi + 0x4c]
push eax
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x24]
push eax
lea eax, [ebx + 0x28]
push eax
lea eax, [ebx + 0x2c]
push eax
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
call fcn.004703fc
mov eax, dword [esi + 0x5c]
push eax
lea eax, [ebx + 0x30]
push eax
lea eax, [ebx + 0x34]
push eax
lea eax, [ebx + 0x38]
push eax
lea eax, [ebx + 0x3c]
push eax
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
call fcn.00470318
mov eax, dword [esi + 0x6c]
push eax
lea eax, [ebx + 0x40]
push eax
lea eax, [ebx + 0x44]
push eax
lea eax, [ebx + 0x48]
push eax
lea eax, [ebx + 0x4c]
push eax
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x60]
call fcn.00470954
mov eax, dword [esi + 0x7c]
push eax
lea eax, [ebx + 0x50]
push eax
lea eax, [ebx + 0x54]
push eax
lea eax, [ebx + 0x58]
push eax
lea eax, [ebx + 0x5c]
push eax
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x70]
call fcn.00470874
mov eax, dword [esi + 0x8c]
push eax
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x64]
push eax
lea eax, [ebx + 0x68]
push eax
lea eax, [ebx + 0x6c]
push eax
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x84]
mov eax, dword [esi + 0x80]
call fcn.00470794
mov eax, dword [esi + 0x9c]
push eax
lea eax, [ebx + 0x70]
push eax
lea eax, [ebx + 0x74]
push eax
lea eax, [ebx + 0x78]
push eax
lea eax, [ebx + 0x7c]
push eax
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
call fcn.004706a8
mov eax, dword [esi + 0xac]
push eax
lea eax, [ebx + 0x80]
push eax
lea eax, [ebx + 0x84]
push eax
lea eax, [ebx + 0x88]
push eax
lea eax, [ebx + 0x8c]
push eax
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xa4]
mov eax, dword [esi + 0xa0]
call fcn.004705c4
mov eax, dword [esi + 0xbc]
push eax
lea eax, [ebx + 0x90]
push eax
lea eax, [ebx + 0x94]
push eax
lea eax, [ebx + 0x98]
push eax
lea eax, [ebx + 0x9c]
push eax
mov ecx, dword [esi + 0xb8]
mov edx, dword [esi + 0xb4]
mov eax, dword [esi + 0xb0]
call fcn.004704dc
mov eax, dword [esi + 0xcc]
push eax
lea eax, [ebx + 0xa0]
push eax
lea eax, [ebx + 0xa4]
push eax
lea eax, [ebx + 0xa8]
push eax
lea eax, [ebx + 0xac]
push eax
mov ecx, dword [esi + 0xc8]
mov edx, dword [esi + 0xc4]
mov eax, dword [esi + 0xc0]
call fcn.004703fc
mov eax, dword [esi + 0xdc]
push eax
lea eax, [ebx + 0xb0]
push eax
lea eax, [ebx + 0xb4]
push eax
lea eax, [ebx + 0xb8]
push eax
lea eax, [ebx + 0xbc]
push eax
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd4]
mov eax, dword [esi + 0xd0]
call fcn.00470318
mov eax, dword [esi + 0xec]
push eax
lea eax, [ebx + 0xc0]
push eax
lea eax, [ebx + 0xc4]
push eax
lea eax, [ebx + 0xc8]
push eax
lea eax, [ebx + 0xcc]
push eax
mov ecx, dword [esi + 0xe8]
mov edx, dword [esi + 0xe4]
mov eax, dword [esi + 0xe0]
call fcn.00470954
mov eax, dword [esi + 0xfc]
push eax
lea eax, [ebx + 0xd0]
push eax
lea eax, [ebx + 0xd4]
push eax
lea eax, [ebx + 0xd8]
push eax
lea eax, [ebx + 0xdc]
push eax
mov ecx, dword [esi + 0xf8]
mov edx, dword [esi + 0xf4]
mov eax, dword [esi + 0xf0]
call fcn.00470874
mov eax, dword [esi + 0x10c]
push eax
lea eax, [ebx + 0xe0]
push eax
lea eax, [ebx + 0xe4]
push eax
lea eax, [ebx + 0xe8]
push eax
lea eax, [ebx + 0xec]
push eax
mov ecx, dword [esi + 0x108]
mov edx, dword [esi + 0x104]
mov eax, dword [esi + 0x100]
call fcn.00470794
mov eax, dword [esi + 0x11c]
push eax
lea eax, [ebx + 0xf0]
push eax
lea eax, [ebx + 0xf4]
push eax
lea eax, [ebx + 0xf8]
push eax
lea eax, [ebx + 0xfc]
push eax
mov ecx, dword [esi + 0x118]
mov edx, dword [esi + 0x114]
mov eax, dword [esi + 0x110]
call fcn.004706a8
mov eax, dword [esi + 0x12c]
push eax
lea eax, [ebx + 0x100]
push eax
lea eax, [ebx + 0x104]
push eax
lea eax, [ebx + 0x108]
push eax
lea eax, [ebx + 0x10c]
push eax
mov ecx, dword [esi + 0x128]
mov edx, dword [esi + 0x124]
mov eax, dword [esi + 0x120]
call fcn.004705c4
mov eax, dword [esi + 0x13c]
push eax
lea eax, [ebx + 0x110]
push eax
lea eax, [ebx + 0x114]
push eax
lea eax, [ebx + 0x118]
push eax
lea eax, [ebx + 0x11c]
push eax
mov ecx, dword [esi + 0x138]
mov edx, dword [esi + 0x134]
mov eax, dword [esi + 0x130]
call fcn.004704dc
mov eax, dword [esi + 0x14c]
push eax
lea eax, [ebx + 0x120]
push eax
lea eax, [ebx + 0x124]
push eax
lea eax, [ebx + 0x128]
push eax
lea eax, [ebx + 0x12c]
push eax
mov ecx, dword [esi + 0x148]
mov edx, dword [esi + 0x144]
mov eax, dword [esi + 0x140]
call fcn.004703fc
mov eax, dword [esi + 0x15c]
push eax
lea eax, [ebx + 0x130]
push eax
lea eax, [ebx + 0x134]
push eax
lea eax, [ebx + 0x138]
push eax
lea eax, [ebx + 0x13c]
push eax
mov ecx, dword [esi + 0x158]
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x150]
call fcn.00470318
mov eax, dword [esi + 0x16c]
push eax
lea eax, [ebx + 0x140]
push eax
lea eax, [ebx + 0x144]
push eax
lea eax, [ebx + 0x148]
push eax
lea eax, [ebx + 0x14c]
push eax
mov ecx, dword [esi + 0x168]
mov edx, dword [esi + 0x164]
mov eax, dword [esi + 0x160]
call fcn.00470954
mov eax, dword [esi + 0x17c]
push eax
lea eax, [ebx + 0x150]
push eax
lea eax, [ebx + 0x154]
push eax
lea eax, [ebx + 0x158]
push eax
lea eax, [ebx + 0x15c]
push eax
mov ecx, dword [esi + 0x178]
mov edx, dword [esi + 0x174]
mov eax, dword [esi + 0x170]
call fcn.00470874
mov eax, dword [esi + 0x18c]
push eax
lea eax, [ebx + 0x160]
push eax
lea eax, [ebx + 0x164]
push eax
lea eax, [ebx + 0x168]
push eax
lea eax, [ebx + 0x16c]
push eax
mov ecx, dword [esi + 0x188]
mov edx, dword [esi + 0x184]
mov eax, dword [esi + 0x180]
call fcn.00470794
mov eax, dword [esi + 0x19c]
push eax
lea eax, [ebx + 0x170]
push eax
lea eax, [ebx + 0x174]
push eax
lea eax, [ebx + 0x178]
push eax
lea eax, [ebx + 0x17c]
push eax
mov ecx, dword [esi + 0x198]
mov edx, dword [esi + 0x194]
mov eax, dword [esi + 0x190]
call fcn.004706a8
mov eax, dword [esi + 0x1ac]
push eax
lea eax, [ebx + 0x180]
push eax
lea eax, [ebx + 0x184]
push eax
lea eax, [ebx + 0x188]
push eax
lea eax, [ebx + 0x18c]
push eax
mov ecx, dword [esi + 0x1a8]
mov edx, dword [esi + 0x1a4]
mov eax, dword [esi + 0x1a0]
call fcn.004705c4
mov eax, dword [esi + 0x1bc]
push eax
lea eax, [ebx + 0x190]
push eax
lea eax, [ebx + 0x194]
push eax
lea eax, [ebx + 0x198]
push eax
lea eax, [ebx + 0x19c]
push eax
mov ecx, dword [esi + 0x1b8]
mov edx, dword [esi + 0x1b4]
mov eax, dword [esi + 0x1b0]
call fcn.004704dc
mov eax, dword [esi + 0x1cc]
push eax
lea eax, [ebx + 0x1a0]
push eax
lea eax, [ebx + 0x1a4]
push eax
lea eax, [ebx + 0x1a8]
push eax
lea eax, [ebx + 0x1ac]
push eax
mov ecx, dword [esi + 0x1c8]
mov edx, dword [esi + 0x1c4]
mov eax, dword [esi + 0x1c0]
call fcn.004703fc
mov eax, dword [esi + 0x1dc]
push eax
lea eax, [ebx + 0x1b0]
push eax
lea eax, [ebx + 0x1b4]
push eax
lea eax, [ebx + 0x1b8]
push eax
lea eax, [ebx + 0x1bc]
push eax
mov ecx, dword [esi + 0x1d8]
mov edx, dword [esi + 0x1d4]
mov eax, dword [esi + 0x1d0]
call fcn.00470318
mov eax, dword [esi + 0x1ec]
push eax
lea eax, [ebx + 0x1c0]
push eax
lea eax, [ebx + 0x1c4]
push eax
lea eax, [ebx + 0x1c8]
push eax
lea eax, [ebx + 0x1cc]
push eax
mov ecx, dword [esi + 0x1e8]
mov edx, dword [esi + 0x1e4]
mov eax, dword [esi + 0x1e0]
call fcn.00470954
mov eax, dword [esi + 0x1fc]
push eax
lea eax, [ebx + 0x1d0]
push eax
lea eax, [ebx + 0x1d4]
push eax
lea eax, [ebx + 0x1d8]
push eax
lea eax, [ebx + 0x1dc]
push eax
mov ecx, dword [esi + 0x1f8]
mov edx, dword [esi + 0x1f4]
mov eax, dword [esi + 0x1f0]
call fcn.00470874
mov eax, dword [esi + 0x20c]
push eax
lea eax, [ebx + 0x1e0]
push eax
lea eax, [ebx + 0x1e4]
push eax
lea eax, [ebx + 0x1e8]
push eax
lea eax, [ebx + 0x1ec]
push eax
mov ecx, dword [esi + 0x208]
mov edx, dword [esi + 0x204]
mov eax, dword [esi + 0x200]
call fcn.00470794
mov eax, dword [esi + 0x21c]
push eax
lea eax, [ebx + 0x1f0]
push eax
lea eax, [ebx + 0x1f4]
push eax
lea eax, [ebx + 0x1f8]
push eax
lea eax, [ebx + 0x1fc]
push eax
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
mov eax, dword [esi + 0x210]
call fcn.004706a8
mov eax, dword [esi + 0x22c]
push eax
lea eax, [ebx + 0x200]
push eax
lea eax, [ebx + 0x204]
push eax
lea eax, [ebx + 0x208]
push eax
lea eax, [ebx + 0x20c]
push eax
mov ecx, dword [esi + 0x228]
mov edx, dword [esi + 0x224]
mov eax, dword [esi + 0x220]
call fcn.004705c4
add esp, 0x254
pop ebp
pop edi
pop esi
pop ebx
ret