Function at 0x834eff58
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x20]
lea eax, [esi + 1]
cmp edi, eax
jb 0x834f012c
mov eax, dword [ebp + 0x1c]
cmp byte [eax], 0
jne 0x834f012c
lea eax, [esi + 5]
imul eax, eax, 3
add eax, dword [ebp + 0x10]
sub edi, esi
dec edi
lea eax, [eax + edi*2]
push eax
call fcn.834ef9c0
mov dword [ebp - 4], eax
test eax, eax
jne 0x834effb0
mov dword [ebp + 0xc], 0xc0000017
jmp 0x834f0133
lea ecx, [eax + esi]
add ecx, esi
push esi
mov dword [ebp - 0xc], ecx
add ecx, edi
push eax
lea ebx, [ecx + edi]
mov dword [ebp + 0x20], ecx
mov ecx, dword [ebp + 0x1c]
push edi
lea ecx, [esi + ecx + 1]
push ecx
push dword [ebp + 0x10]
lea ebx, [ebx + esi + 0xf]
push esi
push dword [ebp + 8]
and ebx, 0xfffffff0
mov dword [ebp - 0x14], ecx
call fcn.834efbef
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x834f0133
and dword [ebp + 0xc], 0
test esi, esi
jbe 0x834f001c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add eax, esi
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
mov cl, byte [ecx + edx + 1]
mov edx, dword [ebp - 0x10]
xor cl, byte [edx + eax]
inc dword [ebp + 0xc]
mov byte [eax], cl
inc eax
cmp dword [ebp + 0xc], esi
jb 0x834f0001
mov eax, dword [ebp - 4]
push edi
push dword [ebp - 0xc]
add eax, esi
push esi
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.834efbef
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x834f0133
and dword [ebp + 0xc], 0
test edi, edi
jbe 0x834f006b
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp + 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + edx]
mov edx, dword [ebp + 0x1c]
xor cl, byte [edx + eax]
inc dword [ebp + 0xc]
mov byte [eax], cl
inc eax
cmp dword [ebp + 0xc], edi
jb 0x834f0051
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp + 8]
call fcn.834ebdba
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x834f0133
cmp dword [ebp + 0x18], 0
je 0x834f00ac
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 8]
call fcn.834eb228
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x834f0133
mov eax, dword [ebp + 0x20]
push 0
push esi
lea ebx, [eax + edi]
push ebx
push dword [ebp - 8]
call fcn.834eb268
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x834f0133
and dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x20]
test esi, esi
jbe 0x834f00f3
mov ecx, eax
sub ebx, eax
mov dl, byte [ebx + ecx]
cmp dl, byte [ecx]
jne 0x834f012c
inc dword [ebp + 0xc]
inc ecx
cmp dword [ebp + 0xc], esi
jb 0x834f00d4
jmp 0x834f00f3
mov cl, byte [esi + eax]
cmp cl, 1
je 0x834f00f9
test cl, cl
jne 0x834f012c
inc esi
cmp esi, edi
jb 0x834f00e6
jmp 0x834f00fa
inc esi
mov ecx, dword [ebp + 0x2c]
sub edi, esi
cmp dword [ebp + 0x24], 0
mov dword [ecx], edi
jne 0x834f010d
and dword [ebp + 0xc], 0
jmp 0x834f0133
cmp dword [ebp + 0x28], edi
jae 0x834f011b
mov dword [ebp + 0xc], 0xc0000023
jmp 0x834f0133
push edi
add esi, eax
push esi
push dword [ebp + 0x24]
call fcn.834ef428
add esp, 0xc
jmp 0x834f0107
mov dword [ebp + 0xc], 0xc000000d
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x834f0144
push dword [ebp - 8]
call fcn.834ec0d0
cmp dword [ebp - 4], 0
je 0x834f0152
push dword [ebp - 4]
call fcn.834f1850
mov eax, dword [ebp + 0xc]
leave
ret 0x28