Function at 0x10034ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x10035193
push edi
cmp dword [esi + 0x24], ebx
jge 0x10034f74
test ebx, ebx
je 0x10034f2b
lea eax, [ebx*4]
push 0x10
push eax
call fcn.10071340
add esp, 8
mov edi, eax
jmp 0x10034f2d
xor edi, edi
mov edx, dword [esi + 0x20]
xor ecx, ecx
test edx, edx
jle 0x10034f44
mov eax, dword [esi + 0x28]
mov eax, dword [eax + ecx*4]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, edx
jl 0x10034f36
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10034f61
cmp byte [esi + 0x2c], 0
je 0x10034f5a
push eax
call fcn.10071350
add esp, 4
mov dword [esi + 0x28], 0
mov ecx, dword [ebp - 4]
mov edx, ebx
mov byte [esi + 0x2c], 1
sub edx, ecx
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], ebx
jmp 0x10034f7a
mov edx, ebx
mov ecx, eax
sub edx, eax
cmp edx, 8
jb 0x10034fe0
mov eax, dword [esi + 0x28]
mov edi, dword [ebp - 4]
lea edi, [eax + edi*4]
mov dword [ebp - 8], edi
lea eax, [eax + ebx*4]
lea edi, [esi + 0x28]
add eax, 0xfffffffc
cmp dword [ebp - 8], edi
ja 0x10034f9d
cmp eax, edi
jae 0x10034fe0
and edx, 0x80000007
jns 0x10034faa
dec edx
or edx, 0xfffffff8
inc edx
mov eax, ebx
sub eax, edx
nop
add ecx, 8
cmp ecx, eax
jl 0x10034fb0
sub eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
add eax, 7
cdq
mov dword [ebp - 0xc], ecx
and edx, 7
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 3
shl ecx, 5
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
jge 0x10034fef
nop
mov eax, dword [esi + 0x28]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x10034fe0
mov dword [esi + 0x20], ebx
mov edi, dword [esi + 0x34]
mov dword [ebp - 0x10], edi
cmp ebx, edi
jl 0x100350ef
jle 0x1003506f
cmp dword [esi + 0x38], ebx
jge 0x1003506f
test ebx, ebx
je 0x10035024
lea eax, [ebx*4]
push 0x10
push eax
call fcn.10071340
add esp, 8
mov dword [ebp - 8], eax
mov edx, eax
jmp 0x10035029
xor edx, edx
mov dword [ebp - 8], edx
mov eax, dword [esi + 0x34]
xor ecx, ecx
test eax, eax
jle 0x10035045
mov edi, eax
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + ecx*4]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, edi
jl 0x10035034
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10035062
cmp byte [esi + 0x40], 0
je 0x1003505b
push eax
call fcn.10071350
add esp, 4
mov dword [esi + 0x3c], 0
mov eax, dword [ebp - 8]
mov byte [esi + 0x40], 1
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], ebx
mov edx, ebx
mov ecx, edi
sub edx, edi
cmp edi, ebx
jge 0x100350ef
cmp edx, 8
jb 0x100350e0
mov eax, dword [esi + 0x3c]
lea ecx, [eax + edi*4]
lea eax, [eax + ebx*4]
mov dword [ebp - 0xc], ecx
add eax, 0xfffffffc
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x3c]
cmp ecx, eax
mov ecx, edi
ja 0x1003509e
cmp dword [ebp - 0x10], eax
jae 0x100350e0
and edx, 0x80000007
jns 0x100350ab
dec edx
or edx, 0xfffffff8
inc edx
mov eax, ebx
sub eax, edx
nop
add ecx, 8
cmp ecx, eax
jl 0x100350b0
sub eax, edi
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0xc]
add eax, 7
cdq
and edx, 7
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 3
shl ecx, 5
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
jge 0x100350ef
nop dword [eax]
mov eax, dword [esi + 0x3c]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x100350e0
xor ecx, ecx
mov dword [esi + 0x34], ebx
lea edi, [esi + 0x28]
test ebx, ebx
jle 0x1003511f
nop dword [eax + eax]
mov eax, dword [edi]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x10035100
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x10035110
xor ebx, ebx
cmp dword [ebp - 4], ebx
jle 0x10035192
xor eax, eax
mov dword [ebp - 8], eax
nop dword [eax + eax]
mov ecx, dword [esi + 0x10]
add ecx, eax
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ecx]
shl edx, 0x10
or edx, dword [eax + 0xc]
mov eax, edx
shl eax, 0xf
not eax
add edx, eax
mov eax, edx
shr eax, 0xa
xor eax, edx
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 6
xor ecx, eax
mov eax, ecx
shl eax, 0xb
not eax
add ecx, eax
mov eax, dword [esi + 0xc]
dec eax
mov edx, ecx
shr edx, 0x10
xor edx, ecx
mov ecx, dword [esi + 0x3c]
and edx, eax
mov eax, dword [edi]
mov eax, dword [eax + edx*4]
mov dword [ecx + ebx*4], eax
mov eax, dword [edi]
mov dword [eax + edx*4], ebx
inc ebx
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp ebx, dword [ebp - 4]
jl 0x10035130
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret