Function at 0x4b79a0
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 eax, dword [ebp + 8]
push ebx
mov bl, byte [esi]
push edi
mov edi, ecx
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x28]
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
test bl, 0x40
jne 0x4b79ea
push ecx
lea ecx, [esi + 0x10]
push ecx
push esi
call eax
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, bl
and eax, 7
mov ebx, 0xf
sub ebx, eax
mov byte [esi], al
mov eax, ebx
xor ecx, ecx
mov dword [ebp - 0x2c], ebx
cmp eax, 0xf
jae 0x4b7a18
movzx edx, byte [esi + eax]
or ecx, edx
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x4b7a05
movzx eax, byte [esi + 0xf]
mov edx, dword [ebp + 0xc]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edx
je 0x4b7a3c
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
lea ecx, [edx + 0xf]
or ecx, 8
shr ecx, 3
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x4b7a72
ja 0x4b7a5d
cmp dword [esi + 0x20], 0
jbe 0x4b7a72
mov eax, 0xfffffffe
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
cmp edx, 0x10
jb 0x4b7b05
shr edx, 4
lea ebx, [esi + 0x10]
mov dword [ebp - 0x30], edx
mov edx, dword [edi]
xor dword [ebx], edx
mov eax, dword [edi + 4]
xor dword [ebx + 4], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [edi + 8]
xor dword [esi + 0x18], ecx
mov edx, dword [edi + 0xc]
xor dword [esi + 0x1c], edx
push eax
push ebx
push ebx
call dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push esi
call dword [ebp - 0x24]
add esp, 0x18
mov eax, 8
mov cl, byte [eax + esi + 7]
dec eax
inc cl
mov byte [eax + esi + 8], cl
jne 0x4b7ac8
test eax, eax
jne 0x4b7ab7
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x18]
xor edx, dword [ebp - 0x14]
sub dword [ebp + 0xc], 0x10
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], edx
xor ecx, dword [edi + 8]
mov edx, dword [ebp - 0xc]
xor edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
add eax, 0x10
add edi, 0x10
dec dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
jne 0x4b7a84
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4b7b65
xor eax, eax
test edx, edx
je 0x4b7b1c
nop
mov cl, byte [eax + edi]
xor byte [esi + eax + 0x10], cl
inc eax
cmp eax, edx
jb 0x4b7b10
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
lea eax, [esi + 0x10]
push edx
push eax
push eax
call ebx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
call ebx
xor ecx, ecx
add esp, 0x18
cmp dword [ebp + 0xc], ecx
jbe 0x4b7b62
lea edx, [ebp - 0x18]
sub edi, edx
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
sub edx, eax
lea esp, [esp]
lea eax, [ebp + ecx - 0x18]
mov bl, byte [edi + eax]
xor bl, byte [eax]
inc ecx
mov byte [edx + eax], bl
cmp ecx, dword [ebp + 0xc]
jb 0x4b7b50
mov ebx, dword [ebp - 0x2c]
cmp ebx, 0x10
jae 0x4b7b80
mov ecx, 0x10
sub ecx, ebx
push ecx
lea eax, [esi + ebx]
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 dword [ebp - 0x24]
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