Function at 0x49ad90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00581be0
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [eax]
test esi, esi
jns 0x49adb0
mov dword [eax], 0xffffffff
pop esi
add esp, 0x14
ret
cmp dword [esp + 0x34], 0
push ebx
push ebp
push edi
je 0x49aedb
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
test esi, esi
je 0x49ae04
mov ebx, dword [esp + 0x38]
nop word [eax + eax]
test edi, edi
je 0x49ae04
movzx ecx, byte [esi + ebx]
dec edi
movzx eax, byte [ebp]
inc ebp
xor ecx, eax
mov dword [esp + 0x10], ebp
mov byte [esi + ebx], cl
inc esi
mov byte [edx], cl
inc edx
mov dword [esp + 0x14], edx
and esi, 0xf
jne 0x49ade0
cmp edi, 0x10
jb 0x49ae7e
mov ecx, dword [esp + 0x38]
mov eax, edi
shr eax, 4
mov ebx, edx
mov dword [esp + 0x1c], eax
sub ebx, ecx
shl eax, 4
sub ebp, ecx
add edx, eax
add dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jmp 0x49ae34
mov ecx, dword [esp + 0x38]
push dword [esp + 0x34]
push ecx
push ecx
call dword [esp + 0x50]
add esp, 0xc
cmp esi, 0x10
jae 0x49ae6c
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 0x49ae57
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x1c], 1
jne 0x49ae30
test edi, edi
je 0x49b00f
push dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
push ebp
push ebp
call dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
lea edx, [esi + ebp]
sub dword [esp + 0x1c], ebp
add esp, 0xc
sub ebx, ebp
add esi, edi
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x10]
nop
movzx ecx, byte [edx + esi]
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
xor ecx, eax
mov byte [edx - 1], cl
mov byte [edx + ebx - 1], cl
sub edi, 1
jne 0x49aeb0
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
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 0x49af26
mov edx, dword [esp + 0x38]
nop dword [eax + eax]
test ebx, ebx
je 0x49af26
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 0x49af00
mov edx, dword [esp + 0x44]
cmp ebx, 0x10
jb 0x49afca
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 0x49af54
mov ecx, dword [esp + 0x38]
push dword [esp + 0x34]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x49afa3
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 0x49af80
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 0x49af50
test ebx, ebx
je 0x49b00f
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 0x49aff4
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