Function at 0x4841f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.004d3ef0
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
mov esi, dword [esp + 0x34]
mov bl, byte [esi]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
push edi
mov edi, dword [esp + 0x40]
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test bl, 0x40
jne 0x484234
push ecx
lea ecx, [esi + 0x10]
push ecx
push esi
call eax
add esp, 0xc
movzx eax, bl
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
cmp eax, 0xf
jae 0x484263
movzx ebx, byte [esi + eax]
or ecx, ebx
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x484250
movzx eax, byte [esi + 0xf]
or ecx, eax
mov eax, dword [esp + 0x44]
mov byte [esi + 0xf], 1
cmp ecx, eax
je 0x48428a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004cf1f2
add esp, 0x28
ret
mov ebx, dword [esp + 0x3c]
push ebp
cmp eax, 0x10
jb 0x48433a
shr eax, 4
lea ebp, [esi + 0x10]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call dword [esp + 0x20]
add esp, 0xc
mov eax, 8
lea esp, [esp]
mov cl, byte [eax + esi + 7]
dec eax
add cl, 1
mov byte [eax + esi + 8], cl
jne 0x4842d2
test eax, eax
jne 0x4842c0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
xor eax, dword [esp + 0x24]
xor ecx, dword [esp + 0x28]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov edx, eax
xor dword [ebp], edx
mov eax, dword [edi + 4]
xor dword [ebp + 4], eax
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
xor edx, dword [esp + 0x30]
xor ecx, dword [esp + 0x2c]
mov dword [edi + 0xc], edx
mov edx, dword [esp + 0x18]
mov dword [edi + 8], ecx
mov eax, ecx
xor dword [esi + 0x18], eax
mov ecx, dword [edi + 0xc]
xor dword [esi + 0x1c], ecx
push edx
push ebp
push ebp
call dword [esp + 0x20]
sub dword [esp + 0x54], 0x10
add esp, 0xc
add ebx, 0x10
add edi, 0x10
sub dword [esp + 0x1c], 1
jne 0x4842a2
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x48438e
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [esp + 0x20]
mov ebp, dword [esp + 0x54]
add esp, 0xc
xor eax, eax
test ebp, ebp
jbe 0x484379
lea edx, [esp + 0x24]
mov ecx, edx
sub ebx, edx
sub edi, ecx
lea edx, [esp + eax + 0x24]
mov cl, byte [ebx + edx]
xor cl, byte [edx]
inc eax
mov byte [edi + edx], cl
xor byte [esi + eax + 0xf], cl
cmp eax, ebp
jb 0x484364
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x10]
push edx
push eax
push eax
call dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
add esp, 0xc
pop ebp
cmp edx, 0x10
jae 0x4843aa
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.004d1130
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push esi
call dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
xor dword [esi + 0x10], ecx
mov edx, dword [esp + 0x30]
xor dword [esi + 0x14], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x18], eax
mov dl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x3c]
add esp, 0xc
pop edi
mov byte [esi], dl
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004cf1f2
add esp, 0x28
ret