Function at 0x4b7df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38
call fcn.005e38a0
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov al, byte [esi]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x30], edx
mov edx, dword [esi + 0x2c]
push edi
mov byte [ebp - 0x19], al
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], edx
test al, 0x40
jne 0x4b7e43
push edx
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov al, byte [ebp - 0x19]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
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 - 0x24], edx
cmp eax, 0xf
jae 0x4b7e73
mov edi, edi
movzx edi, byte [esi + eax]
or ecx, edi
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x4b7e60
movzx eax, byte [esi + 0xf]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x4b7e94
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0xf]
or ecx, 8
shr ecx, 3
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x4b7eca
ja 0x4b7eb5
cmp dword [esi + 0x20], 0
jbe 0x4b7eca
mov eax, 0xfffffffe
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
mov edi, ebx
shr edi, 4
test edi, edi
je 0x4b7f0b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
lea edx, [esi + 0x10]
push edx
mov edx, dword [ebp - 0x34]
push esi
push eax
push edi
push ecx
push edx
call dword [ebp - 0x30]
shl edi, 4
mov edx, edi
mov edi, dword [ebp - 0x34]
add dword [ebp - 0x28], edx
add esp, 0x18
add edi, edx
sub ebx, edx
je 0x4b7f6a
shr edx, 4
mov ecx, esi
call fcn.004b7db0
mov edx, dword [ebp - 0x24]
jmp 0x4b7f0e
mov edi, dword [ebp - 0x34]
test ebx, ebx
je 0x4b7f6d
xor eax, eax
test ebx, ebx
je 0x4b7f24
mov cl, byte [edi + eax]
xor byte [esi + eax + 0x10], cl
inc eax
cmp eax, ebx
jb 0x4b7f18
mov edx, dword [ebp - 0x20]
lea eax, [esi + 0x10]
push edx
push eax
push eax
call dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
call dword [ebp - 0x2c]
add esp, 0x18
xor ecx, ecx
test ebx, ebx
je 0x4b7f6a
mov edx, edi
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
sub edx, eax
mov dword [ebp - 0x30], edx
sub edi, eax
jmp 0x4b7f59
mov edx, dword [ebp - 0x30]
lea eax, [ebp + ecx - 0x18]
mov dl, byte [edx + eax]
xor dl, byte [eax]
inc ecx
mov byte [edi + eax], dl
cmp ecx, ebx
jb 0x4b7f56
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jae 0x4b7f88
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.005dd9b0
add esp, 0xc
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
push esi
call dword [ebp - 0x2c]
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.005dcf8a
mov esp, ebp
pop ebp
ret