Function at 0x1003b06b
Capabilities:
Encode data using xor

Disassembly:
push 0x84
mov eax, 0x10078c19
call fcn.1004605f
mov esi, ecx
mov ecx, dword [esi + 0x54]
mov dl, 2
call fcn.1001034a
mov ecx, dword [0x1009e6f0]
test ecx, ecx
je 0x1003b0b6
cmp dword [esi + 0x68], 1
jne 0x1003b09e
mov eax, dword [ecx + 0x44]
cmp eax, dword [esi + 0x64]
jb 0x1003b0ac
cmp dword [esi + 0x68], 2
jne 0x1003b0b6
mov eax, dword [ecx + 0x48]
cmp eax, dword [esi + 0x64]
jae 0x1003b0b6
mov ecx, dword [esi + 0x54]
mov dl, 7
call fcn.1001034a
mov ecx, dword [esi + 0x60]
call fcn.100087f9
mov edi, eax
test edi, edi
je 0x1003b30a
mov dword [ebp - 0x14], 0xf
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edx, dword [esi + 0x60]
mov cl, byte [edi + 4]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.10008825
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1003b0f9
cmp dword [eax + 0x48], ebx
je 0x1003b0f9
push dword [esi + 0x60]
xor edx, edx
push eax
jmp 0x1003b0ff
push dword [esi + 0x60]
mov edx, edi
push ebx
lea ecx, [ebp - 0x44]
call fcn.100089bb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10003ac6
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.10001e1f
push dword [ebp - 0x48]
mov edx, edi
lea ecx, [ebp - 0x44]
call fcn.10008c17
pop ecx
mov byte [ebp - 4], 1
mov edx, eax
mov ecx, dword [esi + 0x40]
call fcn.10010c45
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.10001e1f
cmp dword [esi + 0x68], 1
jne 0x1003b1c0
mov edx, dword [esi + 0x64]
lea ecx, [ebp - 0x60]
push 0x2e
call fcn.1000d6e8
pop ecx
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1003b167
mov eax, dword [eax]
movaps xmm0, xmmword [str.dDID_D4]
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 0x1003b178
sub esp, 0x18
mov byte [ebp - 0x30], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x78]
push eax
call fcn.10007414
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0x44]
call fcn.10010c45
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.10001e1f
lea ecx, [ebp - 0x60]
jmp 0x1003b237
cmp dword [esi + 0x68], 2
jne 0x1003b242
mov edx, dword [esi + 0x64]
lea ecx, [ebp - 0x78]
push 0x2e
call fcn.1000d6e8
pop ecx
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x1003b1e0
mov eax, dword [eax]
movaps xmm0, xmmword [0x1008f290]
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 0x1003b1f1
sub esp, 0x18
mov byte [ebp - 0x30], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x60]
push eax
call fcn.10007414
add esp, 0x20
mov byte [ebp - 4], 5
mov edx, eax
mov ecx, dword [esi + 0x44]
call fcn.10010c45
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.10001e1f
lea ecx, [ebp - 0x78]
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.10001e1f
mov edx, dword [esi + 0x6c]
lea ecx, [ebp - 0x78]
push 0x2e
call fcn.1000d6e8
pop ecx
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x1003b25c
mov eax, dword [eax]
movaps xmm0, xmmword [0x1008eec0]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0x13
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x10
jb 0x1003b270
sub esp, 0x18
mov byte [ebp - 0x2f], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x60]
push eax
call fcn.10007414
add esp, 0x20
mov byte [ebp - 4], 7
mov edx, eax
mov ecx, dword [esi + 0x48]
call fcn.10010c45
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.10001e1f
push ebx
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.10001e1f
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1003b598
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000cd00
mov eax, dword [esi + 0x50]
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 0x1003b301
movsx ecx, word [ecx + 0x56]
movsx eax, word [edi + 0x66]
jmp 0x1003b56d
movsx ecx, word [edi + 0x66]
jmp 0x1003b575
cmp dword [esi + 0x60], 0
jbe 0x1003b5a7
cmp dword [esi + 0x60], 0x5f5e100
jae 0x1003b5a7
mov edx, dword [esi + 0x74]
sub edx, dword [esi + 0x70]
sar edx, 2
call fcn.1000d355
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1003b5a7
xor ebx, ebx
cmp dword [esi + 0x68], 1
push 0x10
pop edi
jne 0x1003b3a9
mov edx, dword [esi + 0x64]
lea ecx, [ebp - 0x78]
push 0x2e
call fcn.1000d6e8
pop ecx
mov dword [ebp - 4], 8
cmp dword [eax + 0x14], edi
jb 0x1003b368
mov eax, dword [eax]
movaps xmm0, xmmword [0x1008ed90]
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 0x1003b379
sub esp, 0x18
mov byte [ebp - 0x30], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x60]
push eax
call fcn.10007414
add esp, 0x20
mov byte [ebp - 4], 9
jmp 0x1003b40a
cmp dword [esi + 0x68], 2
jne 0x1003b42e
mov edx, dword [esi + 0x64]
lea ecx, [ebp - 0x78]
push 0x2e
call fcn.1000d6e8
pop ecx
mov dword [ebp - 4], 0xa
cmp dword [eax + 0x14], edi
jb 0x1003b3cb
mov eax, dword [eax]
movaps xmm0, xmmword [0x1008ef30]
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 0x1003b3dc
sub esp, 0x18
mov byte [ebp - 0x30], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x60]
push eax
call fcn.10007414
add esp, 0x20
mov byte [ebp - 4], 0xb
mov ecx, dword [esi + 0x44]
mov edx, eax
call fcn.10010c45
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.10001e1f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
push ebx
push 1
call fcn.10001e1f
mov edx, dword [esi + 0x6c]
lea ecx, [ebp - 0x78]
push 0x2e
call fcn.1000d6e8
pop ecx
mov dword [ebp - 4], 0xc
cmp dword [eax + 0x14], edi
jb 0x1003b44a
mov eax, dword [eax]
movaps xmm0, xmmword [0x1008eab0]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0x71
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, edi
jb 0x1003b45e
sub esp, 0x18
mov byte [ebp - 0x2f], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x60]
push eax
call fcn.10007414
add esp, 0x20
mov byte [ebp - 4], 0xd
mov edx, eax
mov ecx, dword [esi + 0x48]
call fcn.10010c45
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.10001e1f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
push ebx
push 1
call fcn.10001e1f
mov edi, dword [ebp - 0x48]
mov ecx, edi
call fcn.100087f9
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1003b5a7
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 4], 0xe
mov edx, edi
mov cl, byte [eax + 4]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.10008825
mov edi, eax
test edi, edi
je 0x1003b50b
cmp dword [edi + 0x48], ebx
je 0x1003b50b
push dword [ebp - 0x48]
xor edx, edx
lea ecx, [ebp - 0x60]
push edi
call fcn.100089bb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10003ac6
lea ecx, [ebp - 0x60]
jmp 0x1003b52e
push dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x90]
push ebx
call fcn.100089bb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10003ac6
lea ecx, [ebp - 0x90]
push ebx
push 1
call fcn.10001e1f
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1003b598
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000cd00
mov eax, dword [esi + 0x50]
mov edx, dword [ebp - 0x2c]
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 0x1003b571
movsx ecx, word [edi + 0x56]
movsx eax, word [edx + 0x66]
add ecx, eax
jmp 0x1003b575
movsx ecx, word [edx + 0x66]
mov eax, dword [esi + 0x50]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [eax]
test ecx, ecx
je 0x1003b598
lea edx, [ebp - 0x28]
call fcn.10010878
mov ecx, dword [esi + 0x50]
mov dl, 1
mov ecx, dword [ecx]
call fcn.10010276
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.10001e1f
mov ecx, esi
call fcn.1003ad57
mov ecx, esi
call fcn.1003b5c5
mov ecx, dword [esi + 0x1c]
mov dl, 1
call fcn.10010276
call fcn.10046009
ret