Function at 0x40d3dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0x14]
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
je 0x40d4e8
xor esi, dword [ebx + 0x1014]
xor eax, dword [ebx + 0x101c]
xor edx, dword [ebx + 0x1018]
xor edi, dword [ebx + 0x1010]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov edx, 0x27
mov dword [esp + 4], edi
rol edi, 1
mov dword [esp], ebx
mov dword [ebp - 0x28], edx
call sym.__TwoFish_Fe320
mov dword [esp], ebx
mov esi, eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
call sym.__TwoFish_Fe323
mov edx, dword [ebp - 0x28]
mov ecx, eax
lea eax, [eax + eax]
add eax, dword [ebx + edx*4 + 0x1000]
add eax, esi
xor eax, dword [ebp - 0x1c]
add esi, ecx
add esi, dword [ebx + edx*4 + 0xffc]
ror eax, 1
mov dword [esp], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
rol eax, 1
xor esi, eax
mov dword [esp + 4], esi
mov dword [ebp - 0x20], esi
call sym.__TwoFish_Fe320
mov dword [esp], ebx
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
call sym.__TwoFish_Fe323
mov edx, dword [ebp - 0x28]
mov ecx, eax
lea eax, [eax + eax]
add eax, dword [ebx + edx*4 + 0xff8]
sub edx, 4
add eax, esi
xor eax, dword [ebp - 0x24]
add esi, ecx
add esi, dword [ebx + edx*4 + 0x1004]
ror eax, 1
xor edi, esi
mov dword [ebp - 0x24], eax
cmp edx, 7
jne 0x40d427
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
xor eax, dword [ebx + 0x1000]
xor edx, dword [ebx + 0x1004]
xor edi, dword [ebx + 0x1008]
xor esi, dword [ebx + 0x100c]
jmp 0x40d5c7
xor edx, dword [ebx + 0x1008]
xor eax, dword [ebx + 0x100c]
xor edi, dword [ebx + 0x1000]
xor esi, dword [ebx + 0x1004]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edi
mov edi, 8
mov eax, dword [ebp - 0x24]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.__TwoFish_Fe320
mov dword [esp + 4], esi
rol esi, 1
mov dword [esp], ebx
mov dword [ebp - 0x28], eax
call sym.__TwoFish_Fe323
mov edx, dword [ebp - 0x28]
lea ecx, [edx + eax]
add ecx, dword [ebx + edi*4 + 0x1000]
xor ecx, dword [ebp - 0x1c]
add eax, eax
ror ecx, 1
add eax, dword [ebx + edi*4 + 0x1004]
mov dword [esp], ebx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x20]
add eax, edx
rol ecx, 1
xor eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
call sym.__TwoFish_Fe320
mov dword [esp], ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
call sym.__TwoFish_Fe323
mov edx, dword [ebp - 0x28]
lea ecx, [edx + eax]
add eax, eax
add ecx, dword [ebx + edi*4 + 0x1008]
add edi, 4
xor ecx, dword [ebp - 0x24]
add eax, edx
add eax, dword [ebx + edi*4 + 0xffc]
ror ecx, 1
xor esi, eax
mov dword [ebp - 0x24], ecx
cmp edi, 0x28
jne 0x40d50e
mov edi, dword [ebx + 0x1018]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
xor eax, dword [ebx + 0x1010]
xor edx, dword [ebx + 0x1014]
xor edi, ecx
xor esi, dword [ebx + 0x101c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], esi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret