Function at 0x4b1310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0x18], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov esi, dword [esi]
mov edi, edx
mov edx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edx
je 0x4b1427
test esi, esi
je 0x4b1361
mov eax, dword [ebp + 0x10]
lea esp, [esp]
test ebx, ebx
je 0x4b1361
movzx ecx, byte [esi + eax]
movzx eax, byte [edx]
xor ecx, eax
mov eax, dword [ebp + 0x10]
inc edx
mov byte [esi + eax], cl
mov byte [edi], cl
inc esi
inc edi
dec ebx
mov dword [ebp - 4], edx
and esi, 0xf
jne 0x4b1340
cmp ebx, 0x10
jb 0x4b13db
mov ecx, dword [ebp + 0x10]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x10], eax
mov eax, edx
sub eax, ecx
mov dword [ebp + 0x18], eax
mov eax, ebx
shr eax, 4
mov dword [ebp - 0xc], eax
shl eax, 4
add edi, eax
add edx, eax
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], edx
jmp 0x4b1394
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
push ecx
call dword [ebp + 0x1c]
add esp, 0xc
cmp esi, 0x10
jae 0x4b13c7
mov ecx, dword [ebp + 0x10]
mov edx, 0xf
sub edx, esi
add ecx, esi
mov esi, dword [ebp + 0x18]
shr edx, 2
inc edx
mov eax, dword [esi + ecx]
xor dword [ecx], eax
mov eax, dword [ecx]
mov dword [edi + ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4b13b7
add dword [ebp + 0x18], 0x10
sub ebx, 0x10
add edi, 0x10
xor esi, esi
dec dword [ebp - 0xc]
jne 0x4b1391
mov edi, dword [ebp - 8]
test ebx, ebx
je 0x4b1531
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push eax
call dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
sub dword [ebp - 4], ecx
lea edx, [esi + ecx]
add esp, 0xc
sub edi, ecx
add esi, ebx
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 4]
movzx ecx, byte [edx + esi]
movzx eax, byte [edx]
xor ecx, eax
mov byte [edx], cl
mov byte [edx + edi], cl
lea edx, [edx + 1]
dec ebx
jne 0x4b1404
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 0x18], ebx
test esi, esi
je 0x4b1456
mov eax, dword [ebp + 0x10]
test ebx, ebx
je 0x4b1456
mov al, byte [esi + eax]
mov cl, byte [edx]
xor al, cl
mov byte [edi], al
mov eax, dword [ebp + 0x10]
inc edi
mov byte [esi + eax], cl
inc edx
dec ebx
inc esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edx
mov dword [ebp + 0x18], ebx
and esi, 0xf
jne 0x4b1431
mov edx, dword [ebp + 0x1c]
cmp ebx, 0x10
jb 0x4b14ec
mov ecx, dword [ebp + 0x10]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, 4
mov dword [ebp - 0x10], eax
jmp 0x4b1479
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x4b14ce
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, 0xf
sub eax, esi
add edi, esi
mov esi, eax
shr esi, 2
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
inc esi
lea esp, [esp]
mov eax, dword [edi]
lea ecx, [ebx + edi]
lea edi, [edi + 4]
mov edx, dword [ecx + edx]
xor eax, edx
mov dword [ecx], eax
mov dword [edi - 4], edx
mov edx, dword [ebp - 0x18]
dec esi
jne 0x4b14b0
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp - 8]
add dword [ebp - 0xc], 0x10
add dword [ebp - 4], 0x10
mov edx, dword [ebp + 0x1c]
sub ebx, 0x10
add edi, 0x10
xor esi, esi
dec dword [ebp - 0x10]
mov dword [ebp + 0x18], ebx
mov dword [ebp - 8], edi
jne 0x4b1476
test ebx, ebx
je 0x4b1531
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push eax
call edx
mov edx, dword [ebp + 0x10]
sub dword [ebp - 4], edi
lea ecx, [esi + edx]
add esp, 0xc
sub edi, edx
add esi, ebx
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 4]
mov dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x18]
add ecx, edi
mov al, byte [eax]
mov dl, byte [ecx + esi]
xor al, dl
mov byte [ecx], al
mov ecx, dword [ebp + 0x18]
inc ecx
mov byte [ecx - 1], dl
mov dword [ebp + 0x18], ecx
dec ebx
jne 0x4b1513
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret