Function at 0x1003af2f
Capabilities:
Encode data using xor

Disassembly:
push 0x84
mov eax, 0x1004964a
call fcn.10044ac9
mov esi, ecx
push 2
push dword [esi + 0x54]
call fcn.1000e831
pop ecx
pop ecx
mov ecx, dword [0x1005afc0]
test ecx, ecx
je 0x1003af7e
cmp dword [esi + 0x68], 1
jne 0x1003af64
mov eax, dword [ecx + 0x44]
cmp eax, dword [esi + 0x64]
jb 0x1003af72
cmp dword [esi + 0x68], 2
jne 0x1003af7e
mov eax, dword [ecx + 0x48]
cmp eax, dword [esi + 0x64]
jae 0x1003af7e
push 7
push dword [esi + 0x54]
call fcn.1000e831
pop ecx
pop ecx
push dword [esi + 0x60]
call fcn.100062d1
mov edi, eax
pop ecx
test edi, edi
je 0x1003b1e2
mov dword [ebp - 0x14], 0xf
push dword [esi + 0x60]
movzx eax, byte [edi + 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.10006302
mov dword [ebp - 0x48], eax
pop ecx
pop ecx
test eax, eax
je 0x1003afc5
cmp dword [eax + 0x48], ebx
je 0x1003afc5
push dword [esi + 0x60]
push eax
push ebx
jmp 0x1003afca
push dword [esi + 0x60]
push ebx
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.100073aa
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10006163
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.10001cd4
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.10007607
push eax
push dword [esi + 0x40]
mov byte [ebp - 4], 1
call fcn.1000f1a6
add esp, 0x14
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
push ebx
push 1
call fcn.10001cd4
cmp dword [esi + 0x68], 1
jne 0x1003b090
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x60]
push eax
call fcn.1000b16c
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x1003b038
mov eax, dword [eax]
movaps xmm0, xmmword [0x10050c30]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], bl
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xf
jb 0x1003b049
sub esp, 0x18
mov byte [ebp - 0x30], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x78]
push eax
call fcn.1001b71b
push eax
push dword [esi + 0x44]
mov byte [ebp - 4], 3
call fcn.1000f1a6
add esp, 0x28
lea ecx, [ebp - 0x78]
push ebx
push 1
call fcn.10001cd4
lea ecx, [ebp - 0x60]
jmp 0x1003b109
cmp dword [esi + 0x68], 2
jne 0x1003b114
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x78]
push eax
call fcn.1000b16c
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x1003b0b3
mov eax, dword [eax]
movaps xmm0, xmmword [0x10050cd0]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], bl
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xf
jb 0x1003b0c4
sub esp, 0x18
mov byte [ebp - 0x30], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x60]
push eax
call fcn.1001b71b
push eax
push dword [esi + 0x44]
mov byte [ebp - 4], 5
call fcn.1000f1a6
add esp, 0x28
lea ecx, [ebp - 0x60]
push ebx
push 1
call fcn.10001cd4
lea ecx, [ebp - 0x78]
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.10001cd4
push 0x2e
push dword [esi + 0x6c]
lea eax, [ebp - 0x78]
push eax
call fcn.1000b16c
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x1003b131
mov eax, dword [eax]
movaps xmm0, xmmword [0x10050d10]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0x12
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x10
jb 0x1003b145
sub esp, 0x18
mov byte [ebp - 0x2f], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x60]
push eax
call fcn.1001b71b
push eax
push dword [esi + 0x48]
mov byte [ebp - 4], 7
call fcn.1000f1a6
add esp, 0x28
lea ecx, [ebp - 0x60]
push ebx
push 1
call fcn.10001cd4
push ebx
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.10001cd4
mov eax, dword [esi + 0x50]
test eax, eax
je 0x1003b48c
lea ecx, [ebp - 0x28]
add eax, 4
push ecx
push eax
call fcn.1000aa9f
mov eax, dword [esi + 0x50]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x50], edi
mov eax, dword [esi + 0x50]
mov dword [eax + 0x54], ecx
mov eax, dword [esi + 0x50]
mov dword [eax + 0x58], 1
test ecx, ecx
je 0x1003b1d9
movsx ecx, word [ecx + 0x56]
movsx eax, word [edi + 0x66]
jmp 0x1003b45c
movsx ecx, word [edi + 0x66]
jmp 0x1003b464
cmp dword [esi + 0x60], 0
jbe 0x1003b49b
cmp dword [esi + 0x60], 0x5f5e100
jae 0x1003b49b
mov eax, dword [esi + 0x74]
sub eax, dword [esi + 0x70]
sar eax, 2
push eax
push 1
call fcn.1000ae74
pop ecx
pop ecx
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1003b49b
xor ebx, ebx
cmp dword [esi + 0x68], 1
push 0x10
pop edi
jne 0x1003b286
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x78]
push eax
call fcn.1000b16c
add esp, 0xc
mov dword [ebp - 4], 8
cmp dword [eax + 0x14], edi
jb 0x1003b248
mov eax, dword [eax]
movaps xmm0, xmmword [0x10050df0]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], bl
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xf
jb 0x1003b259
sub esp, 0x18
mov byte [ebp - 0x30], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x60]
push eax
call fcn.1001b71b
mov byte [ebp - 4], 9
jmp 0x1003b2eb
cmp dword [esi + 0x68], 2
jne 0x1003b311
push 0x2e
push dword [esi + 0x64]
lea eax, [ebp - 0x78]
push eax
call fcn.1000b16c
add esp, 0xc
mov dword [ebp - 4], 0xa
cmp dword [eax + 0x14], edi
jb 0x1003b2af
mov eax, dword [eax]
movaps xmm0, xmmword [0x10050c40]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], bl
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xf
jb 0x1003b2c0
sub esp, 0x18
mov byte [ebp - 0x30], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x60]
push eax
call fcn.1001b71b
mov byte [ebp - 4], 0xb
push eax
push dword [esi + 0x44]
call fcn.1000f1a6
add esp, 0x28
lea ecx, [ebp - 0x60]
push ebx
push 1
call fcn.10001cd4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
push ebx
push 1
call fcn.10001cd4
push 0x2e
push dword [esi + 0x6c]
lea eax, [ebp - 0x78]
push eax
call fcn.1000b16c
add esp, 0xc
mov dword [ebp - 4], 0xc
cmp dword [eax + 0x14], edi
jb 0x1003b330
mov eax, dword [eax]
movaps xmm0, xmmword [0x10050c70]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0x4f
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, edi
jb 0x1003b344
sub esp, 0x18
mov byte [ebp - 0x2f], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x60]
push eax
call fcn.1001b71b
push eax
push dword [esi + 0x48]
mov byte [ebp - 4], 0xd
call fcn.1000f1a6
add esp, 0x28
lea ecx, [ebp - 0x60]
push ebx
push 1
call fcn.10001cd4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
push ebx
push 1
call fcn.10001cd4
mov edi, dword [ebp - 0x48]
push edi
call fcn.100062d1
mov dword [ebp - 0x2c], eax
pop ecx
test eax, eax
je 0x1003b49b
mov dword [ebp - 0x14], 0xf
movzx eax, byte [eax + 4]
push edi
push eax
mov dword [ebp - 4], 0xe
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.10006302
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1003b3f4
cmp dword [edi + 0x48], ebx
je 0x1003b3f4
push dword [ebp - 0x48]
lea eax, [ebp - 0x60]
push edi
push ebx
push eax
call fcn.100073aa
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10006163
lea ecx, [ebp - 0x60]
jmp 0x1003b419
push dword [ebp - 0x48]
lea eax, [ebp - 0x90]
push ebx
push dword [ebp - 0x2c]
push eax
call fcn.100073aa
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10006163
lea ecx, [ebp - 0x90]
push ebx
push 1
call fcn.10001cd4
mov eax, dword [esi + 0x50]
test eax, eax
je 0x1003b48c
lea ecx, [ebp - 0x28]
add eax, 4
push ecx
push eax
call fcn.1000aa9f
mov eax, dword [esi + 0x50]
mov edx, dword [ebp - 0x2c]
pop ecx
pop ecx
mov dword [eax + 0x50], edx
mov eax, dword [esi + 0x50]
mov dword [eax + 0x54], edi
mov eax, dword [esi + 0x50]
mov dword [eax + 0x58], 1
test edi, edi
je 0x1003b460
movsx ecx, word [edi + 0x56]
movsx eax, word [edx + 0x66]
add ecx, eax
jmp 0x1003b464
movsx ecx, word [edx + 0x66]
mov eax, dword [esi + 0x50]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi + 0x50]
cmp dword [eax], 0
je 0x1003b48c
lea ecx, [ebp - 0x28]
push ecx
push dword [eax]
call fcn.1000ed98
mov eax, dword [esi + 0x50]
push 1
push dword [eax]
call fcn.1000e8b6
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.10001cd4
mov ecx, esi
call fcn.1003c953
mov ecx, esi
call fcn.1003cb78
push 1
push dword [esi + 0x1c]
call fcn.1000e8b6
pop ecx
pop ecx
call fcn.10044a84
ret