Function at 0x49da50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xbc
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
mov ebx, dword [esp + 0xcc]
mov eax, ecx
push ebp
push esi
mov esi, dword [esp + 0xd0]
push edi
mov edi, dword [esp + 0xd0]
push 0
push esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], ebx
mov dword [ebx], 5
mov dword [ebx + 0x24], 0x5892d8
mov dword [ebx + 0x28], 0x95
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], edi
call fcn.0049ddc0
mov byte [ebx + 4], 3
lea edx, [esi - 0x78]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], 0
lea ecx, [eax + 3]
mov dword [esp + 0x48], 0
mov dword [ebx + 8], ecx
xor ecx, ecx
lea ebx, [esp + 0x44]
mov dword [esp + 0x44], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
lea esp, [esp]
mov dword [esp + 0x24], ecx
mov eax, ecx
cmp ecx, edx
jge 0x49dbc3
mov ebx, dword [ebx]
jmp 0x49db06
mov ebx, dword [esp + 0x18]
add eax, 2
xor esi, esi
add eax, edi
lea ecx, [ecx]
mov dl, byte [eax - 1]
lea eax, [eax + 3]
movzx ecx, byte [eax - 5]
sub cl, dl
mov byte [esp + esi + 0x51], dl
mov byte [esp + esi + 0x50], cl
movzx ecx, byte [eax - 3]
sub cl, dl
mov byte [esp + esi + 0x52], cl
add esi, 3
cmp esi, 0x78
jl 0x49db10
mov dword [esp + 0x18], ebx
lea ebp, [esp + 0x51]
mov bh, byte [esp + 0x51]
mov dword [esp + 0x20], 0x27
lea ebx, [ebx]
mov al, byte [ebp + 4]
lea ebp, [ebp + 3]
sub al, byte [ebp - 2]
mov cl, byte [ebp - 1]
sub cl, byte [ebp - 4]
mov bl, byte [ebp]
movsx eax, al
cdq
mov esi, eax
movsx eax, cl
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
lea ecx, [eax + esi]
mov al, bl
sub al, bh
mov bh, bl
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x18]
add ecx, eax
sub dword [esp + 0x20], 1
mov dword [esp + 0x18], ecx
jne 0x49db50
mov esi, dword [esp + 0xd4]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
add eax, 0x780
mov dword [esp + 0x24], eax
lea edx, [esi - 0x78]
cmp eax, edx
jl 0x49db02
mov ebx, dword [esp + 0x2c]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x28]
inc ecx
add ebx, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
cmp ecx, 2
jle 0x49daf0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
cmp eax, edx
ja 0x49dbf0
cmp eax, ecx
ja 0x49dbf0
xor eax, eax
jmp 0x49dbf7
cmp ecx, edx
sbb eax, eax
neg eax
inc eax
mov ecx, dword [esp + 0x34]
lea edx, [esi - 2]
mov dword [ecx + 0xc], eax
cmp eax, edx
jge 0x49dc28
sub edx, eax
lea ecx, [eax + 2]
dec edx
mov eax, 0xaaaaaaab
mul edx
add ecx, edi
shr edx, 1
inc edx
mov al, byte [ecx - 1]
lea ecx, [ecx + 3]
sub byte [ecx - 5], al
sub byte [ecx - 3], al
sub edx, 1
jne 0x49dc17
mov ecx, dword [esp + 0x14]
xor esi, esi
mov eax, dword [esp + 0x30]
add ecx, 0x145e8
xor ebp, ebp
mov dword [esp + 0x24], esi
neg eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jmp 0x49dc50
mov eax, dword [esp + 0xdc]
push 4
add eax, ebp
push eax
call fcn.004a0da0
mov eax, dword [esp + 0xd4]
xor ebx, ebx
mov edx, dword [esp + 0x14]
mov edi, esi
cmp esi, eax
jge 0x49dd46
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x40], eax
jmp 0x49dc90
mov al, byte [eax + esi]
movzx ecx, al
mov byte [esp + 0x13], al
mov dword [esp + 0x3c], ecx
cmp esi, 3
jl 0x49dd14
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x30]
movzx ecx, byte [eax + edi]
movzx edx, byte [eax + edi - 3]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
lea ecx, [eax + ebx]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x34], eax
mov eax, ecx
sub eax, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x38], eax
mov eax, ecx
mov ecx, dword [esp + 0x34]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x38]
cmp ecx, edx
jg 0x49dd00
cmp ecx, eax
jg 0x49dd00
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x14]
jmp 0x49dd14
mov ebx, dword [esp + 0x2c]
cmp edx, eax
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x14]
jle 0x49dd14
mov ebx, dword [esp + 0x28]
sub bl, al
add edi, 3
mov eax, dword [edx + 0x145b8]
add esi, 3
mov byte [eax + ebp], bl
inc ebp
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp edi, dword [esp + 0xd4]
jl 0x49dc90
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0xd4]
inc dword [esp + 0x18]
inc esi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], esi
cmp esi, 3
jl 0x49dc50
push eax
push dword [edx + 0x145b8]
push dword [esp + 0x24]
call fcn.00531230
mov ecx, dword [esp + 0x20]
xor eax, eax
add esp, 0xc
cmp dword [ecx + 0x51c], 2
mov ecx, dword [esp + 0x20]
setne al
lea eax, [eax*2 + 1]
push eax
mov eax, dword [esp + 0xe0]
add eax, dword [esp + 0xd8]
push eax
call fcn.004a0da0
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0xbc
ret 0x10