Function at 0x1000c4d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
xor edx, edx
cmp ebx, edx
push ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 8], 1
je 0x1000c509
cmp ebp, 8
jl 0x1000c509
cmp ebp, 0x4000
jg 0x1000c509
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
jne 0x1000c511
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
cmp ecx, 0x80
jne 0x1000c51d
mov dword [esp + 8], edx
push esi
lea esi, [ebp + ebp*4]
push edi
shl esi, 2
push esi
call dword [sym.libxml2.dll_xmlMalloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx + 4], edi
jne 0x1000c54a
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov dword [ebx + 4], eax
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [ebx + 8], ebp
jle 0x1000c773
mov edi, dword [esp + 0xc]
add edi, 4
mov dword [esp + 0x14], eax
jmp 0x1000c580
mov eax, dword [edi + 8]
test eax, eax
je 0x1000c63e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c598
mov ebp, dword [edi + 0xc]
jmp 0x1000c5b6
cmp dword [ebx + 8], 0x80
mov edx, dword [edi + 4]
jne 0x1000c5ad
mov ecx, dword [edi]
call fcn.1000c220
jmp 0x1000c5b4
mov esi, dword [edi]
call fcn.1000c170
mov ebp, eax
xor edx, edx
mov eax, ebp
div dword [ebx + 8]
mov eax, dword [ebx + 4]
lea esi, [edx + edx*4]
shl esi, 2
mov ecx, dword [eax + esi + 0xc]
add eax, esi
test ecx, ecx
jne 0x1000c602
lea ecx, [edi - 4]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 4]
mov dword [esi + edx], 0
mov eax, dword [ebx + 4]
mov dword [eax + esi + 0x10], ebp
jmp 0x1000c63e
push 0x14
call dword [sym.libxml2.dll_xmlMalloc]
add esp, 4
test eax, eax
je 0x1000c636
mov ecx, dword [edi]
mov dword [eax + 4], ecx
mov edx, dword [edi + 4]
mov dword [eax + 8], edx
mov dword [eax + 0x10], ebp
mov ecx, dword [ebx + 4]
mov edx, dword [esi + ecx]
mov dword [eax], edx
mov dword [eax + 0xc], 1
mov ecx, dword [ebx + 4]
mov dword [esi + ecx], eax
jmp 0x1000c63e
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x14]
add edi, 0x14
dec eax
mov dword [esp + 0x14], eax
jne 0x1000c580
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x1000c773
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
test esi, esi
je 0x1000c759
mov eax, dword [esp + 0x10]
test eax, eax
mov ecx, dword [esi]
mov dword [esp + 0x20], ecx
je 0x1000c689
mov edi, dword [esi + 0x10]
jmp 0x1000c6e0
cmp dword [ebx + 8], 0x80
mov edx, dword [esi + 8]
jne 0x1000c6a1
mov ecx, dword [esi + 4]
call fcn.1000c220
mov edi, eax
jmp 0x1000c6e0
test edx, edx
mov edi, dword [esi + 4]
jle 0x1000c6de
test edi, edi
je 0x1000c6de
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x1000c6cc
movzx ebp, byte [ecx + edi]
add ebp, eax
imul ebp, ebp, 0x401
mov eax, ebp
shr ebp, 6
xor eax, ebp
inc ecx
cmp ecx, edx
jl 0x1000c6b4
lea eax, [eax + eax*8]
mov edi, eax
shr edi, 0xb
xor edi, eax
imul edi, edi, 0x8001
jmp 0x1000c6e0
xor edi, edi
xor edx, edx
mov eax, edi
div dword [ebx + 8]
lea ecx, [edx + edx*4]
mov edx, dword [ebx + 4]
shl ecx, 2
lea eax, [edx + ecx]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x1000c740
mov edx, esi
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [edx + 8]
mov dword [eax + 8], ebp
mov ebp, dword [edx + 0xc]
mov dword [eax + 0xc], ebp
mov edx, dword [edx + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebx + 4]
mov dword [ecx + eax], 0
mov edx, dword [ebx + 4]
mov dword [edx + ecx + 0xc], 1
mov eax, dword [ebx + 4]
push esi
mov dword [eax + ecx + 0x10], edi
call dword [sym.libxml2.dll_xmlFree]
add esp, 4
jmp 0x1000c74d
mov edx, dword [eax]
mov dword [esi], edx
mov dword [esi + 0x10], edi
mov eax, dword [ebx + 4]
mov dword [ecx + eax], esi
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x1000c676
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x1000c668
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.libxml2.dll_xmlFree]
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x18
ret