Function at 0x4b7bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30
call fcn.005e28b0
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [esi]
push ebx
mov ebx, dword [esi + 0x28]
push edi
mov edi, ecx
mov ecx, dword [esi + 0x2c]
mov byte [ebp - 0x19], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ecx
test al, 0x40
jne 0x4b7bfe
push ecx
lea eax, [esi + 0x10]
push eax
push esi
call ebx
mov al, byte [ebp - 0x19]
add esp, 0xc
movzx eax, al
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
mov dword [ebp - 0x2c], edx
cmp eax, 0xf
jae 0x4b7c36
lea esp, [esp]
movzx ebx, byte [esi + eax]
or ecx, ebx
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x4b7c20
mov ebx, dword [ebp - 0x24]
movzx eax, byte [esi + 0xf]
or ecx, eax
mov eax, dword [ebp + 0xc]
mov byte [esi + 0xf], 1
cmp ecx, eax
je 0x4b7c5a
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
cmp eax, 0x10
jb 0x4b7cef
shr eax, 4
lea ebx, [esi + 0x10]
mov dword [ebp - 0x28], eax
lea esp, [esp]
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push esi
call dword [ebp - 0x24]
add esp, 0xc
mov eax, 8
mov cl, byte [eax + esi + 7]
dec eax
inc cl
mov byte [eax + esi + 8], cl
jne 0x4b7c95
test eax, eax
jne 0x4b7c84
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
xor eax, dword [ebp - 0x18]
xor edx, dword [ebp - 0x14]
mov dword [edi], eax
mov dword [edi + 4], edx
xor dword [ebx], eax
mov edx, dword [edi + 4]
xor dword [ebx + 4], edx
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
xor eax, dword [ebp - 0x10]
xor ecx, dword [ebp - 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 0x20]
xor dword [esi + 0x1c], ecx
push eax
push ebx
push ebx
call dword [ebp - 0x24]
mov eax, 0x10
add dword [ebp + 8], eax
sub dword [ebp + 0xc], eax
add esp, 0xc
add edi, eax
dec dword [ebp - 0x28]
jne 0x4b7c70
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x4b7d53
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push esi
call ebx
xor eax, eax
add esp, 0xc
cmp dword [ebp + 0xc], eax
jbe 0x4b7d42
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, ecx
sub ebx, ecx
sub edi, edx
mov dword [ebp - 0x28], edi
jmp 0x4b7d20
movzx edi, byte [ebp + eax - 0x18]
lea ecx, [ebp + eax - 0x18]
movzx edx, byte [ebx + ecx]
xor edx, edi
mov edi, dword [ebp - 0x28]
mov byte [edi + ecx], dl
xor byte [esi + eax + 0x10], dl
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x4b7d20
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 0x10]
push ecx
push eax
push eax
call ebx
mov edx, dword [ebp - 0x2c]
add esp, 0xc
cmp edx, 0x10
jae 0x4b7d6e
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.005dc9c0
add esp, 0xc
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
push esi
call ebx
mov ecx, dword [ebp - 0x18]
xor dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor dword [esi + 0x18], eax
mov dl, byte [ebp - 0x19]
add esp, 0xc
pop edi
xor ecx, ebp
mov byte [esi], dl
xor eax, eax
pop ebx
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret