Function at 0x404ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 0x2dc], ecx
jle 0x4051f0
mov ebx, dword [ebp + 8]
add ebx, 2
nop dword [eax]
xor edi, edi
movzx eax, byte [ebx - 2]
cdq
mov ecx, eax
mov esi, edx
movzx eax, byte [ebx - 1]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebx]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebx + 1]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebx + 2]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebx + 3]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebx + 4]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebx + 5]
shld esi, ecx, 8
cdq
add ebx, 8
shl ecx, 8
or esi, edx
or ecx, eax
mov dword [ebp + edi*8 - 0x284], esi
mov dword [ebp + edi*8 - 0x288], ecx
inc edi
cmp edi, 0x10
jl 0x404b12
mov dword [ebp - 0x348], ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x29c], 0x40
nop dword [eax + eax]
mov ebx, dword [eax]
xor edi, edi
mov edx, dword [eax + 4]
mov ecx, ebx
shl ecx, 0xd
xor esi, esi
mov dword [ebp - 0x28c], ecx
mov ecx, ebx
shrd ecx, edx, 0x13
or edi, ecx
shr edx, 0x13
or dword [ebp - 0x28c], edx
mov ecx, ebx
mov edx, dword [eax + 4]
shld edx, ecx, 3
mov dword [ebp - 0x290], edi
mov edi, dword [eax + 4]
or esi, edx
mov edx, dword [ebp - 0x290]
shl ecx, 3
shr edi, 0x1d
or edi, ecx
mov ecx, dword [eax + 4]
shrd ebx, ecx, 6
xor edx, edi
mov edi, dword [ebp - 0x28c]
xor edx, ebx
shr ecx, 6
xor edi, esi
mov dword [ebp - 0x290], edx
mov edx, dword [eax - 0x64]
xor edi, ecx
mov dword [ebp - 0x28c], edi
xor ebx, ebx
mov edi, dword [eax - 0x68]
mov ecx, edi
shrd ecx, edx, 8
mov esi, edi
shl edi, 0x1f
or ebx, ecx
shr edx, 8
mov ecx, dword [eax - 0x68]
shl esi, 0x18
or esi, edx
mov edx, dword [eax - 0x64]
shrd ecx, edx, 1
mov dword [ebp - 0x2c4], esi
xor esi, esi
or esi, ecx
shr edx, 1
mov ecx, dword [ebp - 0x2c4]
xor ebx, esi
mov esi, dword [eax - 0x64]
or edi, edx
mov edx, dword [eax - 0x68]
xor ecx, edi
shrd edx, esi, 7
xor ebx, edx
shr esi, 7
mov edx, dword [ebp - 0x290]
xor ecx, esi
add edx, ebx
mov ebx, dword [ebp - 0x28c]
adc ebx, ecx
add edx, dword [eax - 0x70]
adc ebx, dword [eax - 0x6c]
add edx, dword [eax - 0x28]
mov dword [eax + 0x10], edx
adc ebx, dword [eax - 0x24]
lea eax, [eax + 8]
sub dword [ebp - 0x29c], 1
mov dword [eax + 0xc], ebx
jne 0x404bc0
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax + 0x108]
mov edi, ecx
mov edx, dword [eax + 0x10c]
mov ebx, edx
mov dword [ebp - 0x2e8], ecx
mov ecx, dword [eax + 0x110]
mov esi, dword [eax + 0x12c]
mov dword [ebp - 0x2f4], ecx
mov dword [ebp - 0x290], ecx
mov ecx, dword [eax + 0x118]
mov dword [ebp - 0x304], ecx
mov dword [ebp - 0x2a4], ecx
mov ecx, dword [eax + 0x120]
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x2d0], ecx
mov ecx, dword [eax + 0x128]
mov dword [ebp - 0x2ec], edx
mov dword [ebp - 0x28c], edx
mov edx, dword [eax + 0x114]
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x2fc], edx
mov dword [ebp - 0x2ac], edx
mov edx, dword [eax + 0x11c]
mov dword [ebp - 0x30c], edx
mov dword [ebp - 0x2a8], edx
mov edx, dword [eax + 0x124]
mov dword [ebp - 0x334], edx
mov dword [ebp - 0x2d4], edx
mov edx, ecx
mov ecx, dword [eax + 0x130]
mov dword [ebp - 0x2e0], ecx
mov ecx, dword [eax + 0x134]
mov dword [ebp - 0x2e4], ecx
mov ecx, dword [ebp - 0x2e0]
mov dword [ebp - 0x2b8], ecx
mov ecx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2bc], ecx
mov ecx, dword [eax + 0x138]
mov dword [ebp - 0x2c0], ecx
mov ecx, dword [eax + 0x13c]
mov dword [ebp - 0x2c4], ecx
mov ecx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2b0], ecx
mov ecx, dword [ebp - 0x2c4]
mov dword [ebp - 0x2b4], ecx
mov ecx, dword [eax + 0x140]
mov eax, dword [eax + 0x144]
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x2cc], eax
xor eax, eax
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x2c8], ecx
mov dword [ebp - 0x29c], eax
nop dword [eax]
mov eax, dword [ebp - 0x2b0]
mov ecx, esi
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x34c], eax
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x308], eax
mov eax, edx
shld ecx, eax, 0x17
mov dword [ebp - 0x2f8], ebx
mov ebx, esi
shl eax, 0x17
mov dword [ebp - 0x2f0], edi
xor edi, edi
or edi, ecx
shr ebx, 9
mov ecx, dword [ebp - 0x294]
or ebx, eax
mov eax, dword [ebp - 0x2a0]
shrd eax, ecx, 0x12
mov dword [ebp - 0x32c], esi
mov esi, edx
shl esi, 0xe
shr ecx, 0x12
or esi, ecx
mov dword [ebp - 0x328], edx
mov ecx, dword [ebp - 0x294]
xor edi, esi
xor edx, edx
or edx, eax
mov eax, dword [ebp - 0x2a0]
xor ebx, edx
mov esi, eax
shrd eax, ecx, 0xe
xor edx, edx
shl esi, 0x12
or edx, eax
shr ecx, 0xe
mov eax, dword [ebp - 0x2bc]
or esi, ecx
and eax, dword [ebp - 0x294]
xor edi, esi
mov esi, dword [ebp - 0x2a0]
xor ebx, edx
mov edx, dword [ebp - 0x294]
not esi
and esi, dword [ebp - 0x2b0]
not edx
and edx, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2b8]
xor edx, eax
and ecx, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x29c]
xor esi, ecx
mov ecx, dword [ebp - 0x28c]
add ebx, esi
adc edi, edx
add ebx, dword [eax + 0x4240f8]
adc edi, dword [eax + 0x4240fc]
add ebx, dword [ebp + eax - 0x288]
adc edi, dword [ebp + eax - 0x284]
add ebx, dword [ebp - 0x2c8]
mov eax, dword [ebp - 0x298]
adc edi, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d8], ebx
mov ebx, eax
shrd eax, ecx, 0x1c
mov dword [ebp - 0x31c], edi
xor edi, edi
shl ebx, 4
shr ecx, 0x1c
or edi, eax
or ebx, ecx
mov ecx, dword [ebp - 0x28c]
xor edx, edx
mov eax, dword [ebp - 0x298]
mov esi, ecx
shld ecx, eax, 0x1e
shr esi, 2
shl eax, 0x1e
or edx, ecx
or esi, eax
mov ecx, dword [ebp - 0x28c]
mov eax, dword [ebp - 0x298]
xor edi, esi
xor ebx, edx
mov esi, ecx
shld ecx, eax, 0x19
xor edx, edx
shr esi, 7
shl eax, 0x19
or edx, ecx
or esi, eax
mov ecx, dword [ebp - 0x290]
mov eax, dword [ebp - 0x2ac]
xor ebx, edx
and eax, dword [ebp - 0x2a8]
xor edi, esi
mov edx, dword [ebp - 0x2ac]
xor edx, dword [ebp - 0x2a8]
and edx, dword [ebp - 0x28c]
mov esi, dword [ebp - 0x290]
xor edx, eax
xor esi, dword [ebp - 0x2a4]
and esi, dword [ebp - 0x298]
mov eax, dword [ebp - 0x2b0]
and ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2c8], eax
xor esi, ecx
mov eax, dword [ebp - 0x2b4]
add edi, esi
mov esi, dword [ebp - 0x2d4]
mov dword [ebp - 0x2cc], eax
adc ebx, edx
mov eax, dword [ebp - 0x2b8]
mov edx, dword [ebp - 0x2d0]
add edx, dword [ebp - 0x2d8]
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2bc]
adc esi, dword [ebp - 0x31c]
add edi, dword [ebp - 0x2d8]
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x2a0]
adc ebx, dword [ebp - 0x31c]
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x29c]
add eax, 8
mov dword [ebp - 0x2a0], edx
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x29c], eax
cmp eax, 0x280
jl 0x404e00
mov ecx, dword [ebp - 0x2dc]
add edi, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x2f0]
adc ebx, dword [ebp - 0x2ec]
add eax, dword [ebp - 0x2f4]
mov dword [ecx + 0x108], edi
mov edi, dword [ebp - 0x2f8]
adc edi, dword [ebp - 0x2fc]
mov dword [ecx + 0x10c], ebx
mov dword [ecx + 0x110], eax
mov eax, dword [ebp - 0x300]
add eax, dword [ebp - 0x304]
mov dword [ecx + 0x118], eax
mov eax, dword [ebp - 0x310]
mov ebx, dword [ebp - 0x348]
mov dword [ecx + 0x114], edi
mov edi, dword [ebp - 0x308]
adc edi, dword [ebp - 0x30c]
add eax, dword [ebp - 0x314]
mov dword [ecx + 0x11c], edi
mov edi, dword [ebp - 0x318]
adc edi, dword [ebp - 0x334]
add edx, dword [ebp - 0x320]
mov dword [ecx + 0x120], eax
adc esi, dword [ebp - 0x324]
mov eax, dword [ebp - 0x328]
add eax, dword [ebp - 0x2e0]
mov dword [ecx + 0x128], edx
mov edx, dword [ebp - 0x32c]
adc edx, dword [ebp - 0x2e4]
mov dword [ecx + 0x130], eax
mov eax, dword [ebp - 0x330]
add eax, dword [ebp - 0x2c0]
mov dword [ecx + 0x134], edx
mov edx, dword [ebp - 0x34c]
adc edx, dword [ebp - 0x2c4]
mov dword [ecx + 0x138], eax
mov eax, dword [ebp - 0x338]
add eax, dword [ebp - 0x33c]
mov dword [ecx + 0x13c], edx
mov edx, dword [ebp - 0x340]
adc edx, dword [ebp - 0x344]
sub dword [ebp + 0xc], 1
mov dword [ecx + 0x124], edi
mov dword [ecx + 0x12c], esi
mov dword [ecx + 0x140], eax
mov dword [ecx + 0x144], edx
jne 0x404b10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040597e
mov esp, ebp
pop ebp
ret 8