Function at 0x4a1b60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x50
call fcn.004e2da0
mov eax, dword [0x563374]
xor eax, esp
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x60]
mov ebp, dword [esi + 0x54]
mov ebx, ecx
shr ebx, 4
mov dword [esp + 0x18], eax
push edi
mov edi, dword [esi + 0x50]
xor edx, edx
mov eax, ebx
add eax, edi
adc edx, ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
test ebx, ebx
je 0x4a1c2b
xor edx, edx
cmp eax, eax
jne 0x4a1c2b
cmp dword [esp + 0x18], edx
jne 0x4a1c2b
cmp dword [esi + 0x10], edx
je 0x4a1c2b
xor ecx, ecx
shr eax, 1
je 0x4a1bd5
nop
inc ecx
shr eax, 1
jne 0x4a1bd0
push ecx
push esi
call fcn.004a11e0
add esp, 8
test eax, eax
jne 0x4a1bf8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004e6abd
add esp, 0x50
ret
mov eax, dword [esi + 0x40]
lea edx, [esi + 0x98]
push edx
mov edx, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x88]
push ecx
mov ecx, dword [esp + 0x1c]
inc edx
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 0x10]
push ebx
push ecx
push edx
call eax
add esp, 0x20
jmp 0x4a1d87
add edi, 1
adc ebp, 0
cmp ebp, dword [esp + 0x18]
ja 0x4a1d8f
jb 0x4a1c45
cmp edi, eax
ja 0x4a1d8f
mov eax, edi
and eax, 1
xor ebx, ebx
or eax, ebx
mov ecx, edi
mov edx, ebp
mov dword [esp + 0x20], 0
jne 0x4a1c75
lea esp, [esp]
inc dword [esp + 0x20]
shrd ecx, edx, 1
mov eax, ecx
and eax, 1
xor ebx, ebx
shr edx, 1
or eax, ebx
je 0x4a1c60
mov ecx, dword [esp + 0x20]
push ecx
push esi
call fcn.004a11e0
add esp, 8
test eax, eax
je 0x4a1be3
mov edx, dword [eax]
xor dword [esi + 0x88], edx
mov ecx, dword [eax + 4]
xor dword [esi + 0x8c], ecx
mov edx, dword [eax + 8]
xor dword [esi + 0x90], edx
mov eax, dword [eax + 0xc]
xor dword [esi + 0x94], eax
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x8c]
mov eax, edi
sub eax, dword [esi + 0x50]
dec eax
shl eax, 4
add eax, dword [esp + 0x1c]
xor ecx, dword [eax]
xor edx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
xor ecx, dword [esi + 0x90]
xor edx, dword [esi + 0x94]
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], edx
push ecx
lea edx, [esp + 0x34]
push edx
call eax
mov ecx, dword [esi + 0x88]
xor ecx, dword [esp + 0x48]
mov edx, dword [esi + 0x8c]
xor edx, dword [esp + 0x4c]
mov eax, edi
sub eax, dword [esi + 0x50]
add esp, 0xc
dec eax
shl eax, 4
add eax, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x90]
xor ecx, dword [esp + 0x44]
mov edx, dword [esi + 0x94]
xor edx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [eax]
mov dword [eax + 0xc], edx
xor dword [esi + 0x98], ecx
mov edx, dword [eax + 4]
xor dword [esi + 0x9c], edx
mov ecx, dword [eax + 8]
xor dword [esi + 0xa0], ecx
mov edx, dword [eax + 0xc]
xor dword [esi + 0xa4], edx
add edi, 1
adc ebp, 0
cmp ebp, dword [esp + 0x18]
jb 0x4a1c45
ja 0x4a1d83
cmp edi, dword [esp + 0x14]
jbe 0x4a1c45
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
and ecx, 0xf
mov edi, ecx
jbe 0x4a1e59
mov ecx, dword [esi + 0x20]
xor dword [esi + 0x88], ecx
mov edx, dword [esi + 0x24]
xor dword [esi + 0x8c], edx
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
xor dword [esi + 0x90], ecx
mov ecx, dword [esi + 8]
xor dword [esi + 0x94], edx
lea eax, [esi + 0x88]
push ecx
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [esi]
call eax
add esp, 0xc
xor eax, eax
test edi, edi
je 0x4a1e00
mov ebp, ebx
shl ebp, 4
add ebp, dword [esp + 0x1c]
mov ecx, ebx
shl ecx, 4
add ecx, dword [esp + 0x10]
lea ecx, [ecx]
mov dl, byte [eax + ebp]
xor dl, byte [esp + eax + 0x4c]
inc eax
mov byte [ecx + eax - 1], dl
cmp eax, edi
jb 0x4a1df0
xor eax, eax
shl ebx, 4
add ebx, dword [esp + 0x10]
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.004df910
mov byte [esp + edi + 0x38], 0x80
mov ecx, dword [esp + 0x38]
xor dword [esi + 0x98], ecx
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
xor dword [esi + 0xa0], eax
mov ecx, dword [esp + 0x44]
xor dword [esi + 0x9c], edx
mov eax, dword [esp + 0x20]
add esp, 0xc
xor dword [esi + 0xa4], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
pop edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004e6abd
add esp, 0x50
ret