Function at 0x1003a8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], ecx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x6c], esi
push edi
test eax, eax
je 0x1003ac40
mov ecx, dword [ebx + 0xa8]
call fcn.10014ac0
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1003ac40
movzx edi, byte [eax + 8]
lea eax, [edx + 2]
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x5c], edi
lea eax, [eax + edi*2]
cmp eax, edx
jb 0x1003ac40
cmp ebx, eax
jb 0x1003ac40
push ebx
push 0
push esi
call fcn.10046690
mov byte [esi], 0
inc esi
mov ecx, esi
push edi
push ecx
push dword [ebp - 0x60]
call dword [ebp - 0x58]
add esp, 0x18
test eax, eax
je 0x1003a997
pop edi
pop esi
add eax, 0xffffbb80
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045387
mov esp, ebp
pop ebp
ret
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
push 0
push 0
mov eax, dword [eax + 0x1c]
call eax
add esp, 0xc
test eax, eax
jne 0x1003ac45
mov edx, dword [ebp - 0x64]
mov eax, ebx
mov ecx, dword [ebp - 0x58]
sub eax, edx
sub eax, edi
push edx
push dword [ebp - 0x68]
mov byte [ecx + eax - 2], 1
dec ecx
add eax, ecx
push eax
call fcn.10047450
mov eax, dword [ebp - 0x48]
xorps xmm0, xmm0
add esp, 0xc
movq qword [ebp - 0x54], xmm0
mov dword [ebp - 0x4c], 0
mov eax, dword [eax + 0x20]
call eax
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x1003a9fe
mov ebx, 0xffffae80
jmp 0x1003abbc
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x54], eax
sub ebx, edi
mov eax, dword [ebp - 0x6c]
push edx
inc eax
lea ecx, [ebx - 1]
add eax, edi
mov dword [ebp - 0x68], ecx
mov edx, ecx
push edi
push esi
mov ecx, eax
mov dword [ebp - 0x64], eax
call fcn.1003a710
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003abb9
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10046690
mov eax, dword [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x48], ebx
test eax, eax
jne 0x1003aa4e
xor cl, cl
jmp 0x1003aa51
mov cl, byte [eax + 8]
movzx ecx, cl
mov dword [ebp - 0x70], ecx
test edi, edi
je 0x1003aba7
nop
cmp dword [ebp - 0x5c], ecx
cmovae edi, ecx
mov dword [ebp - 0x58], edi
test eax, eax
je 0x1003aba2
push dword [ebp - 0x50]
mov eax, dword [eax + 0x10]
call eax
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1003aba7
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1003aba2
push dword [ebp - 0x68]
mov eax, dword [eax + 0x14]
push dword [ebp - 0x64]
push dword [ebp - 0x50]
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003aba7
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1003aba2
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x48]
push 4
push ecx
push dword [ebp - 0x50]
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003aba7
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1003aba2
mov eax, dword [eax + 0x18]
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x50]
call eax
mov ebx, eax
add esp, 8
mov dword [ebp - 0x60], ebx
test ebx, ebx
jne 0x1003aba7
xor ecx, ecx
test edi, edi
je 0x1003ab8c
cmp edi, 0x40
jb 0x1003ab80
lea edx, [esi - 1]
lea eax, [ebp + edi - 0x45]
add edx, edi
cmp esi, eax
ja 0x1003ab1c
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x1003ab80
mov eax, edi
lea edx, [ebp - 0x44]
and eax, 0xffffffc0
lea edi, [ebp - 0x24]
lea ebx, [ebp - 0x14]
nop word [eax + eax]
movups xmm0, xmmword [esi]
movups xmm1, xmmword [edx + ecx]
xorps xmm1, xmm0
movups xmmword [esi], xmm1
movups xmm0, xmmword [esi + 0x10]
movups xmm1, xmmword [ebp + ecx - 0x34]
xorps xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movups xmm0, xmmword [esi + 0x20]
movups xmm1, xmmword [edi + ecx]
xorps xmm1, xmm0
movups xmmword [esi + 0x20], xmm1
movups xmm0, xmmword [esi + 0x30]
movups xmm1, xmmword [ebx + ecx]
add ecx, 0x40
xorps xmm1, xmm0
movups xmmword [esi + 0x30], xmm1
add esi, 0x40
cmp ecx, eax
jb 0x1003ab30
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x60]
cmp ecx, edi
jae 0x1003ab8c
nop
mov al, byte [ebp + ecx - 0x44]
inc ecx
xor byte [esi], al
inc esi
cmp ecx, edi
jb 0x1003ab80
inc byte [ebp - 0x45]
sub dword [ebp - 0x5c], edi
je 0x1003aba7
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x70]
jmp 0x1003aa60
mov ebx, 0xffffaf00
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
mov eax, dword [fcn.10046690]
call eax
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x1003ac07
test eax, eax
je 0x1003abd3
push eax
mov eax, dword [ecx + 0x24]
call eax
mov ecx, dword [ebp - 0x54]
add esp, 4
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x1003abf5
mov eax, dword [ecx + 0xc]
add eax, eax
push eax
mov eax, dword [fcn.10046690]
push 0
push edx
call eax
push dword [ebp - 0x4c]
call fcn.1004b0ed
add esp, 0x10
push 0xc
lea eax, [ebp - 0x54]
push 0
push eax
mov eax, dword [fcn.10046690]
call eax
add esp, 0xc
test ebx, ebx
je 0x1003ac1e
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045387
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x6c]
mov edx, eax
mov ecx, dword [ebp - 0x74]
push eax
call fcn.10039aa0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045387
mov esp, ebp
pop ebp
ret
mov eax, 0xffffbf80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10045387
mov esp, ebp
pop ebp
ret