Function at 0x4b8ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004051dc
mov eax, dword [ebp - 8]
call fcn.004051dc
xor eax, eax
push ebp
push 0x4b925a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d5c
cmp bl, 4
jne 0x4b9001
mov eax, dword [ebp - 4]
test eax, eax
je 0x4b8f29
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x20
jge 0x4b8f32
mov al, 1
jmp 0x4b8f44
mov eax, dword [ebp - 8]
test eax, eax
je 0x4b8f3e
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x20
setl al
test al, al
jne 0x4b922a
mov edi, 1
mov edx, 0x4b926c
lea eax, [ebp - 0x2c]
call fcn.0040355c
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + edi - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov cl, 2
call fcn.0040352c
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00404fc0
mov eax, dword [ebp - 0x28]
call fcn.00409e0c
mov ebx, eax
mov edx, 0x4b926c
lea eax, [ebp - 0x2c]
call fcn.0040355c
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov cl, 2
call fcn.0040352c
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x34]
call fcn.00404fc0
mov eax, dword [ebp - 0x34]
call fcn.00409e0c
mov byte [ebp - 0x21], al
movzx eax, byte [ebp - 0x21]
xor al, bl
movzx eax, al
lea ecx, [ebp - 0x38]
mov edx, 1
call fcn.00409de4
mov edx, dword [ebp - 0x38]
mov eax, esi
call fcn.00405028
inc edi
cmp edi, 0x21
jne 0x4b8f51
jmp 0x4b922a
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b6cdc]
call fcn.00422d90
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4b9223
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, bl
cmp eax, 5
ja case.0x4b902c.4
jmp dword [eax*4 + 0x4b9033]
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b8208]
call fcn.004b1ea4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b909e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x4b6cdc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004b19d4
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x4b902c.4
mov eax, dword [ebp - 0xc]
call fcn.00403d58
ret
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b47b0]
call fcn.004b1ea4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b90f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x4b6cdc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004b19d4
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x4b902c.4
mov eax, dword [ebp - 0x10]
call fcn.00403d58
ret
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b3e24]
call fcn.004b45b0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4b9152
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x4b6cdc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.004b19d4
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x4b902c.4
mov eax, dword [ebp - 0x14]
call fcn.00403d58
ret
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b3f3c]
call fcn.004b45b0
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4b91ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x4b6cdc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.004b19d4
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x4b902c.4
mov eax, dword [ebp - 0x18]
call fcn.00403d58
ret
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b3674]
call fcn.004b1ea4
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4b9206
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x4b6cdc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
call fcn.004b19d4
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x4b902c.4
mov eax, dword [ebp - 0x20]
call fcn.00403d58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b922a
mov eax, dword [ebp - 0x1c]
call fcn.00403d58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9261
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404d80
lea eax, [ebp - 0x28]
call fcn.00404d5c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d80
ret