Function at 0x1023c390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
mov ecx, dword [ebx + 8]
push edi
mov edi, dword [ebp + 0x18]
cmp esi, edi
jne 0x1023c462
test ecx, ecx
jne 0x1023c3f2
push edi
push dword [ebx + 4]
push dword [ebx]
call sub.MSVCR110.dll_memcpy
push dword [ebx]
push dword [ebp + 0xc]
call dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
push edi
push esi
push dword [ebx + 4]
call sub.MSVCR110.dll_memcpy
mov ecx, dword [ebx]
add esp, 0x20
test edi, edi
jle 0x1023c53e
sub ecx, esi
mov edi, edi
mov al, byte [ecx + esi]
xor byte [esi], al
lea esi, [esi + 1]
dec edi
jne 0x1023c3e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
mov eax, edi
sub eax, ecx
add edx, ecx
mov dword [ebp + 0x1c], eax
test eax, eax
jle 0x1023c413
mov ecx, dword [ebp + 0x14]
sub edx, ecx
mov esi, eax
mov al, byte [edx + ecx]
xor byte [ecx], al
lea ecx, [ecx + 1]
dec esi
jne 0x1023c408
push edi
push dword [ebx + 4]
push dword [ebx]
call sub.MSVCR110.dll_memcpy
push dword [ebx]
push dword [ebp + 0xc]
call dword [ebp + 0x10]
push dword [ebx + 8]
mov eax, dword [ebx + 4]
add eax, dword [ebp + 0x1c]
push dword [ebp + 0x14]
push eax
call sub.MSVCR110.dll_memcpy
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebx + 8]
add ecx, dword [ebp + 0x1c]
mov esi, dword [ebx]
add esp, 0x20
test edx, edx
jle 0x1023c53e
sub esi, ecx
mov al, byte [esi + ecx]
xor byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x1023c450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x1023c4ab
push edi
push dword [ebx + 4]
push dword [ebx]
call sub.MSVCR110.dll_memcpy
push dword [ebx]
push dword [ebp + 0xc]
call dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push esi
push dword [ebx + 4]
call sub.MSVCR110.dll_memcpy
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebx]
add esp, 0x20
test ecx, ecx
jle 0x1023c4a1
sub edi, esi
mov edx, ecx
mov al, byte [edi + esi]
xor byte [esi], al
lea esi, [esi + 1]
dec edx
jne 0x1023c496
pop edi
pop esi
mov dword [ebx + 8], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
sub eax, ecx
cmp eax, esi
mov edx, esi
cmovl edx, eax
mov eax, dword [ebx]
add eax, ecx
mov dword [ebp + 0x1c], edx
test edx, edx
jle 0x1023c4d9
mov ecx, dword [ebp + 0x14]
mov edi, eax
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x1023c4c8
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebx + 8]
mov ecx, dword [ebp + 0x14]
add eax, dword [ebx + 4]
push edx
push ecx
push eax
call sub.MSVCR110.dll_memcpy
mov eax, dword [ebp + 0x1c]
add dword [ebx + 8], eax
add esp, 0xc
cmp eax, esi
jge 0x1023c53e
push edi
push dword [ebx + 4]
push dword [ebx]
call sub.MSVCR110.dll_memcpy
push dword [ebx]
push dword [ebp + 0xc]
call dword [ebp + 0x10]
sub esi, dword [ebp + 0x1c]
push esi
push dword [ebp + 0x14]
push dword [ebx + 4]
call sub.MSVCR110.dll_memcpy
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0x1c]
mov edi, dword [ebx + 4]
add esp, 0x20
test esi, esi
jle 0x1023c53b
sub edi, ecx
mov edx, esi
lea ecx, [ecx]
mov al, byte [edi + ecx]
xor byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x1023c530
mov dword [ebx + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret