Function at 0x1003ad70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x49c], eax
mov ebx, ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp + 0x1c]
cmp dword [ebx + 0xa4], 1
push esi
mov dword [ebp - 0x48c], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x4c0], eax
jne 0x1003b34b
mov eax, dword [ebx + 4]
mov dword [ebp - 0x4a0], eax
add eax, 0xfffffff0
cmp eax, 0x3f0
ja 0x1003b34b
mov ecx, dword [ebx + 0xa8]
call fcn.10014ac0
mov dword [ebp - 0x4a4], eax
test eax, eax
je 0x1003b34b
movzx edi, byte [eax + 8]
mov dword [ebp - 0x488], edi
lea eax, [edi + edi]
lea esi, [eax + 2]
mov dword [ebp - 0x4ac], eax
cmp esi, dword [ebp - 0x4a0]
ja 0x1003b34b
lea eax, [ebp - 0x484]
mov ecx, ebx
push eax
push dword [ebp - 0x48c]
push dword [ebp - 0x49c]
call fcn.10039da0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003b30e
mov ebx, dword [ebp - 0x4a4]
xorps xmm0, xmm0
movq qword [ebp - 0x498], xmm0
mov dword [ebp - 0x490], eax
mov eax, dword [ebx + 0x20]
call eax
mov dword [ebp - 0x494], eax
test eax, eax
jne 0x1003ae70
mov eax, dword [ebp - 0x498]
mov ebx, 0xffffae80
test eax, eax
je 0x1003b30e
jmp 0x1003b2d1
mov dword [ebp - 0x498], ebx
lea eax, [ebp - 0x44]
push 0x40
xor ebx, ebx
mov dword [ebp - 0x48c], edi
push ebx
push eax
call fcn.10046690
mov eax, dword [ebp - 0x498]
add esp, 0xc
mov dword [ebp - 0x49c], ebx
test eax, eax
jne 0x1003aea1
xor cl, cl
jmp 0x1003aea4
mov cl, byte [eax + 8]
movzx edx, cl
lea esi, [ebp - 0x483]
mov dword [ebp - 0x4b4], edx
test edi, edi
je 0x1003b05e
mov ecx, edi
nop dword [eax]
cmp ecx, edx
mov edi, ecx
cmovae edi, edx
mov dword [ebp - 0x4b8], edi
test eax, eax
je 0x1003b053
push dword [ebp - 0x494]
mov eax, dword [eax + 0x10]
call eax
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1003b058
mov ecx, dword [ebp - 0x498]
test ecx, ecx
je 0x1003b053
mov eax, dword [ebp - 0x4a0]
sub eax, dword [ebp - 0x488]
dec eax
push eax
lea eax, [ebp - 0x483]
add eax, dword [ebp - 0x488]
push eax
push dword [ebp - 0x494]
mov eax, dword [ecx + 0x14]
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003b058
mov eax, dword [ebp - 0x498]
test eax, eax
je 0x1003b053
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x49c]
push 4
push ecx
push dword [ebp - 0x494]
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003b058
mov eax, dword [ebp - 0x498]
test eax, eax
je 0x1003b053
mov eax, dword [eax + 0x18]
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x494]
call eax
mov ebx, eax
add esp, 8
mov dword [ebp - 0x4b0], ebx
test ebx, ebx
jne 0x1003b058
xor ecx, ecx
test edi, edi
je 0x1003b02c
cmp edi, 0x40
jb 0x1003b020
lea edx, [esi - 1]
lea eax, [ebp + edi - 0x45]
add edx, edi
cmp esi, eax
ja 0x1003afb4
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x1003b020
mov eax, edi
lea ebx, [ebp - 0x24]
and eax, 0xffffffc0
lea edi, [ebp - 0x44]
nop
movups xmm0, xmmword [esi]
lea edx, [ebp - 0x14]
movups xmm1, xmmword [edi + 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 [ebx + ecx]
xorps xmm1, xmm0
movups xmmword [esi + 0x20], xmm1
movups xmm1, xmmword [edx + ecx]
add ecx, 0x40
movups xmm0, xmmword [esi + 0x30]
mov edx, ecx
xorps xmm1, xmm0
movups xmmword [esi + 0x30], xmm1
add esi, 0x40
cmp ecx, eax
jb 0x1003afc0
mov edi, dword [ebp - 0x4b8]
mov ebx, dword [ebp - 0x4b0]
cmp edx, edi
jae 0x1003b02c
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x44]
inc ecx
xor byte [esi], al
inc esi
cmp ecx, edi
jb 0x1003b020
mov ecx, dword [ebp - 0x48c]
inc byte [ebp - 0x499]
sub ecx, edi
mov dword [ebp - 0x48c], ecx
je 0x1003b058
mov eax, dword [ebp - 0x498]
mov edx, dword [ebp - 0x4b4]
jmp 0x1003aec0
mov ebx, 0xffffaf00
mov edi, dword [ebp - 0x488]
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
mov eax, dword [fcn.10046690]
call eax
add esp, 0xc
test ebx, ebx
jne 0x1003b2ae
mov edx, dword [ebp - 0x4a0]
lea eax, [ebp - 0x498]
push eax
lea esi, [ebp - 0x483]
sub edx, edi
lea eax, [ebp - 0x483]
add esi, edi
push edi
push eax
dec edx
mov ecx, esi
call fcn.1003a710
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003b2ae
mov eax, dword [ebp - 0x498]
test eax, eax
je 0x1003b10c
mov ecx, dword [ebp - 0x494]
test ecx, ecx
je 0x1003b0cf
mov eax, dword [eax + 0x24]
push ecx
call eax
mov eax, dword [ebp - 0x498]
add esp, 4
mov ecx, dword [ebp - 0x490]
test ecx, ecx
je 0x1003b0f7
mov eax, dword [eax + 0xc]
add eax, eax
push eax
mov eax, dword [fcn.10046690]
push 0
push ecx
call eax
push dword [ebp - 0x490]
call fcn.1004b0ed
add esp, 0x10
push 0xc
lea eax, [ebp - 0x498]
push 0
push eax
mov eax, dword [fcn.10046690]
call eax
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x4a4]
push 0
push 0
mov eax, dword [eax + 0x1c]
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003b30e
mov bl, byte [ebp - 0x484]
xor ecx, ecx
test edi, edi
je 0x1003b1c5
cmp edi, 0x20
jb 0x1003b1b4
mov eax, edi
lea edx, [ebp - 0x84]
and eax, 0xffffffe0
xorps xmm3, xmm3
xorps xmm2, xmm2
movups xmm0, xmmword [esi]
movups xmm1, xmmword [edx + ecx]
xorps xmm1, xmm0
movups xmm0, xmmword [esi + 0x10]
add esi, 0x20
orps xmm3, xmm1
movups xmm1, xmmword [ebp + ecx - 0x74]
add ecx, 0x20
xorps xmm1, xmm0
orps xmm2, xmm1
cmp ecx, eax
jb 0x1003b155
orps xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
orps xmm2, xmm0
movd eax, xmm2
or bl, al
cmp ecx, edi
jae 0x1003b1c5
mov al, byte [ebp + ecx - 0x84]
inc ecx
xor al, byte [esi]
inc esi
or bl, al
cmp ecx, edi
jb 0x1003b1b4
mov eax, dword [ebp - 0x4a0]
xor edi, edi
sub eax, dword [ebp - 0x4ac]
xor cl, cl
add eax, 0xfffffffe
mov dword [ebp - 0x48c], edi
xor edx, edx
mov dword [ebp - 0x49c], edi
mov dword [ebp - 0x4a4], eax
cmp eax, 2
jb 0x1003b236
or cl, byte [esi + edx]
mov al, cl
neg al
or al, cl
or cl, byte [esi + edx + 1]
not al
add edx, 2
movzx eax, al
shr eax, 7
add edi, eax
mov al, cl
neg al
mov dword [ebp - 0x4ac], edi
or al, cl
not al
movzx eax, al
shr eax, 7
add dword [ebp - 0x48c], eax
mov eax, dword [ebp - 0x4a4]
dec eax
cmp edx, eax
jb 0x1003b1f1
mov eax, dword [ebp - 0x4a4]
cmp edx, eax
jae 0x1003b251
or cl, byte [edx + esi]
mov al, cl
neg al
or al, cl
not al
movzx eax, al
shr eax, 7
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp - 0x48c]
add eax, edi
add eax, dword [ebp - 0x49c]
add esi, eax
mov al, byte [esi]
inc esi
xor al, 1
or bl, al
je 0x1003b274
mov ebx, 0xffffbf00
jmp 0x1003b30e
mov eax, dword [ebp - 0x4a0]
sub eax, esi
lea eax, [ebp + eax - 0x484]
cmp eax, dword [ebp + 0x24]
jbe 0x1003b292
mov ebx, 0xffffbc00
jmp 0x1003b30e
mov ecx, dword [ebp - 0x4bc]
push eax
push esi
push dword [ebp - 0x4c0]
mov dword [ecx], eax
call fcn.10047450
add esp, 0xc
xor ebx, ebx
jmp 0x1003b30e
mov eax, dword [ebp - 0x498]
test eax, eax
je 0x1003b30e
mov ecx, dword [ebp - 0x494]
test ecx, ecx
je 0x1003b2d1
mov eax, dword [eax + 0x24]
push ecx
call eax
mov eax, dword [ebp - 0x498]
add esp, 4
mov ecx, dword [ebp - 0x490]
test ecx, ecx
je 0x1003b2f9
mov eax, dword [eax + 0xc]
add eax, eax
push eax
mov eax, dword [fcn.10046690]
push 0
push ecx
call eax
push dword [ebp - 0x490]
call fcn.1004b0ed
add esp, 0x10
push 0xc
lea eax, [ebp - 0x498]
push 0
push eax
mov eax, dword [fcn.10046690]
call eax
add esp, 0xc
push 0x400
lea eax, [ebp - 0x484]
push 0
push eax
mov eax, dword [fcn.10046690]
call eax
push 0x40
lea eax, [ebp - 0x84]
push 0
push eax
mov eax, dword [fcn.10046690]
call eax
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10045387
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffbf80
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10045387
mov esp, ebp
pop ebp
ret