Function at 0x834ebdba
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.834e9c06
mov esi, eax
cmp esi, edi
jne 0x834ebde6
mov dword [ebp + 8], 0xc0000008
jmp 0x834ec0c2
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push ebx
cmp ecx, edi
jne 0x834ebe1e
cmp eax, edi
jne 0x834ebe16
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.834eb5f8
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x834ec0a7
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
cmp ecx, edi
je 0x834ec0a0
cmp dword [ebp + 0xc], edi
je 0x834ec0a0
cmp dword [ebp + 0x20], edi
jne 0x834ec0a0
cmp eax, 0x36
jae 0x834ebe41
mov dword [ebp + 8], 0xc0000023
jmp 0x834ec0a7
lea ebx, [ecx + 0xf]
and ebx, 0xfffffff0
mov edx, ebx
sub edx, ecx
cmp dword [esi + 0x1c], 2
mov dword [ebp + 8], edx
je 0x834ebe60
mov dword [ebp + 8], 0xc00000bb
jmp 0x834ec0a7
mov edi, dword [esi + 0x38]
lea ecx, [ecx + edx + 0x18]
push 0xffffffffffffffe8
pop edx
sub edx, dword [ebp + 8]
mov dword [ebp + 0x14], edi
mov edi, dword [ebp - 4]
mov dword [ebx], 0x18
mov dword [ebx + 4], 0x55555553
mov dword [ebx + 8], esi
mov dword [ebx + 0x14], edi
add eax, edx
test byte [esi + 8], 8
je 0x834ec070
mov edx, dword [esi + 0x3c]
mov dword [ebp - 8], edx
mov edx, dword [esi + 0x40]
mov dword [ebp - 0x1c], edx
mov edx, dword [esi + 0x48]
mov dword [ebp - 0x20], edx
mov edx, dword [esi + 0x2c]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0xc]
cmp eax, edx
jbe 0x834ec0a0
mov dword [ebp + 0x10], ecx
add ecx, edx
sub eax, edx
xor edx, edx
push edx
shr eax, 1
lea edi, [ecx + 0xf]
push edx
mov dword [ebp - 0x14], eax
and edi, 0xfffffff0
push edx
sub eax, edi
add eax, ecx
push eax
push edi
lea ecx, [ebx + 0xc]
push ecx
push dword [esi + 0x14]
mov dword [ebp - 0x10], eax
call dword [ebp + 0x14]
mov dword [ebp + 8], eax
test eax, eax
jl 0x834ec0a7
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push ecx
push ecx
add eax, edi
push ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
add eax, 0xf
and eax, 0xfffffff0
sub ecx, eax
add ecx, dword [ebp + 8]
lea edx, [ebx + 0x10]
push ecx
push eax
push edx
push dword [esi + 0x14]
call dword [ebp + 0x14]
mov dword [ebp + 8], eax
test eax, eax
jl 0x834ec0a7
mov eax, dword [ebp + 0x1c]
cmp dword [esi + 0xc], eax
jae 0x834ebfd3
push 0
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp + 0x20]
push eax
push 0x879a7280
push dword [esi + 0x14]
call dword [ebp - 0x18]
mov dword [ebp + 8], eax
test eax, eax
jl 0x834ec0a7
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp + 0x20]
jb 0x834ec0a0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebx + 0xc]
call dword [ebp - 8]
mov dword [ebp + 8], eax
test eax, eax
jl 0x834ec0a7
push 0
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebx + 0xc]
call dword [ebp - 0x1c]
mov dword [ebp + 8], eax
test eax, eax
jl 0x834ec0a7
mov ecx, dword [ebp + 0x20]
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
lea ecx, [ecx + edx]
je 0x834ebf9f
mov byte [ecx], 0
inc ecx
dec eax
jne 0x834ebf98
push dword [ebx + 0xc]
call dword [ebp - 0x20]
mov dword [ebp + 8], eax
test eax, eax
jl 0x834ec0a7
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x10]
lea eax, [ebx + 0xc]
push edi
push eax
push dword [esi + 0x14]
call dword [ebp + 0x14]
mov dword [ebp + 8], eax
test eax, eax
jl 0x834ec0a7
mov edi, dword [ebp + 0x10]
jmp 0x834ebff7
mov edi, dword [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push edi
call fcn.834ef428
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esi + 0xc]
add esp, 0xc
sub eax, ecx
lea ecx, [edi + ecx]
je 0x834ebff7
mov byte [ecx], 0
inc ecx
dec eax
jne 0x834ebff0
xor eax, eax
cmp dword [esi + 0xc], eax
jbe 0x834ec008
xor byte [eax + edi], 0x36
inc eax
cmp eax, dword [esi + 0xc]
jb 0x834ebffe
push 0
push dword [esi + 0xc]
push edi
push dword [ebx + 0xc]
call dword [ebp - 8]
mov dword [ebp + 8], eax
test eax, eax
jge 0x834ec02f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x834ec0a7
mov byte [edi], 0
inc edi
dec eax
jne 0x834ec026
jmp 0x834ec0a7
xor eax, eax
cmp dword [esi + 0xc], eax
jbe 0x834ec040
xor byte [eax + edi], 0x6a
inc eax
cmp eax, dword [esi + 0xc]
jb 0x834ec036
push 0
push dword [esi + 0xc]
push edi
push dword [ebx + 0x10]
call dword [ebp - 8]
mov dword [ebp + 8], eax
test eax, eax
mov eax, dword [esi + 0xc]
jge 0x834ec063
test eax, eax
je 0x834ec0a7
mov byte [edi], 0
inc edi
dec eax
jne 0x834ec05a
jmp 0x834ec0a7
test eax, eax
je 0x834ec095
mov byte [edi], 0
inc edi
dec eax
jne 0x834ec067
jmp 0x834ec095
push 0
push dword [ebp + 0x1c]
lea edx, [ecx + 0xf]
push dword [ebp + 0x18]
and edx, 0xfffffff0
sub eax, edx
add eax, ecx
push eax
push edx
lea eax, [ebx + 0xc]
push eax
push dword [esi + 0x14]
call dword [ebp + 0x14]
mov dword [ebp + 8], eax
test eax, eax
jl 0x834ec0a7
mov eax, dword [ebp + 0xc]
and dword [ebp + 8], 0
mov dword [eax], ebx
jmp 0x834ec0bb
mov dword [ebp + 8], 0xc000000d
cmp dword [ebp - 4], 0
je 0x834ec0b5
push dword [ebp - 4]
call fcn.834f1850
cmp dword [ebp + 8], 0
jl 0x834ec0c1
push esi
call fcn.834e9d48
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret 0x1c