Function at 0x10040a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [edi + 4]
xor edx, dword [ebp + 0x14]
mov ebx, dword [edi]
xor ebx, dword [ebp + 0x10]
cmp eax, 0x41
jb 0x10040b77
mov ecx, dword [edi + 8]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x38], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x34], ecx
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x30], ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], ebx
mov edi, edx
mov ecx, eax
mov dword [ebp - 0x68], ecx
mov eax, dword [esi + 8]
xor eax, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
xor eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
xor eax, dword [ebp - 0x40]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 4]
xor eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
xor ebx, dword [esi + 0x18]
xor edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
xor eax, dword [ebp - 0x34]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x14]
xor eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp - 0x10]
xor eax, ecx
mov dword [ebp - 0x20], eax
mov eax, ecx
mov ecx, dword [esi + 0x2c]
xor ecx, edx
mov dword [ebp - 0x64], ecx
mov ecx, dword [esi + 0x20]
xor ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [esi + 0x24]
xor ecx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], ecx
xor eax, dword [esi + 0x38]
mov dword [ebp - 0x10], eax
xor edx, dword [esi + 0x3c]
mov dword [ebp - 0x18], edx
mov eax, dword [esi + 0x30]
xor eax, dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x34]
xor eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x50]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.10040c46
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x48]
push edi
push ebx
call fcn.10040c46
add esp, 8
mov ebx, eax
mov edi, edx
xor edi, dword [ebp - 0x1c]
xor ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
push dword [ebp - 0x64]
push dword [ebp - 0x20]
call fcn.10040c46
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x44]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.10040c46
mov ecx, dword [ebp - 0x68]
add esp, 8
xor edx, dword [ebp - 0x14]
xor eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
add esi, 0x40
add ecx, 0xffffffc0
cmp ecx, 0x40
ja 0x10040a6d
mov eax, dword [ebp - 0x10]
xor eax, ebx
xor edx, edi
mov edi, dword [ebp + 0x18]
jmp 0x10040b7b
mov ecx, eax
mov eax, ebx
cmp ecx, 0x11
jb 0x10040bc1
mov ebx, ecx
mov ecx, eax
mov eax, edi
mov edi, dword [edi + 8]
mov dword [ebp - 0x10], edi
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, ecx
xor eax, dword [esi + 8]
xor edx, dword [esi + 0xc]
mov ecx, dword [esi]
xor ecx, dword [ebp - 0x10]
mov edi, edx
mov edx, dword [esi + 4]
xor edx, dword [ebp - 0x18]
push edi
push eax
call fcn.10040c46
add esp, 8
add esi, 0x10
add ebx, 0xfffffff0
cmp ebx, 0x10
ja 0x10040b94
mov edi, dword [ebp + 0x18]
mov ecx, ebx
cmp ecx, 9
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
jb 0x10040bdd
mov ebx, ecx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + ebx - 8]
mov esi, dword [esi + ebx - 4]
jmp 0x10040c16
cmp ecx, 4
jb 0x10040bee
mov eax, ecx
mov ecx, dword [esi]
xor edx, edx
mov eax, dword [esi + eax - 4]
jmp 0x10040c14
test ecx, ecx
je 0x10040c0e
movzx eax, byte [esi]
shl eax, 0x10
mov ebx, ecx
shr ecx, 1
movzx edx, byte [esi + ecx]
shl edx, 8
or edx, eax
movzx ecx, byte [ebx + esi - 1]
or ecx, edx
jmp 0x10040c10
xor ecx, ecx
xor edx, edx
xor eax, eax
xor esi, esi
xor esi, dword [ebp - 0x18]
xor eax, dword [ebp - 0x10]
mov ebx, dword [edi + 8]
mov edi, dword [edi + 0xc]
xor ecx, ebx
xor edx, edi
push esi
push eax
call fcn.10040c46
add esp, 8
mov esi, dword [ebp + 0xc]
xor esi, ebx
mov ecx, eax
push edi
push esi
call fcn.10040c46
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret