Function at 0x4b5800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x40], 0
push edi
mov edi, edx
mov dword [ebp - 0x3c], esi
mov edx, ecx
mov dword [ebp - 0x38], esi
lea eax, [esi + 1]
mov dword [ebp - 0x1c], edx
xor cl, cl
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], esi
cmp edi, eax
jbe 0x4b5848
lea ebx, [ebx]
xor cl, byte [eax + edx]
inc eax
cmp eax, edi
jb 0x4b5840
test edi, edi
je 0x4b5b3b
cmp cl, byte [edx]
jne 0x4b5b3b
push 0x30
push 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 1
call fcn.004bf417
mov ebx, eax
add esp, 8
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4b5b3b
push 0xc
push 1
call fcn.004bf417
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x4b5b34
push edi
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.libmupdf.dll_crc32]
xor ecx, ecx
mov dword [ebx + 0x18], eax
or ecx, edi
add esp, 0xc
mov dword [ebx + 0x1c], ecx
cmp esi, 1
jge 0x4b58d4
cmp byte [ebp - 0x24], 0
jne 0x4b5b44
mov edx, 1
lea ecx, [ebp - 0x40]
call fcn.004b5350
test al, al
je 0x4b595b
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
dec esi
mov edx, dword [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 0x28], esi
call fcn.004dfed0
and eax, 1
je 0x4b5960
lea ecx, [ebp - 0x40]
call fcn.004b5410
inc eax
push eax
mov dword [ebx + 8], eax
call fcn.004c8cd1
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
je 0x4b5b34
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x4b595b
mov esi, dword [ebp - 0x28]
cmp esi, 8
jge 0x4b5937
cmp byte [ebp - 0x24], 0
jne 0x4b5933
mov edx, 8
lea ecx, [ebp - 0x40]
call fcn.004b5350
mov esi, dword [ebp - 0x28]
test al, al
jne 0x4b5937
xor ecx, ecx
jmp 0x4b594d
mov eax, dword [ebp - 0x30]
sub esi, 8
mov edx, dword [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 0x28], esi
call fcn.004dfed0
movzx ecx, al
mov eax, dword [ebx + 4]
mov byte [edi + eax], cl
inc edi
cmp edi, dword [ebx + 8]
jb 0x4b5914
jmp 0x4b5960
mov esi, dword [ebp - 0x28]
mov edi, edi
cmp byte [ebp - 0x24], 0
jne 0x4b5b44
cmp esi, 8
jge 0x4b5987
mov edx, 8
lea ecx, [ebp - 0x40]
call fcn.004b5350
test al, al
je 0x4b5b44
mov esi, dword [ebp - 0x28]
cmp esi, 4
jge 0x4b59aa
cmp byte [ebp - 0x24], 0
jne 0x4b59a6
mov edx, 4
lea ecx, [ebp - 0x40]
call fcn.004b5350
mov esi, dword [ebp - 0x28]
test al, al
jne 0x4b59aa
xor ebx, ebx
jmp 0x4b59c2
mov eax, dword [ebp - 0x30]
sub esi, 4
mov edx, dword [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 0x28], esi
call fcn.004dfed0
mov ebx, eax
and ebx, 0xf
mov byte [ebp - 0xc], 0
mov byte [ebp - 1], 0
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
test bl, 8
je 0x4b5a22
cmp esi, 2
jge 0x4b5a04
cmp byte [ebp - 0x24], 0
jne 0x4b5a00
mov edx, 2
lea ecx, [ebp - 0x40]
call fcn.004b5350
mov esi, dword [ebp - 0x28]
test al, al
jne 0x4b5a04
xor eax, eax
jmp 0x4b5a1a
mov eax, dword [ebp - 0x30]
sub esi, 2
mov edx, dword [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 0x28], esi
call fcn.004dfed0
and eax, 3
shl bl, 2
or bl, al
sub bl, 0x18
cmp bl, 0x28
jae 0x4b5a71
movzx eax, bl
mov eax, dword [eax*4 + 0x4eed60]
shr eax, 2
and al, 1
je 0x4b5a71
cmp esi, 1
jge 0x4b5a5b
cmp byte [ebp - 0x24], 0
jne 0x4b5a57
mov edx, 1
lea ecx, [ebp - 0x40]
call fcn.004b5350
mov esi, dword [ebp - 0x28]
test al, al
jne 0x4b5a5b
xor al, al
jmp 0x4b5a6e
mov eax, dword [ebp - 0x30]
dec esi
mov edx, dword [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 0x28], esi
call fcn.004dfed0
and al, 1
mov byte [ebp - 0xc], al
mov ecx, dword [ebp - 8]
mov dl, bl
push dword [ebp - 0xc]
mov ecx, dword [ecx]
call fcn.004b7e20
add esp, 4
mov cl, al
cmp bl, 0x28
jb 0x4b5a8e
xor edi, edi
jmp 0x4b5a9b
movzx eax, bl
mov edi, dword [eax*4 + 0x4eed60]
and edi, 3
test cl, cl
je 0x4b5b15
cmp edi, 1
jb 0x4b5ac4
lea eax, [ebp - 0x1c]
mov dl, bl
push eax
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
push dword [ebp - 0xc]
call fcn.004b55a0
mov esi, dword [ebp - 0x28]
add esp, 0x10
mov cl, al
test cl, cl
je 0x4b5b15
cmp edi, 2
jne 0x4b5aec
lea eax, [ebp - 0x14]
mov dl, bl
push eax
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xc]
lea ecx, [ebp - 0x40]
call fcn.004b55a0
mov esi, dword [ebp - 0x28]
add esp, 0x10
mov cl, al
mov ebx, dword [ebp - 8]
test cl, cl
je 0x4b5b18
push dword [ebp - 0x14]
mov dl, byte [ebp - 1]
push dword [ebp - 0x18]
mov ecx, dword [ebx]
push dword [ebp - 0x1c]
call fcn.004b7f20
add esp, 0xc
test al, al
je 0x4b5b18
inc dword [ebp - 0x10]
jmp 0x4b5960
mov ebx, dword [ebp - 8]
push str.Invalid_RAR_program_instruction
push 0xd0
push str...extunarr_rar_filter_rar.c
push 0x55cf68
call fcn.004a24a0
add esp, 0x10
mov ecx, ebx
call fcn.004b5550
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx]
mov eax, dword [esi + 4]
test eax, eax
je 0x4b5b6f
lea ecx, [eax + eax*2]
mov eax, dword [esi]
mov al, byte [eax + ecx*4 - 0xc]
cmp al, 0x28
jae 0x4b5b6f
movzx eax, al
mov eax, dword [eax*4 + 0x4eed60]
shr eax, 3
and al, 1
jne 0x4b5bf3
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
jb 0x4b5bc3
lea edi, [ecx*4]
test ecx, ecx
jne 0x4b5b8a
mov edi, 0x20
push 0xc
push edi
call fcn.004bf417
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4b5b34
mov ecx, dword [esi + 8]
lea ecx, [ecx + ecx*2]
shl ecx, 2
push ecx
push dword [esi]
push eax
call fcn.004e0070
add esp, 0xc
push dword [esi]
call fcn.004bf8aa
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], edi
mov eax, dword [esi + 4]
xor edx, edx
lea ecx, [eax + eax*2]
mov eax, dword [esi]
mov dword [eax + ecx*4], edx
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edx
mov eax, dword [esi + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esi]
mov byte [eax + ecx*4], 0x16
mov eax, dword [esi + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esi]
mov byte [eax + ecx*4 + 1], dl
inc dword [esi + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret