Function at 0x4109f0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov esi, edx
xor edi, edi
mov dword [ebp + 0x200], 0xe
mov eax, ebp
add esi, 2
lea esp, [esp]
movzx ebx, byte [esi]
xor edx, edx
mov dh, byte [esi - 2]
add edi, 1
add esi, 4
mov dl, byte [esi - 5]
shl edx, 8
or edx, ebx
movzx ebx, byte [esi - 3]
shl edx, 8
or edx, ebx
cmp edi, 8
mov dword [ebp + edi*4 - 4], edx
jl 0x410a10
lea ebx, [ecx + 0x2a04]
mov dword [esp + 0x10], 7
mov ebp, dword [eax + 0x1c]
mov edx, ebp
shr edx, 0x10
movzx edx, dl
mov esi, dword [ecx + edx*4 + 0x204]
shl esi, 8
mov edi, dword [eax + 0xc]
mov edx, ebp
shr edx, 8
movzx edx, dl
xor esi, dword [ecx + edx*4 + 0x204]
movzx edx, byte [eax + 0x1c]
shl esi, 8
xor esi, dword [ecx + edx*4 + 0x204]
mov edx, ebp
shr edx, 0x18
shl esi, 8
xor esi, dword [ecx + edx*4 + 0x204]
mov edx, dword [eax + 4]
xor esi, dword [ebx]
add ebx, 4
xor esi, dword [eax]
add eax, 0x20
xor edx, esi
mov dword [eax], esi
mov esi, dword [eax - 0x18]
xor esi, edx
mov dword [eax + 4], edx
xor edi, esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov edx, edi
shr edx, 0x18
mov esi, dword [ecx + edx*4 + 0x204]
mov edx, edi
shr edx, 0x10
movzx edx, dl
shl esi, 8
xor esi, dword [ecx + edx*4 + 0x204]
mov edx, edi
mov edi, dword [eax - 0xc]
shr edx, 8
movzx edx, dl
shl esi, 8
xor esi, dword [ecx + edx*4 + 0x204]
movzx edx, byte [eax + 0xc]
shl esi, 8
xor esi, dword [ecx + edx*4 + 0x204]
mov edx, dword [eax - 8]
xor esi, dword [eax - 0x10]
xor edi, esi
xor edx, edi
mov dword [eax + 0x18], edx
xor edx, ebp
sub dword [esp + 0x10], 1
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], edx
jne 0x410a46
lea edx, [ecx + 0x204]
mov edi, 0x40
lea ebx, [ebx]
mov esi, dword [edx]
mov ebx, dword [ecx + esi*4 + 0x1a04]
mov dword [edx + 0x2828], ebx
mov ebx, dword [ecx + esi*4 + 0x1e04]
mov dword [edx + 0x2c28], ebx
mov ebx, dword [ecx + esi*4 + 0x2204]
mov dword [edx + 0x3028], ebx
mov esi, dword [ecx + esi*4 + 0x2604]
mov dword [edx + 0x3428], esi
mov esi, dword [edx + 4]
mov ebx, dword [ecx + esi*4 + 0x1a04]
mov dword [edx + 0x282c], ebx
mov ebx, dword [ecx + esi*4 + 0x1e04]
mov dword [edx + 0x2c2c], ebx
mov ebx, dword [ecx + esi*4 + 0x2204]
mov dword [edx + 0x302c], ebx
mov esi, dword [ecx + esi*4 + 0x2604]
mov dword [edx + 0x342c], esi
mov esi, dword [edx + 8]
mov ebx, dword [ecx + esi*4 + 0x1a04]
mov dword [edx + 0x2830], ebx
mov ebx, dword [ecx + esi*4 + 0x1e04]
mov dword [edx + 0x2c30], ebx
mov ebx, dword [ecx + esi*4 + 0x2204]
mov dword [edx + 0x3030], ebx
mov esi, dword [ecx + esi*4 + 0x2604]
mov dword [edx + 0x3430], esi
mov esi, dword [edx + 0xc]
mov ebx, dword [ecx + esi*4 + 0x1a04]
mov dword [edx + 0x2834], ebx
mov ebx, dword [ecx + esi*4 + 0x1e04]
mov dword [edx + 0x2c34], ebx
mov ebx, dword [ecx + esi*4 + 0x2204]
mov dword [edx + 0x3034], ebx
mov esi, dword [ecx + esi*4 + 0x2604]
mov dword [edx + 0x3434], esi
add edx, 0x10
sub edi, 1
jne 0x410b20
mov edi, dword [eax]
mov edx, dword [esp + 0x18]
mov dword [edx + 0x100], edi
mov edi, dword [eax + 4]
add eax, 4
lea esi, [edx + 0x100]
mov dword [esi + 4], edi
mov edi, dword [eax + 4]
add esi, 4
add eax, 4
add esi, 4
mov dword [esi], edi
mov edi, dword [eax + 4]
add eax, 4
add esi, 4
mov dword [esi], edi
mov ebp, 1
add esi, 4
add eax, 4
cmp dword [edx + 0x200], ebp
jle 0x410d5b
mov edi, dword [eax - 0x20]
mov edx, edi
shr edx, 8
movzx edx, dl
mov edx, dword [ecx + edx*4 + 0x322c]
sub eax, 0x20
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
xor edx, dword [ecx + ebx*4 + 0x2e2c]
shr edi, 0x18
xor edx, dword [ecx + edi*4 + 0x2a2c]
movzx edi, byte [eax]
xor edx, dword [ecx + edi*4 + 0x362c]
add eax, 4
mov dword [esi], edx
mov edi, dword [eax]
mov edx, edi
shr edx, 8
movzx edx, dl
mov edx, dword [ecx + edx*4 + 0x322c]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
xor edx, dword [ecx + ebx*4 + 0x2e2c]
shr edi, 0x18
xor edx, dword [ecx + edi*4 + 0x2a2c]
movzx edi, byte [eax]
xor edx, dword [ecx + edi*4 + 0x362c]
add esi, 4
mov dword [esi], edx
mov edi, dword [eax + 4]
add eax, 4
mov edx, edi
shr edx, 8
movzx edx, dl
mov edx, dword [ecx + edx*4 + 0x322c]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
xor edx, dword [ecx + ebx*4 + 0x2e2c]
shr edi, 0x18
xor edx, dword [ecx + edi*4 + 0x2a2c]
movzx edi, byte [eax]
xor edx, dword [ecx + edi*4 + 0x362c]
add esi, 4
mov dword [esi], edx
mov edi, dword [eax + 4]
add eax, 4
mov edx, edi
shr edx, 8
movzx edx, dl
mov edx, dword [ecx + edx*4 + 0x322c]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
xor edx, dword [ecx + ebx*4 + 0x2e2c]
shr edi, 0x18
xor edx, dword [ecx + edi*4 + 0x2a2c]
movzx edi, byte [eax]
xor edx, dword [ecx + edi*4 + 0x362c]
add esi, 4
mov dword [esi], edx
mov edx, dword [esp + 0x18]
add ebp, 1
add esi, 4
add eax, 4
cmp ebp, dword [edx + 0x200]
jl 0x410c52
mov ecx, dword [eax - 0x20]
mov dword [esi], ecx
sub eax, 0x20
mov edx, dword [eax + 4]
add eax, 4
add esi, 4
mov dword [esi], edx
mov ecx, dword [eax + 4]
add eax, 4
add esi, 4
mov dword [esi], ecx
mov edx, dword [eax + 4]
pop edi
mov dword [esi + 4], edx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4