Function at 0x4c4730
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], 0
mov dword [esp], 0
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x4c], 0
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0xc], esi
je 0x4c48c0
cmp esi, 8
jb 0x4c47e8
mov ebx, dword [esp + 0x38]
nop word [eax + eax]
xor ecx, dword [eax]
xor edx, dword [eax + 4]
lea esi, [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
push dword [esp + 0x44]
push ebp
push dword [esp + 0x44]
lea ecx, [esp + 0xc]
push ecx
call sym.fastboot.exe_DES_encrypt3
add esp, 0x10
mov ecx, dword [esp]
mov edx, dword [esp + 4]
add ebx, 0xfffffff8
mov eax, ecx
mov byte [edi], cl
mov byte [edi + 1], ch
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, edx
mov byte [edi + 4], dl
mov byte [edi + 5], dh
shr eax, 0x10
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 7], al
add edi, 8
mov eax, esi
cmp ebx, 7
ja 0x4c4780
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x4c49f7
lea ebx, [ebp - 1]
mov esi, eax
xor eax, eax
mov dword [esp + 8], edx
cmp ebx, 6
ja case.default.0x4c4814
mov dword [esp + 0x10], ecx
add esi, ebp
xor ecx, ecx
xor ebp, ebp
xor edx, edx
jmp dword [ebx*4 + 0x5328e8]
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x10
movzx ecx, byte [esi - 1]
dec esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 1]
dec esi
or eax, ecx
mov ecx, eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x18
movzx edx, byte [esi - 1]
dec esi
mov ebp, ecx
shl edx, 0x10
or eax, edx
movzx ecx, byte [esi - 1]
dec esi
mov edx, ebp
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 1]
or eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, dword [esp + 8]
mov ebp, dword [esp + 0x3c]
xor eax, ecx
mov dword [esp], eax
mov eax, esp
mov dword [esp + 4], edx
push dword [esp + 0x44]
push dword [esp + 0x44]
push ebp
push eax
call sym.fastboot.exe_DES_encrypt3
add esp, 0x10
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x48]
mov eax, ecx
mov byte [edi], cl
mov byte [edi + 1], ch
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, edx
mov byte [edi + 4], dl
mov byte [edi + 5], dh
shr eax, 0x10
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 7], al
jmp 0x4c49fb
cmp esi, 8
jb 0x4c4967
mov ebp, dword [esp + 0x38]
mov esi, eax
nop
mov dword [esp + 0xc], ebp
mov eax, dword [esi]
mov ebp, dword [esi + 4]
add esi, 8
mov ebx, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
lea eax, [esp + 0xc]
push eax
call sym.fastboot.exe_DES_decrypt3
mov edx, ebp
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [esp + 8]
xor ebx, dword [esp]
add ebp, 0xfffffff8
xor eax, dword [esp + 4]
mov byte [edi], bl
mov byte [edi + 1], bh
mov dword [esp + 8], eax
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
mov byte [edi + 2], al
mov byte [edi + 3], bl
mov ebx, dword [esp + 8]
mov eax, ebx
mov byte [edi + 4], bl
mov byte [edi + 5], bh
shr ebx, 0x18
shr eax, 0x10
mov byte [edi + 6], al
mov byte [edi + 7], bl
add edi, 8
cmp ebp, 7
ja 0x4c48d0
mov dword [esp + 0xc], ebp
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
mov eax, esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4c49fb
mov dword [esp + 8], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp], edx
mov dword [esp + 0x18], eax
mov dword [esp + 4], eax
mov eax, esp
mov dword [esp + 0x14], edx
push dword [esp + 0x44]
push ebp
push dword [esp + 0x44]
push eax
call sym.fastboot.exe_DES_decrypt3
add esp, 0x10
lea eax, [esi - 1]
cmp eax, 6
ja case.default.0x4c49bc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
add edi, esi
xor ecx, dword [esp]
xor edx, dword [esp + 4]
jmp dword [eax*4 + 0x532904]
mov eax, edx
shr eax, 0x10
mov byte [edi - 1], al
dec edi
mov byte [edi - 1], dh
dec edi
mov byte [edi - 1], dl
dec edi
mov eax, ecx
shr eax, 0x18
mov byte [edi - 1], al
dec edi
mov eax, ecx
shr eax, 0x10
mov byte [edi - 1], al
dec edi
mov byte [edi - 1], ch
dec edi
mov byte [edi - 1], cl
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x4c49fb
mov ebx, dword [esp + 0x48]
mov eax, ecx
mov byte [ebx], cl
mov byte [ebx + 1], ch
shr ecx, 0x18
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
mov byte [ebx + 5], dh
shr edx, 0x18
shr eax, 0x10
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
jmp 0x4c4860