Function at 0x40c9e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov esi, dword [esp + 0x5c]
cmp esi, 0
je 0x40ca31
mov eax, dword [esi]
cmp dword [esp + 0x48], 0
jne 0x40ca10
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
jmp 0x40ca19
mov ebx, dword [esi - 4]
mov ecx, dword [esi - 8]
mov edx, dword [esi - 0xc]
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
jmp 0x40ce6c
mov edi, dword [esp + 0x50]
mov dword [esp + 0x30], edi
add dword [esp + 0x60], 0x10
mov eax, dword [esi]
cmp dword [esp + 0x48], 0
jne 0x40ca57
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
jmp 0x40ca60
mov ebx, dword [esi - 4]
mov ecx, dword [esi - 8]
mov edx, dword [esi - 0xc]
bswap eax
bswap ebx
bswap ecx
bswap edx
cmp dword [esp + 0x5c], 0
je 0x40cab8
cmp dword [esp + 0x48], 0
jne 0x40ca88
xor eax, dword [esp + 0x20]
xor ebx, dword [esp + 0x24]
xor ecx, dword [esp + 0x28]
xor edx, dword [esp + 0x2c]
jmp 0x40cab8
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov esi, eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x30]
xor ebx, dword [ebp + 4]
mov dword [esp + 4], ebx
xor ecx, dword [ebp + 8]
mov dword [esp + 8], ecx
xor edx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
xor esi, dword [ebp]
mov eax, esi
lea esp, [esp]
nop
movzx ebp, al
mov ebx, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
mov ecx, dword [edi + ebp*4 + 0x800]
movzx ebp, al
mov edx, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
mov esi, dword [edi + ebp*4]
mov eax, dword [esp + 4]
movzx ebp, al
xor ecx, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
xor edx, dword [edi + ebp*4 + 0x800]
movzx ebp, al
xor esi, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
xor ebx, dword [edi + ebp*4]
mov eax, dword [esp + 8]
movzx ebp, al
xor edx, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
xor esi, dword [edi + ebp*4 + 0x800]
movzx ebp, al
xor ebx, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
xor ecx, dword [edi + ebp*4]
mov eax, dword [esp + 0xc]
movzx ebp, al
xor esi, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
xor ebx, dword [edi + ebp*4 + 0x800]
movzx ebp, al
xor ecx, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
xor edx, dword [edi + ebp*4]
mov ebp, dword [esp + 0x30]
xor ebx, dword [ebp + 0x14]
mov dword [esp + 4], ebx
xor ecx, dword [ebp + 0x18]
mov dword [esp + 8], ecx
xor edx, dword [ebp + 0x1c]
mov dword [esp + 0xc], edx
xor esi, dword [ebp + 0x10]
mov eax, esi
movzx ebp, al
mov ebx, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
mov ecx, dword [edi + ebp*4 + 0x800]
movzx ebp, al
mov edx, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
mov esi, dword [edi + ebp*4]
mov eax, dword [esp + 4]
movzx ebp, al
xor ecx, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
xor edx, dword [edi + ebp*4 + 0x800]
movzx ebp, al
xor esi, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
xor ebx, dword [edi + ebp*4]
mov eax, dword [esp + 8]
movzx ebp, al
xor edx, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
xor esi, dword [edi + ebp*4 + 0x800]
movzx ebp, al
xor ebx, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
xor ecx, dword [edi + ebp*4]
mov eax, dword [esp + 0xc]
movzx ebp, al
xor esi, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
xor ebx, dword [edi + ebp*4 + 0x800]
movzx ebp, al
xor ecx, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
xor edx, dword [edi + ebp*4]
mov ebp, dword [esp + 0x30]
xor ebx, dword [ebp + 0x24]
mov dword [esp + 4], ebx
xor ecx, dword [ebp + 0x28]
mov dword [esp + 8], ecx
xor edx, dword [ebp + 0x2c]
mov dword [esp + 0xc], edx
xor esi, dword [ebp + 0x20]
mov eax, esi
add ebp, 0x20
mov dword [esp + 0x30], ebp
cmp ebp, dword [esp + 0x54]
jl 0x40caf0
movzx ebp, al
mov ebx, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
mov ecx, dword [edi + ebp*4 + 0x800]
movzx ebp, al
mov edx, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
mov esi, dword [edi + ebp*4]
mov eax, dword [esp + 4]
movzx ebp, al
xor ecx, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
xor edx, dword [edi + ebp*4 + 0x800]
movzx ebp, al
xor esi, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
xor ebx, dword [edi + ebp*4]
mov eax, dword [esp + 8]
movzx ebp, al
xor edx, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
xor esi, dword [edi + ebp*4 + 0x800]
movzx ebp, al
xor ebx, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
xor ecx, dword [edi + ebp*4]
mov eax, dword [esp + 0xc]
movzx ebp, al
xor esi, dword [edi + ebp*4 + 0xc00]
movzx ebp, ah
shr eax, 0x10
xor ebx, dword [edi + ebp*4 + 0x800]
movzx ebp, al
xor ecx, dword [edi + ebp*4 + 0x400]
movzx ebp, ah
xor edx, dword [edi + ebp*4]
mov ebp, dword [esp + 0x30]
xor ebx, dword [ebp + 0x14]
mov dword [esp + 4], ebx
xor ecx, dword [ebp + 0x18]
mov dword [esp + 8], ecx
xor edx, dword [ebp + 0x1c]
mov dword [esp + 0xc], edx
xor esi, dword [ebp + 0x10]
mov eax, esi
mov dword [esp], esi
mov edi, dword [esp + 0x58]
movzx esi, byte [esp + 3]
mov al, byte [esi + edi]
shl eax, 8
movzx esi, byte [esp + 6]
mov al, byte [esi + edi]
shl eax, 8
movzx esi, byte [esp + 9]
mov al, byte [esi + edi]
shl eax, 8
movzx esi, byte [esp + 0xc]
mov al, byte [esi + edi]
xor eax, dword [ebp + 0x20]
movzx esi, byte [esp + 7]
mov bl, byte [esi + edi]
shl ebx, 8
movzx esi, byte [esp + 0xa]
mov bl, byte [esi + edi]
shl ebx, 8
movzx esi, byte [esp + 0xd]
mov bl, byte [esi + edi]
shl ebx, 8
movzx esi, byte [esp]
mov bl, byte [esi + edi]
xor ebx, dword [ebp + 0x24]
movzx esi, byte [esp + 0xb]
mov cl, byte [esi + edi]
shl ecx, 8
movzx esi, byte [esp + 0xe]
mov cl, byte [esi + edi]
shl ecx, 8
movzx esi, byte [esp + 1]
mov cl, byte [esi + edi]
shl ecx, 8
movzx esi, byte [esp + 4]
mov cl, byte [esi + edi]
xor ecx, dword [ebp + 0x28]
movzx esi, byte [esp + 0xf]
mov dl, byte [esi + edi]
shl edx, 8
movzx esi, byte [esp + 2]
mov dl, byte [esi + edi]
shl edx, 8
movzx esi, byte [esp + 5]
mov dl, byte [esi + edi]
shl edx, 8
movzx esi, byte [esp + 8]
mov dl, byte [esi + edi]
xor edx, dword [ebp + 0x2c]
cmp dword [esp + 0x5c], 0
je 0x40ce39
cmp dword [esp + 0x48], 0
jne 0x40ce29
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
jmp 0x40ce39
xor eax, dword [esp + 0x10]
xor ebx, dword [esp + 0x14]
xor ecx, dword [esp + 0x18]
xor edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x68]
cmp edi, 0
je 0x40ce6c
add dword [esp + 0x68], 0x10
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi], eax
cmp dword [esp + 0x48], 0
jne 0x40ce63
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
jmp 0x40ce6c
mov dword [edi - 4], ebx
mov dword [edi - 8], ecx
mov dword [edi - 0xc], edx
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
cmp esi, edi
jl 0x40ca36
mov edi, dword [esp + 0x5c]
cmp edi, 0
je 0x40ceba
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi], eax
cmp dword [esp + 0x48], 0
jne 0x40ceb1
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
jmp 0x40ceba
mov dword [edi - 4], ebx
mov dword [edi - 8], ecx
mov dword [edi - 0xc], edx
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
add esp, 0x44
ret