Function at 0x418210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2dc
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [esp + 0x50], ecx
jle 0x4186d7
mov ebx, dword [ebp + 8]
add ebx, 2
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 [esp + edi*8 + 0x6c], esi
mov dword [esp + edi*8 + 0x68], ecx
inc edi
cmp edi, 0x10
jl 0x418235
mov dword [esp + 0x64], ebx
lea eax, [esp + 0xd8]
mov dword [esp + 0x24], 0x40
mov ebx, dword [eax + 4]
xor esi, esi
mov ecx, dword [eax]
mov edx, ebx
mov edi, ecx
shrd ecx, edx, 0x13
shl edi, 0xd
or esi, ecx
shr edx, 0x13
mov ecx, dword [eax]
or edi, edx
mov edx, ebx
mov dword [esp + 0xc], edi
shld edx, ecx, 3
mov edi, ebx
mov dword [esp + 0x10], esi
shl ecx, 3
xor esi, esi
or esi, edx
shr edi, 0x1d
mov edx, dword [esp + 0x10]
or edi, ecx
mov ecx, dword [eax]
xor edx, edi
mov edi, dword [esp + 0xc]
shrd ecx, ebx, 6
xor edi, esi
xor edx, ecx
shr ebx, 6
xor edi, ebx
mov dword [esp + 0x10], edx
mov edx, dword [eax - 0x64]
xor ebx, ebx
mov dword [esp + 0xc], edi
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 [esp + 0x34], esi
xor esi, esi
or esi, ecx
shr edx, 1
mov ecx, dword [esp + 0x34]
xor ebx, esi
mov esi, dword [eax - 0x68]
or edi, edx
mov edx, dword [eax - 0x64]
xor ecx, edi
shrd esi, edx, 7
shr edx, 7
xor ebx, esi
xor ecx, edx
mov edx, dword [esp + 0x10]
add edx, ebx
mov ebx, dword [esp + 0xc]
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 [esp + 0x24], 1
mov dword [eax + 0xc], ebx
jne 0x4182d5
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x108]
mov edx, dword [eax + 0x10c]
mov esi, dword [eax + 0x12c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x110]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x114]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x118]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x11c]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x120]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x124]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x130]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x134]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x138]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x13c]
mov dword [esp + 0x60], edx
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x128]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x140]
mov eax, dword [eax + 0x144]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], eax
mov ecx, esi
mov ebx, esi
mov eax, edx
shr ebx, 9
shld ecx, eax, 0x17
xor edi, edi
mov esi, edx
or edi, ecx
shl eax, 0x17
mov ecx, dword [esp + 0x14]
or ebx, eax
mov eax, dword [esp + 0x20]
xor edx, edx
shrd eax, ecx, 0x12
shl esi, 0xe
or edx, eax
shr ecx, 0x12
mov eax, dword [esp + 0x20]
or esi, ecx
mov ecx, dword [esp + 0x14]
xor edi, esi
xor ebx, edx
mov esi, eax
shrd eax, ecx, 0xe
shl esi, 0x12
xor edx, edx
or edx, eax
shr ecx, 0xe
mov eax, dword [esp + 0x40]
or esi, ecx
and eax, dword [esp + 0x14]
xor edi, esi
mov esi, dword [esp + 0x20]
xor ebx, edx
mov edx, dword [esp + 0x14]
not esi
and esi, dword [esp + 0xc]
not edx
and edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
xor edx, eax
and ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
xor esi, ecx
mov ecx, dword [esp + 0x1c]
add ebx, esi
adc edi, edx
add ebx, dword [eax + 0x4636e8]
adc edi, dword [eax + 0x4636ec]
add ebx, dword [esp + eax + 0x68]
adc edi, dword [esp + eax + 0x6c]
add ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
adc edi, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x54], ebx
mov ebx, eax
shrd eax, ecx, 0x1c
mov dword [esp + 0x58], edi
xor edi, edi
shr ecx, 0x1c
or edi, eax
mov eax, dword [esp + 0x18]
shl ebx, 4
or ebx, ecx
mov ecx, dword [esp + 0x1c]
mov esi, ecx
shld ecx, eax, 0x1e
shr esi, 2
shl eax, 0x1e
or edx, ecx
mov ecx, dword [esp + 0x1c]
or esi, eax
mov eax, dword [esp + 0x18]
xor edi, esi
mov esi, ecx
xor ebx, edx
shld ecx, eax, 0x19
shr esi, 7
xor edx, edx
shl eax, 0x19
or esi, eax
or edx, ecx
mov ecx, dword [esp + 0x38]
xor ebx, edx
mov edx, dword [esp + 0x28]
xor edi, esi
xor edx, dword [esp + 0x30]
and edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
xor esi, dword [esp + 0x2c]
and esi, dword [esp + 0x18]
and ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
xor esi, ecx
and eax, dword [esp + 0x30]
xor edx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
add edi, esi
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x4c]
adc ebx, edx
mov edx, dword [esp + 0x48]
add edx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
adc esi, dword [esp + 0x58]
add edi, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
adc ebx, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], edx
add eax, 8
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], eax
cmp eax, 0x280
jl 0x418457
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
add eax, edi
mov dword [ecx + 0x108], eax
adc esi, ebx
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x10c], esi
add dword [ecx + 0x110], eax
mov eax, dword [esp + 0x28]
adc dword [ecx + 0x114], eax
mov eax, dword [esp + 0x2c]
add dword [ecx + 0x118], eax
mov eax, dword [esp + 0x30]
adc dword [ecx + 0x11c], eax
mov eax, dword [esp + 0x48]
add dword [ecx + 0x120], eax
mov esi, dword [esp + 0x4c]
adc dword [ecx + 0x124], esi
add dword [ecx + 0x128], edx
mov eax, dword [esp + 0x14]
adc dword [ecx + 0x12c], eax
mov eax, dword [esp + 0x3c]
add dword [ecx + 0x130], eax
mov eax, dword [esp + 0x40]
adc dword [ecx + 0x134], eax
mov eax, dword [esp + 0xc]
add dword [ecx + 0x138], eax
mov eax, dword [esp + 0x10]
adc dword [ecx + 0x13c], eax
mov eax, dword [esp + 0x34]
add dword [ecx + 0x140], eax
mov eax, dword [esp + 0x24]
adc dword [ecx + 0x144], eax
sub dword [ebp + 0xc], 1
mov ebx, dword [esp + 0x64]
jne 0x418233
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8