Function at 0x1003a4b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ca280
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x100f2040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
cmp word [ebx + 8], 0
mov dword [ebp - 4], 0
jbe 0x1003a94d
cmp word [esi + 0x28], 0
jg 0x1003a94d
movaps xmm0, xmmword [str.nISYTSZ]
xor ecx, ecx
mov byte [esi + 0x20], 0
mov dword [esi + 0x24], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x70d0d66
mov dword [ebp - 0x18], 0x600d0d
mov al, byte [ebp + ecx - 0x2b]
xor al, byte [ebp - 0x2c]
mov byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x16
jb 0x1003a533
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x2b]
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x38], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a570
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.10003370
mov byte [ebp - 4], 1
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1003a622
push 4
push eax
call edi
test eax, eax
jne 0x1003a622
cmp dword [ebp - 0x38], 0xf
lea ecx, [ebp - 0x4c]
cmova ecx, dword [ebp - 0x4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a5b5
sub ecx, edx
mov dword [ebp - 0x30], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1008c200
add esp, 0xc
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0xf
lea esi, [edi + 0x20]
cmova ecx, dword [ebp - 0x4c]
push dword [ebp - 0x30]
push ecx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100e6db0]
push edi
call fcn.100891b0
mov esi, dword [ebp - 0x54]
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0x50]
push 8
push eax
mov dword [ebp - 0x50], 0
call fcn.100891b0
movaps xmm0, xmmword [0x100e9900]
add esp, 8
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x7b7b106b
xor ecx, ecx
mov dword [ebp - 0x18], 0x167b7b71
mov byte [ebp - 0x14], 0
mov al, byte [ebp + ecx - 0x2b]
xor al, byte [ebp - 0x2c]
mov byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x17
jb 0x1003a662
xorps xmm0, xmm0
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2b]
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x38], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a6a0
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.10003370
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1003a747
push 4
push eax
call edi
test eax, eax
jne 0x1003a747
cmp dword [ebp - 0x38], 0xf
lea ecx, [ebp - 0x4c]
cmova ecx, dword [ebp - 0x4c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a6e0
sub ecx, edx
mov dword [ebp - 0x30], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1008c200
add esp, 0xc
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0xf
lea esi, [edi + 0x20]
cmova ecx, dword [ebp - 0x4c]
push dword [ebp - 0x30]
push ecx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100e6db0]
push edi
call fcn.100891b0
mov esi, dword [ebp - 0x54]
add esp, 4
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0x50]
push 8
push eax
mov dword [ebp - 0x50], 0
call fcn.100891b0
add esp, 8
cmp dword [ebx + 0x20], 0
jne 0x1003a87c
mov dl, 0x5a
mov dword [ebp - 0x20], 0x3f33095a
mov dword [ebp - 0x1c], 0x197a3f3d
xor ecx, ecx
mov dword [ebp - 0x18], 0x343b36
nop dword [eax + eax]
xor byte [ebp + ecx - 0x1f], dl
inc ecx
cmp ecx, 0xa
jae 0x1003a79f
mov dl, byte [ebp - 0x20]
jmp 0x1003a790
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x1f]
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x38], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a7c5
sub ecx, edx
lea eax, [ebp - 0x1f]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.10003370
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1003a90f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a90f
cmp dword [ebp - 0x38], 0xf
lea ecx, [ebp - 0x4c]
cmova ecx, dword [ebp - 0x4c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a810
sub ecx, edx
mov dword [ebp - 0x30], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1008c200
add esp, 0xc
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0xf
lea esi, [edi + 0x20]
cmova ecx, dword [ebp - 0x4c]
push dword [ebp - 0x30]
push ecx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100e6db0]
push edi
call fcn.100891b0
mov esi, dword [ebp - 0x54]
add esp, 4
jmp 0x1003a90f
cmp dword [ebx + 0x24], 0xf
lea eax, [ebx + 0x10]
movaps xmm0, xmmword [0x100e8ce0]
cmova eax, dword [ebx + 0x10]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x3a
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x27]
xor al, byte [ebp - 0x28]
mov byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x10
jb 0x1003a8a0
sub esp, 0x1c
mov byte [ebp - 0x17], 0
mov edx, esp
lea ecx, [ebp - 0x27]
xorps xmm0, xmm0
lea edi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a8e0
sub ecx, edi
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x50]
push eax
call fcn.1000d650
add esp, 0x24
mov byte [ebp - 4], 4
mov edx, eax
mov ecx, dword [esi + 0x10]
call fcn.1001e150
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0x50]
push 8
push eax
mov dword [ebp - 0x50], 0
call fcn.100891b0
mov ecx, dword [esi]
add esp, 8
push 2
call dword [0x100e6e4c]
mov ax, word [ebx + 8]
mov ecx, esi
mov word [esi + 0x28], ax
mov byte [esi + 0x21], 1
call fcn.1003abc0
lea ecx, [ebx + 0xc]
call fcn.10002f50
mov eax, dword [ebx + 0xc]
push 8
push eax
mov dword [ebx + 0xc], 0
call fcn.100891b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20