Function at 0x40f646
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x24], al
mov dword [ebp - 0x18], 0x9e3779b9
mov eax, 0x9e3779b9
mov edx, 0x9e3779b9
mov ecx, 0x9e3779b9
mov ebx, 0x9e3779b9
mov dword [ebp - 0x1c], 0x9e3779b9
mov dword [ebp - 0x10], 0x9e3779b9
mov dword [ebp - 0x14], 0x9e3779b9
mov dword [ebp - 0x20], 0
mov edi, dword [ebp - 0x10]
shl edi, 0xb
xor edi, dword [ebp - 0x14]
lea ebx, [edi + ebx]
mov esi, dword [ebp - 0x1c]
add esi, dword [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x1c]
shr esi, 2
xor esi, dword [ebp - 0x10]
lea ecx, [esi + ecx]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, ebx
mov dword [ebp - 0x10], ecx
mov ecx, ebx
shl ecx, 8
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x10]
xor dword [ebp - 0x1c], ecx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add ecx, ebx
mov ebx, dword [ebp - 0x28]
shr ebx, 0x10
xor ebx, ecx
lea eax, [ebx + eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x28]
lea eax, [edx + ecx]
mov ecx, edx
shl ecx, 0xa
xor ecx, eax
mov eax, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
add eax, edx
mov edx, dword [ebp - 0x14]
shr edx, 4
xor edx, eax
lea edi, [edx + edi]
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
shl eax, 8
xor eax, dword [ebp - 0x10]
lea esi, [eax + esi]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x18]
add esi, edi
mov dword [ebp - 0x14], esi
mov esi, edi
shr esi, 9
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x14]
xor dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
add edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 4
jne 0x40f68c
xor esi, esi
cmp byte [ebp - 0x24], 0
je 0x40f9e4
mov esi, dword [ebp + 8]
mov edi, esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x14]
add esi, dword [edi + 0x10]
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x10]
add esi, dword [edi + 0x14]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x1c]
add esi, dword [edi + 0x18]
mov dword [ebp - 0x1c], esi
add edx, dword [edi + 0x24]
add eax, dword [edi + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
add eax, dword [edi + 0x2c]
mov dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x14]
shl esi, 0xb
mov eax, dword [ebp - 0x2c]
xor esi, eax
mov dword [ebp - 0x10], esi
add ebx, dword [edi + 0x1c]
add ebx, esi
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
shr esi, 2
xor esi, eax
mov dword [ebp - 0x18], esi
add ecx, dword [edi + 0x20]
add ecx, esi
mov esi, dword [ebp - 0x1c]
lea eax, [ebx + esi]
mov esi, ebx
shl esi, 8
xor esi, eax
mov dword [ebp - 0x1c], esi
add edx, esi
lea eax, [ecx + ebx]
mov ebx, ecx
shr ebx, 0x10
xor ebx, eax
mov eax, dword [ebp - 0x28]
add eax, ebx
lea esi, [edx + ecx]
mov ecx, edx
shl ecx, 0xa
xor ecx, esi
mov esi, dword [ebp - 0x24]
add esi, ecx
mov dword [ebp - 0x24], esi
lea esi, [eax + edx]
mov edx, eax
shr edx, 4
xor edx, esi
mov esi, dword [ebp - 0x10]
add esi, edx
mov dword [ebp - 0x14], esi
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
shl eax, 8
xor eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
add esi, eax
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x14]
add esi, dword [ebp - 0x24]
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x14]
shr esi, 9
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x24]
xor dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x10]
add esi, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [edi + 0x410], esi
mov esi, dword [ebp - 0x10]
mov dword [edi + 0x414], esi
mov esi, dword [ebp - 0x1c]
mov dword [edi + 0x418], esi
mov dword [edi + 0x41c], ebx
mov dword [edi + 0x420], ecx
mov dword [edi + 0x424], edx
mov dword [edi + 0x428], eax
mov esi, dword [ebp - 0x18]
mov dword [edi + 0x42c], esi
add dword [ebp - 0x20], 8
add edi, 0x20
cmp dword [ebp - 0x20], 0x100
jne 0x40f766
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov edi, dword [ebp - 0x14]
add edi, dword [esi + 0x410]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x10]
add edi, dword [esi + 0x414]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x1c]
add edi, dword [esi + 0x418]
add edx, dword [esi + 0x424]
mov dword [ebp - 0x28], edx
add eax, dword [esi + 0x428]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
add eax, dword [esi + 0x42c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
shl eax, 0xb
xor eax, dword [ebp - 0x2c]
add ebx, dword [esi + 0x41c]
add ebx, eax
mov edx, dword [ebp - 0x10]
add edx, edi
mov dword [ebp - 0x10], edx
mov edx, edi
shr edx, 2
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
xor dword [ebp - 0x18], edx
add ecx, dword [esi + 0x420]
add ecx, dword [ebp - 0x18]
lea edi, [ebx + edi]
mov edx, ebx
shl edx, 8
xor edx, edi
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x1c]
lea edi, [ecx + ebx]
mov ebx, ecx
shr ebx, 0x10
xor ebx, edi
mov edi, dword [ebp - 0x24]
add edi, ebx
mov dword [ebp - 0x10], edi
lea edi, [edx + ecx]
mov ecx, edx
shl ecx, 0xa
xor ecx, edi
mov edi, dword [ebp - 0x14]
add edi, ecx
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
add edi, edx
mov edx, dword [ebp - 0x10]
shr edx, 4
xor edx, edi
lea eax, [edx + eax]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x14]
add edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
shl eax, 8
xor eax, edi
mov edi, dword [ebp - 0x18]
add edi, eax
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
add edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x24]
shr edi, 9
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x14]
xor dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x18]
add edi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x24]
add edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
mov dword [esi + 0x410], edi
mov edi, dword [ebp - 0x10]
mov dword [esi + 0x414], edi
mov edi, dword [ebp - 0x1c]
mov dword [esi + 0x418], edi
mov dword [esi + 0x41c], ebx
mov dword [esi + 0x420], ecx
mov dword [esi + 0x424], edx
mov dword [esi + 0x428], eax
mov edi, dword [ebp - 0x18]
mov dword [esi + 0x42c], edi
add dword [ebp - 0x20], 8
add esi, 0x20
cmp dword [ebp - 0x20], 0x100
jne 0x40f899
jmp 0x40fb09
mov dword [ebp - 0x24], ebx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
shl ebx, 0xb
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x14]
xor dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x24]
add ebx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x1c]
add ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x1c]
shr ebx, 2
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x14]
xor dword [ebp - 0x10], ebx
add ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
add ebx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x24]
shl ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x14]
xor dword [ebp - 0x1c], ebx
add edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x24]
add ebx, ecx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
shr ebx, 0x10
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x14]
xor dword [ebp - 0x24], ebx
add eax, dword [ebp - 0x24]
lea ebx, [edx + ecx]
mov ecx, edx
shl ecx, 0xa
xor ecx, ebx
mov ebx, dword [ebp - 0x18]
add ebx, ecx
mov dword [ebp - 0x18], ebx
lea ebx, [eax + edx]
mov edx, eax
shr edx, 4
xor edx, ebx
mov ebx, dword [ebp - 0x20]
add ebx, edx
mov dword [ebp - 0x14], ebx
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shl eax, 8
xor eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x10]
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x14]
add ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x14]
shr ebx, 9
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x20]
xor dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
add ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x10]
add ebx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [edi + esi*4 + 0x410], ebx
mov ebx, dword [ebp - 0x10]
mov dword [edi + esi*4 + 0x414], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [edi + esi*4 + 0x418], ebx
mov ebx, dword [ebp - 0x24]
mov dword [edi + esi*4 + 0x41c], ebx
mov dword [edi + esi*4 + 0x420], ecx
mov dword [edi + esi*4 + 0x424], edx
mov dword [edi + esi*4 + 0x428], eax
mov ebx, dword [ebp - 0x18]
mov dword [edi + esi*4 + 0x42c], ebx
add esi, 8
cmp esi, 0x100
jne 0x40f9ea
mov esi, dword [ebp + 8]
mov dword [esp], esi
call fcn.0040f3d8
mov dword [esi + 0xc], 0x100
add esp, 0x28
pop ebx
pop esi
pop edi
leave
ret