Function at 0x40c760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x457b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x120], ebx
add edx, 2
mov eax, dword [ebx + 8]
mov dword [ebp - 0x108], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x114], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x110], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x128], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x11c], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x10c], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x118], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x124], eax
nop dword [eax + eax]
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x104], ecx
inc esi
cmp esi, 0x10
jl 0x40c800
lea eax, [ebp - 0x100]
mov ebx, 0x30
push edi
nop dword [eax + eax]
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax + 0x30]
mov edi, edx
mov ecx, edx
ror edi, 0x12
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 0x11
ror edx, 0x13
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax + 0x1c]
add edi, dword [eax - 8]
mov dword [eax + 0x38], edi
sub ebx, 1
jne 0x40c840
mov ebx, dword [ebp - 0x120]
xor edi, edi
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x108]
nop
mov esi, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x120], eax
mov eax, ecx
ror eax, 0xb
mov dword [ebp - 0x14c], esi
mov esi, dword [ebp - 0x110]
mov dword [ebp - 0x138], esi
mov esi, dword [ebp - 0x114]
mov dword [ebp - 0x130], esi
mov esi, ecx
ror esi, 0x19
xor esi, eax
mov dword [ebp - 0x144], ecx
mov eax, ecx
mov dword [ebp - 0x154], edx
ror eax, 6
xor esi, eax
mov eax, dword [ebp - 0x10c]
xor eax, edx
and eax, ecx
mov ecx, dword [ebp - 0x108]
xor eax, edx
mov edx, ecx
add esi, eax
ror edx, 0x16
add esi, dword [edi + 0x4335b8]
mov eax, ecx
add esi, dword [ebp + edi - 0x104]
add edi, 4
add esi, dword [ebp - 0x124]
ror eax, 0xd
xor edx, eax
mov eax, ecx
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0x114]
mov ecx, eax
add edx, esi
and eax, dword [ebp - 0x108]
or ecx, dword [ebp - 0x108]
and ecx, dword [ebp - 0x110]
or ecx, eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x124], eax
add edx, ecx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x118], eax
add ecx, esi
mov eax, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x114]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x114], eax
mov eax, edx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x108], eax
cmp edi, 0x100
jl 0x40c890
add dword [ebx + 8], edx
mov eax, dword [ebp - 0x120]
add eax, dword [ebp - 0x12c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x134]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x138]
add eax, dword [ebp - 0x13c]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x140]
add eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x18], eax
xor ecx, ebp
mov eax, dword [ebp - 0x144]
add eax, dword [ebp - 0x148]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x14c]
add eax, dword [ebp - 0x150]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x154]
add eax, dword [ebp - 0x158]
pop edi
pop esi
mov dword [ebx + 0x24], eax
pop ebx
call fcn.00411457
mov esp, ebp
pop ebp
ret