Function at 0x1003aeb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], ebx
mov eax, 1
push esi
mov esi, edx
test ebx, ebx
jne 0x1003aed8
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 8
jl 0x1003aecf
cmp esi, 0x4000
jg 0x1003aecf
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
test edx, edx
je 0x1003aecf
xor edx, edx
cmp ecx, 0x80
push edi
cmove eax, edx
lea edi, [esi + esi*4]
shl edi, 2
push edi
mov dword [ebp - 0x10], eax
call dword [sym.dspconv.dll_xmlMalloc]
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
jne 0x1003af2b
mov esi, dword [ebp - 0xc]
or eax, 0xffffffff
pop edi
mov dword [ebx + 4], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push eax
call sub.MSVCR120.dll_memset
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [ebx + 8], esi
test ecx, ecx
jle 0x1003b11d
mov esi, dword [ebp - 0xc]
mov eax, ecx
add esi, 4
mov dword [ebp - 4], ecx
cmp dword [esi + 8], 0
je 0x1003b002
cmp dword [ebp - 0x10], 0
je 0x1003af65
mov edi, dword [esi + 0xc]
jmp 0x1003af81
cmp dword [ebx + 8], 0x80
mov edx, dword [esi + 4]
mov ecx, dword [esi]
jne 0x1003af7a
call fcn.1003aba0
jmp 0x1003af7f
call fcn.1003aae0
mov edi, eax
xor edx, edx
mov eax, edi
div dword [ebx + 8]
lea ecx, [edx + edx*4]
mov edx, dword [ebx + 4]
shl ecx, 2
mov dword [ebp - 0x1c], ecx
cmp dword [edx + ecx + 0xc], 0
jne 0x1003afbf
movdqu xmm0, xmmword [esi - 4]
movdqu xmmword [edx + ecx], xmm0
mov eax, dword [esi + 0xc]
mov dword [edx + ecx + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [ecx + eax], 0
mov eax, dword [ebx + 4]
mov dword [eax + ecx + 0x10], edi
jmp 0x1003afff
push 0x14
call dword [sym.dspconv.dll_xmlMalloc]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003aff8
mov eax, dword [esi]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esi + 4]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], edi
mov eax, dword [ebx + 4]
mov eax, dword [edx + eax]
mov dword [ecx], eax
mov dword [ecx + 0xc], 1
mov eax, dword [ebx + 4]
mov dword [edx + eax], ecx
jmp 0x1003afff
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 4]
add esi, 0x14
dec eax
mov dword [ebp - 4], eax
jne 0x1003af50
mov ecx, dword [ebp - 8]
test ecx, ecx
jle 0x1003b11d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax]
test esi, esi
je 0x1003b10d
lea ebx, [ebx]
cmp dword [ebp - 0x10], 0
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
je 0x1003b040
mov ecx, dword [esi + 0x10]
jmp 0x1003b09f
cmp dword [ebx + 8], 0x80
jne 0x1003b058
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
call fcn.1003aba0
mov ecx, eax
jmp 0x1003b09f
mov edi, dword [esi + 8]
mov ebx, dword [esi + 4]
test edi, edi
jle 0x1003b09a
test ebx, ebx
je 0x1003b09a
xor eax, eax
xor edx, edx
test edi, edi
jle 0x1003b088
mov edi, edi
movzx ecx, byte [edx + ebx]
inc edx
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
cmp edx, edi
jl 0x1003b070
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul ecx, eax, 0x8001
jmp 0x1003b09c
xor ecx, ecx
mov ebx, dword [ebp - 0x14]
xor edx, edx
mov edi, dword [ebx + 4]
mov eax, ecx
div dword [ebx + 8]
lea edx, [edx + edx*4]
shl edx, 2
add edi, edx
cmp dword [edi + 0xc], 0
jne 0x1003b0ed
movdqu xmm0, xmmword [esi]
push esi
movdqu xmmword [edi], xmm0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [edx + eax], 0
mov eax, dword [ebx + 4]
mov dword [eax + edx + 0xc], 1
mov eax, dword [ebx + 4]
mov dword [eax + edx + 0x10], ecx
call dword [sym.dspconv.dll_xmlFree]
add esp, 4
jmp 0x1003b0fa
mov eax, dword [edi]
mov dword [esi], eax
mov dword [esi + 0x10], ecx
mov eax, dword [ebx + 4]
mov dword [edx + eax], esi
mov eax, dword [ebp - 0x1c]
mov esi, eax
test eax, eax
jne 0x1003b030
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add eax, 0x14
dec ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jne 0x1003b020
push dword [ebp - 0xc]
call dword [sym.dspconv.dll_xmlFree]
mov eax, dword [ebp - 0x18]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret