Function at 0x10118280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 0x14]
shr eax, 3
push esi
mov esi, dword [edx]
test eax, eax
push edi
mov edi, dword [edx + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
je 0x101184c7
nop word [eax + eax]
lea ecx, [esi + 1]
movzx esi, cl
mov dword [ebp - 0xc], esi
mov edx, dword [edx + esi*4 + 8]
mov dword [ebp - 4], edx
lea ecx, [edx + edi]
mov edx, dword [ebp + 8]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [edx + esi*4 + 8], ecx
mov edx, dword [ebp - 4]
add ecx, edx
mov esi, dword [ebp + 8]
movzx ecx, cl
mov dword [esi + edi*4 + 8], edx
mov edx, esi
movzx ecx, byte [edx + ecx*4 + 8]
xor cl, byte [eax]
mov byte [ebx], cl
mov ecx, dword [ebp - 0xc]
inc ecx
movzx esi, cl
mov dword [ebp - 4], esi
mov edx, dword [edx + esi*4 + 8]
mov dword [ebp - 0xc], edx
lea ecx, [edx + edi]
mov edx, dword [ebp + 8]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [edx + esi*4 + 8], ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
add ecx, edx
movzx ecx, cl
mov dword [esi + edi*4 + 8], edx
mov edx, esi
movzx ecx, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 1]
mov byte [ebx + 1], cl
mov ecx, dword [ebp - 4]
inc ecx
movzx esi, cl
mov dword [ebp - 4], esi
mov edx, dword [edx + esi*4 + 8]
mov dword [ebp - 0xc], edx
lea ecx, [edx + edi]
mov edx, dword [ebp + 8]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [edx + esi*4 + 8], ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
add ecx, edx
movzx ecx, cl
mov dword [esi + edi*4 + 8], edx
mov edx, esi
movzx ecx, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 2]
mov byte [ebx + 2], cl
mov ecx, dword [ebp - 4]
inc ecx
movzx esi, cl
mov dword [ebp - 4], esi
mov edx, dword [edx + esi*4 + 8]
mov dword [ebp - 0xc], edx
lea ecx, [edx + edi]
mov edx, dword [ebp + 8]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [edx + esi*4 + 8], ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
add ecx, edx
movzx ecx, cl
mov dword [esi + edi*4 + 8], edx
mov edx, esi
movzx ecx, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 3]
mov byte [ebx + 3], cl
mov ecx, dword [ebp - 4]
inc ecx
movzx esi, cl
mov dword [ebp - 4], esi
mov edx, dword [edx + esi*4 + 8]
mov dword [ebp - 0xc], edx
lea ecx, [edx + edi]
mov edx, dword [ebp + 8]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [edx + esi*4 + 8], ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
add ecx, edx
movzx ecx, cl
mov dword [esi + edi*4 + 8], edx
mov edx, esi
movzx ecx, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 4]
mov byte [ebx + 4], cl
mov ecx, dword [ebp - 4]
inc ecx
movzx esi, cl
mov dword [ebp - 4], esi
mov edx, dword [edx + esi*4 + 8]
mov dword [ebp - 0xc], edx
lea ecx, [edx + edi]
mov edx, dword [ebp + 8]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [edx + esi*4 + 8], ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
add ecx, edx
movzx ecx, cl
mov dword [esi + edi*4 + 8], edx
mov edx, esi
movzx ecx, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 5]
mov byte [ebx + 5], cl
mov ecx, dword [ebp - 4]
inc ecx
movzx esi, cl
mov dword [ebp - 0x10], esi
mov edx, dword [edx + esi*4 + 8]
mov dword [ebp - 0xc], edx
lea ecx, [edx + edi]
mov edx, dword [ebp + 8]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [edx + esi*4 + 8], ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
add ecx, edx
movzx ecx, cl
mov dword [esi + edi*4 + 8], edx
mov edx, esi
movzx ecx, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 6]
mov byte [ebx + 6], cl
add ebx, 7
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
movzx esi, cl
mov edx, dword [edx + esi*4 + 8]
lea ecx, [edx + edi]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [ebx + esi*4 + 8], ecx
add ecx, edx
mov dword [ebx + edi*4 + 8], edx
mov edx, ebx
movzx ecx, cl
mov ebx, dword [ebp - 4]
movzx ecx, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 7]
add eax, 8
mov byte [ebx], cl
inc ebx
sub dword [ebp - 8], 1
mov dword [ebp - 4], ebx
jne 0x101182b0
mov ecx, dword [ebp + 0xc]
jmp 0x101184ca
mov dword [ebp - 4], ebx
and ecx, 7
mov dword [ebp + 0xc], ecx
je 0x101186ff
mov ebx, dword [ebp + 8]
lea ecx, [esi + 1]
movzx esi, cl
mov edx, dword [edx + esi*4 + 8]
lea ecx, [edx + edi]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [ebx + esi*4 + 8], ecx
add ecx, edx
mov dword [ebx + edi*4 + 8], edx
mov edx, ebx
mov ebx, dword [ebp - 4]
movzx ecx, cl
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [eax]
inc eax
mov byte [ebx], cl
inc ebx
sub dword [ebp + 0xc], 1
mov dword [ebp - 4], ebx
je 0x10118702
nop dword [eax]
mov ebx, dword [ebp + 8]
lea ecx, [esi + 1]
movzx esi, cl
mov edx, dword [edx + esi*4 + 8]
lea ecx, [edx + edi]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [ebx + esi*4 + 8], ecx
add ecx, edx
mov dword [ebx + edi*4 + 8], edx
mov edx, ebx
mov ebx, dword [ebp - 4]
movzx ecx, cl
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [eax]
mov byte [ebx], cl
inc ebx
sub dword [ebp + 0xc], 1
mov dword [ebp - 4], ebx
je 0x10118702
mov ebx, dword [ebp + 8]
lea ecx, [esi + 1]
movzx esi, cl
mov edx, dword [edx + esi*4 + 8]
lea ecx, [edx + edi]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [ebx + esi*4 + 8], ecx
add ecx, edx
mov dword [ebx + edi*4 + 8], edx
mov edx, ebx
mov ebx, dword [ebp - 4]
movzx ecx, cl
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 1]
mov byte [ebx], cl
inc ebx
sub dword [ebp + 0xc], 1
mov dword [ebp - 4], ebx
je 0x10118702
mov ebx, dword [ebp + 8]
lea ecx, [esi + 1]
movzx esi, cl
mov edx, dword [edx + esi*4 + 8]
lea ecx, [edx + edi]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [ebx + esi*4 + 8], ecx
add ecx, edx
mov dword [ebx + edi*4 + 8], edx
mov edx, ebx
mov ebx, dword [ebp - 4]
movzx ecx, cl
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 2]
mov byte [ebx], cl
inc ebx
sub dword [ebp + 0xc], 1
mov dword [ebp - 4], ebx
je 0x10118702
mov ebx, dword [ebp + 8]
lea ecx, [esi + 1]
movzx esi, cl
mov edx, dword [edx + esi*4 + 8]
lea ecx, [edx + edi]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [ebx + esi*4 + 8], ecx
add ecx, edx
mov dword [ebx + edi*4 + 8], edx
mov edx, ebx
mov ebx, dword [ebp - 4]
movzx ecx, cl
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 3]
mov byte [ebx], cl
inc ebx
sub dword [ebp + 0xc], 1
mov dword [ebp - 4], ebx
je 0x10118702
mov ebx, dword [ebp + 8]
lea ecx, [esi + 1]
movzx esi, cl
mov edx, dword [edx + esi*4 + 8]
lea ecx, [edx + edi]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [ebx + esi*4 + 8], ecx
add ecx, edx
mov dword [ebx + edi*4 + 8], edx
mov edx, ebx
mov ebx, dword [ebp - 4]
movzx ecx, cl
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 4]
mov byte [ebx], cl
inc ebx
sub dword [ebp + 0xc], 1
mov dword [ebp - 4], ebx
je 0x10118702
mov ebx, dword [ebp + 8]
lea ecx, [esi + 1]
movzx esi, cl
mov edx, dword [edx + esi*4 + 8]
lea ecx, [edx + edi]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [ebx + esi*4 + 8], ecx
add ecx, edx
mov dword [ebx + edi*4 + 8], edx
mov edx, ebx
mov ebx, dword [ebp - 4]
movzx ecx, cl
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 5]
mov byte [ebx], cl
inc ebx
sub dword [ebp + 0xc], 1
mov dword [ebp - 4], ebx
je 0x10118702
mov ebx, dword [ebp + 8]
lea ecx, [esi + 1]
movzx esi, cl
mov edx, dword [edx + esi*4 + 8]
lea ecx, [edx + edi]
movzx edi, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4 + 8]
mov dword [ebx + esi*4 + 8], ecx
add ecx, edx
mov dword [ebx + edi*4 + 8], edx
mov edx, ebx
mov ebx, dword [ebp - 4]
movzx ecx, cl
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [eax + 6]
add eax, 7
mov byte [ebx], cl
inc ebx
sub dword [ebp + 0xc], 1
mov dword [ebp - 4], ebx
jne 0x10118520
mov dword [edx + 4], edi
pop edi
mov dword [edx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov dword [edx + 4], edi
pop edi
mov dword [edx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret