Function at 0x4015f7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0x10]
movzx edx, byte [eax + 2]
push ebx
push esi
movzx esi, byte [eax + 3]
shl esi, 8
or esi, edx
movzx edx, byte [eax + 1]
push edi
movzx edi, byte [eax + 6]
movzx ebx, byte [eax + 0xa]
shl esi, 8
or esi, edx
movzx edx, byte [eax]
shl esi, 8
or esi, edx
movzx edx, byte [eax + 7]
xor esi, dword [ecx]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 5]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 4]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xb]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 9]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 8]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 0xe]
add ecx, 4
xor edx, dword [ecx]
add ecx, 4
xor edi, dword [ecx]
add ecx, 4
mov dword [ebp + 0x10], edi
movzx edi, byte [eax + 0xf]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 0xd]
movzx eax, byte [eax + 0xc]
shl edi, 8
or edi, ebx
shl edi, 8
or edi, eax
xor edi, dword [ecx]
mov eax, dword [ebp + 8]
add ecx, 4
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], edi
jne 0x401ac0
mov ebx, dword [eax]
sar ebx, 1
dec ebx
mov dword [ebp - 8], ebx
mov eax, 0xff
test ebx, ebx
jle 0x4018b0
mov ebx, dword [ebp + 0x10]
shr ebx, 0x10
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4ecb68]
xor edi, dword [ebx*4 + 0x4ec768]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ec368]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x4ecf68]
mov ebx, esi
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 4]
and ebx, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ec768]
xor edi, dword [ebx*4 + 0x4ecb68]
mov ebx, dword [ebp + 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ec368]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x4ecf68]
add ecx, 4
xor edi, dword [ecx]
mov ebx, esi
shr ebx, 0x10
and ebx, eax
mov dword [ebp + 8], edi
mov edi, edx
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4ecb68]
xor edi, dword [ebx*4 + 0x4ec768]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ec368]
mov ebx, dword [ebp + 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x4ecf68]
mov ebx, dword [ebp + 0x10]
shr ebx, 8
and ebx, eax
shr edx, 0x10
and edx, eax
mov dword [ebp + 0x10], edx
mov edx, dword [ebx*4 + 0x4ecb68]
mov ebx, dword [ebp + 0x10]
xor edx, dword [ebx*4 + 0x4ec768]
shr esi, 0x18
xor edx, dword [esi*4 + 0x4ec368]
mov esi, dword [ebp - 4]
and esi, eax
xor edx, dword [esi*4 + 0x4ecf68]
add ecx, 4
xor edi, dword [ecx]
add ecx, 4
xor edx, dword [ecx]
mov ebx, edi
shr ebx, 0x10
mov esi, edx
shr esi, 8
and esi, eax
mov esi, dword [esi*4 + 0x4ecb68]
and ebx, eax
xor esi, dword [ebx*4 + 0x4ec768]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x4ec368]
mov ebx, dword [ebp + 0xc]
and ebx, eax
add ecx, 4
xor esi, dword [ebx*4 + 0x4ecf68]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 0xc]
shr ebx, 8
and ebx, eax
shr edi, 0x18
xor esi, dword [ecx]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x4ec768]
xor edx, dword [ebx*4 + 0x4ecb68]
mov ebx, dword [ebp + 0xc]
xor edx, dword [edi*4 + 0x4ec368]
mov edi, dword [ebp + 8]
and edi, eax
xor edx, dword [edi*4 + 0x4ecf68]
mov edi, dword [ebp + 8]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4ecb68]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x4ec768]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ec368]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edi, dword [ebx*4 + 0x4ecf68]
mov ebx, dword [ebp - 0xc]
add ecx, 4
xor edx, dword [ecx]
add ecx, 4
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 8]
shr edi, 0x10
and ebx, eax
mov ebx, dword [ebx*4 + 0x4ecb68]
and edi, eax
xor ebx, dword [edi*4 + 0x4ec768]
mov edi, dword [ebp + 0xc]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x4ec368]
mov edi, dword [ebp - 4]
and edi, eax
xor ebx, dword [edi*4 + 0x4ecf68]
add ecx, 4
xor ebx, dword [ecx]
add ecx, 4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
mov edi, ebx
mov dword [ebp - 4], edi
jg 0x4016c0
mov ebx, dword [ebp + 0x10]
shr ebx, 0x10
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4ecb68]
xor edi, dword [ebx*4 + 0x4ec768]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ec368]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x4ecf68]
mov ebx, esi
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 4]
and ebx, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ec768]
xor edi, dword [ebx*4 + 0x4ecb68]
mov ebx, dword [ebp + 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ec368]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x4ecf68]
add ecx, 4
xor edi, dword [ecx]
mov ebx, esi
mov dword [ebp + 8], edi
mov edi, edx
shr ebx, 0x10
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4ecb68]
xor edi, dword [ebx*4 + 0x4ec768]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ec368]
mov ebx, dword [ebp + 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x4ecf68]
mov ebx, dword [ebp + 0x10]
shr edx, 0x10
and edx, eax
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x4ecb68]
xor ebx, dword [edx*4 + 0x4ec768]
mov edx, dword [ebp - 4]
and edx, eax
shr esi, 0x18
xor ebx, dword [esi*4 + 0x4ec368]
add ecx, 4
xor ebx, dword [edx*4 + 0x4ecf68]
xor edi, dword [ecx]
add ecx, 4
xor ebx, dword [ecx]
mov edx, edi
shr edx, 0x10
and edx, eax
movzx esi, byte [edx + 0x4ed368]
mov edx, dword [ebp + 8]
shr edx, 0x18
movzx edx, byte [edx + 0x4ed368]
shl edx, 8
xor esi, edx
mov edx, ebx
shr edx, 8
and edx, eax
movzx edx, byte [edx + 0x4ed368]
shl esi, 8
xor esi, edx
mov edx, dword [ebp + 0xc]
add ecx, 4
shl esi, 8
and edx, eax
movzx edx, byte [edx + 0x4ed368]
xor esi, edx
xor esi, dword [ecx]
mov edx, ebx
shr edx, 0x10
and edx, eax
mov dword [ebp - 0xc], esi
movzx esi, byte [edx + 0x4ed368]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + 0x4ed368]
shl edx, 8
xor esi, edx
mov edx, dword [ebp + 0xc]
shr edx, 8
and edx, eax
movzx edx, byte [edx + 0x4ed368]
shl esi, 8
xor esi, edx
mov edx, dword [ebp + 8]
and edx, eax
movzx edx, byte [edx + 0x4ed368]
shl esi, 8
xor esi, edx
mov edx, dword [ebp + 0xc]
shr edx, 0x10
and edx, eax
add ecx, 4
xor esi, dword [ecx]
add ecx, 4
mov dword [ebp - 8], esi
movzx esi, byte [edx + 0x4ed368]
mov edx, ebx
shr edx, 0x18
movzx edx, byte [edx + 0x4ed368]
shl edx, 8
xor esi, edx
mov edx, dword [ebp + 8]
shr edx, 8
and edx, eax
movzx edx, byte [edx + 0x4ed368]
shl esi, 8
xor esi, edx
mov edx, edi
and edx, eax
movzx edx, byte [edx + 0x4ed368]
shl esi, 8
xor esi, edx
xor esi, dword [ecx]
mov edx, dword [ebp + 8]
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 0xc]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x4ed368]
shr esi, 0x18
movzx esi, byte [esi + 0x4ed368]
shl esi, 8
xor edx, esi
shr edi, 8
and edi, eax
movzx esi, byte [edi + 0x4ed368]
shl edx, 8
and ebx, eax
movzx eax, byte [ebx + 0x4ed368]
xor edx, esi
shl edx, 8
xor edx, eax
xor edx, dword [ecx + 4]
jmp 0x401eda
mov edi, dword [eax]
sar edi, 1
dec edi
mov dword [ebp - 8], edi
mov eax, 0xff
test edi, edi
jle 0x401cc7
mov edi, dword [ebp + 0x10]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ed868]
mov ebx, edx
shr ebx, 8
and ebx, eax
xor edi, dword [ebx*4 + 0x4edc68]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ed468]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x4ee068]
mov ebx, dword [ebp + 0x10]
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 4]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ed868]
and ebx, eax
xor edi, dword [ebx*4 + 0x4edc68]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ed468]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x4ee068]
add ecx, 4
xor edi, dword [ecx]
mov ebx, esi
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
shr edi, 8
and edi, eax
shr ebx, 0x10
and ebx, eax
mov dword [ebp - 0xc], ebx
mov ebx, dword [edi*4 + 0x4edc68]
mov edi, dword [ebp - 0xc]
xor ebx, dword [edi*4 + 0x4ed868]
mov edi, edx
shr edi, 0x18
xor ebx, dword [edi*4 + 0x4ed468]
mov edi, dword [ebp + 0x10]
shr edx, 0x10
and edx, eax
and edi, eax
xor ebx, dword [edi*4 + 0x4ee068]
mov edi, dword [edx*4 + 0x4ed868]
mov edx, dword [ebp + 0x10]
shr esi, 8
and esi, eax
xor edi, dword [esi*4 + 0x4edc68]
mov esi, dword [ebp + 8]
shr edx, 0x18
xor edi, dword [edx*4 + 0x4ed468]
mov edx, dword [ebp - 4]
and edx, eax
xor edi, dword [edx*4 + 0x4ee068]
add ecx, 4
xor ebx, dword [ecx]
shr esi, 8
mov edx, ebx
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x4ed868]
add ecx, 4
xor edi, dword [ecx]
and esi, eax
xor edx, dword [esi*4 + 0x4edc68]
mov esi, edi
shr esi, 0x18
xor edx, dword [esi*4 + 0x4ed468]
mov esi, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
and esi, eax
xor edx, dword [esi*4 + 0x4ee068]
shr ebx, 8
xor edx, dword [ecx]
and ebx, eax
mov esi, edx
mov edx, edi
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x4ed868]
xor edx, dword [ebx*4 + 0x4edc68]
mov ebx, dword [ebp + 0xc]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4ed468]
mov ebx, dword [ebp + 8]
and ebx, eax
xor edx, dword [ebx*4 + 0x4ee068]
mov ebx, dword [ebp + 0xc]
shr edi, 8
shr ebx, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4edc68]
and ebx, eax
xor edi, dword [ebx*4 + 0x4ed868]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ed468]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edi, dword [ebx*4 + 0x4ee068]
mov ebx, dword [ebp + 8]
add ecx, 4
xor edx, dword [ecx]
add ecx, 4
xor edi, dword [ecx]
shr ebx, 0x10
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 0xc]
and ebx, eax
mov ebx, dword [ebx*4 + 0x4ed868]
shr edi, 8
and edi, eax
xor ebx, dword [edi*4 + 0x4edc68]
mov edi, dword [ebp - 0xc]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x4ed468]
mov edi, dword [ebp - 4]
and edi, eax
xor ebx, dword [edi*4 + 0x4ee068]
add ecx, 4
xor ebx, dword [ecx]
add ecx, 4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ebx
jg 0x401ad5
mov edi, dword [ebp + 0x10]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ed868]
mov ebx, edx
shr ebx, 8
and ebx, eax
xor edi, dword [ebx*4 + 0x4edc68]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ed468]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x4ee068]
mov ebx, dword [ebp + 0x10]
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 4]
and ebx, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ed868]
xor edi, dword [ebx*4 + 0x4edc68]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ed468]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x4ee068]
mov ebx, esi
add ecx, 4
xor edi, dword [ecx]
shr ebx, 0x10
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4edc68]
xor edi, dword [ebx*4 + 0x4ed868]
shr esi, 8
mov ebx, edx
and esi, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ed468]
mov ebx, dword [ebp + 0x10]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x4ed868]
xor edx, dword [esi*4 + 0x4edc68]
mov esi, dword [ebp + 0x10]
shr esi, 0x18
xor edx, dword [esi*4 + 0x4ed468]
mov esi, dword [ebp - 4]
and ebx, eax
xor edi, dword [ebx*4 + 0x4ee068]
and esi, eax
xor edx, dword [esi*4 + 0x4ee068]
add ecx, 4
xor edi, dword [ecx]
add ecx, 4
xor edx, dword [ecx]
mov esi, edi
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + 0x4ee468]
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x4ee468]
shl ebx, 8
xor esi, ebx
mov ebx, dword [ebp + 8]
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x4ee468]
shl esi, 8
xor esi, ebx
mov ebx, dword [ebp + 0xc]
add ecx, 4
shl esi, 8
and ebx, eax
movzx ebx, byte [ebx + 0x4ee468]
xor esi, ebx
xor esi, dword [ecx]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
shr ebx, 0x18
movzx ebx, byte [ebx + 0x4ee468]
shl ebx, 8
mov esi, edx
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + 0x4ee468]
xor esi, ebx
shl esi, 8
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x4ee468]
xor esi, ebx
mov ebx, dword [ebp + 8]
shl esi, 8
and ebx, eax
movzx ebx, byte [ebx + 0x4ee468]
xor esi, ebx
mov ebx, dword [ebp + 8]
add ecx, 4
xor esi, dword [ecx]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x4ee468]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + 0x4ee468]
shl ebx, 8
xor esi, ebx
shl esi, 8
mov ebx, edx
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x4ee468]
xor esi, ebx
mov ebx, edi
shl esi, 8
and ebx, eax
movzx ebx, byte [ebx + 0x4ee468]
xor esi, ebx
add ecx, 4
xor esi, dword [ecx]
shr edi, 0x18
movzx edi, byte [edi + 0x4ee468]
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 8]
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + 0x4ee468]
shl edi, 8
xor esi, edi
mov edi, dword [ebp + 0xc]
shr edi, 8
and edi, eax
movzx edi, byte [edi + 0x4ee468]
shl esi, 8
and edx, eax
movzx eax, byte [edx + 0x4ee468]
xor esi, edi
shl esi, 8
xor esi, eax
xor esi, dword [ecx + 4]
mov dword [ebp - 4], esi
mov edx, esi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
mov ebx, ecx
mov byte [eax], cl
shr ecx, 0x18
shr ebx, 0x10
mov byte [eax + 3], cl
mov ecx, dword [ebp - 8]
mov byte [eax + 2], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 5], bl
mov ebx, ecx
mov byte [eax + 4], cl
shr ecx, 0x18
shr ebx, 0x10
mov byte [eax + 7], cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + 6], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 8], cl
mov byte [eax + 9], bl
mov ebx, ecx
shr ecx, 0x18
mov byte [eax + 0xb], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 0xd], cl
mov ecx, edx
shr ebx, 0x10
pop edi
shr ecx, 0x10
mov byte [eax + 0xc], dl
shr edx, 0x18
pop esi
mov byte [eax + 0xa], bl
mov byte [eax + 0xe], cl
mov byte [eax + 0xf], dl
pop ebx
leave
ret