Function at 0x10146230
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.101949d0
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [eax]
test esi, esi
jns 0x10146250
mov dword [eax], 0xffffffff
pop esi
add esp, 0x14
ret
cmp dword [esp + 0x34], 0
push ebx
push ebp
push edi
je 0x10146375
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
test esi, esi
je 0x1014628c
mov ecx, dword [esp + 0x38]
test edi, edi
je 0x1014628c
movzx eax, byte [ebp]
dec edi
xor byte [esi + ecx], al
inc ebp
movzx eax, byte [esi + ecx]
inc esi
mov byte [ebx], al
inc ebx
and esi, 0xf
jne 0x10146272
mov edx, dword [esp + 0x44]
cmp edi, 0x10
jb 0x10146328
mov ecx, dword [esp + 0x38]
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x20], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, edi
shr eax, 4
mov dword [esp + 0x1c], eax
shl eax, 4
add ebx, eax
add ebp, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x18]
jmp 0x101462d4
mov ecx, dword [esp + 0x38]
push dword [esp + 0x34]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x1014630a
mov ecx, dword [esp + 0x38]
mov edx, 0xf
sub edx, esi
add ecx, esi
shr edx, 2
inc edx
mov eax, dword [ecx + ebp]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx - 4]
mov dword [ebx + ecx - 4], eax
sub edx, 1
jne 0x101462f5
mov edx, dword [esp + 0x44]
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x1c], 1
jne 0x101462d0
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
test edi, edi
je 0x1014649f
push dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
push eax
push eax
call edx
mov eax, dword [esp + 0x44]
add esp, 0xc
sub ebp, eax
sub ebx, eax
lea ecx, [esi + eax]
add esi, edi
nop dword [eax]
movzx eax, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
movzx eax, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edi, 1
jne 0x10146350
mov eax, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
mov dword [eax], esi
pop esi
add esp, 0x14
ret
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edi
test esi, esi
je 0x101463bb
mov edx, dword [esp + 0x38]
test ebx, ebx
je 0x101463bb
mov al, byte [esi + edx]
dec ebx
mov cl, byte [edi]
inc edi
xor al, cl
mov dword [esp + 0x10], edi
mov byte [ebp], al
inc ebp
mov byte [esi + edx], cl
inc esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
and esi, 0xf
jne 0x10146395
mov edx, dword [esp + 0x44]
cmp ebx, 0x10
jb 0x1014645a
mov ecx, dword [esp + 0x38]
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, ebx
shr eax, 4
mov dword [esp + 0x20], eax
jmp 0x101463e4
mov ecx, dword [esp + 0x38]
push dword [esp + 0x34]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x10146433
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
sub ebx, ebp
mov ebp, 0xf
add edi, esi
sub ebp, esi
mov esi, dword [esp + 0x1c]
shr ebp, 2
inc ebp
nop
mov eax, dword [edi]
lea ecx, [esi + edi]
mov edx, dword [ecx + ebx]
lea edi, [edi + 4]
xor eax, edx
mov dword [ecx], eax
mov dword [edi - 4], edx
sub ebp, 1
jne 0x10146410
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
add dword [esp + 0x1c], 0x10
sub ebx, 0x10
mov edx, dword [esp + 0x44]
add ebp, 0x10
add edi, 0x10
mov dword [esp + 0x14], ebx
xor esi, esi
mov dword [esp + 0x18], ebp
sub dword [esp + 0x20], 1
mov dword [esp + 0x10], edi
jne 0x101463e0
test ebx, ebx
je 0x1014649f
push dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
push eax
push eax
call edx
mov ecx, dword [esp + 0x44]
sub edi, ebp
add esp, 0xc
sub ebp, ecx
lea eax, [esi + ecx]
add esi, ebx
mov dword [esp + 0x1c], esi
mov esi, eax
mov dword [esp + 0x20], eax
mov al, byte [esi]
lea ecx, [esi + ebp]
mov dl, byte [ecx + edi]
lea esi, [esi + 1]
xor al, dl
mov byte [ecx], al
mov byte [esi - 1], dl
sub ebx, 1
jne 0x10146484
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
mov dword [eax], esi
pop esi
add esp, 0x14
ret