Function at 0x1003b910
Capabilities:
Encode data using xor

Disassembly:
push 0x100
mov eax, 0x10078cfa
call fcn.1004605f
mov esi, ecx
cmp dword [ebp + 8], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x30], edi
jbe 0x1003bcfc
test edi, edi
je 0x1003bcfc
call fcn.1003b8ef
xor ebx, ebx
test al, al
jne 0x1003b9e6
movaps xmm0, xmmword [0x1008e460]
mov ecx, ebx
movups xmmword [ebp - 0x40], xmm0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xe
jb 0x1003b955
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x31], bl
push eax
lea ecx, [ebp - 0x64]
call fcn.10001f6a
mov dword [ebp - 4], ebx
mov ecx, ebx
movaps xmm0, xmmword [0x1008f2b0]
movups xmmword [ebp - 0xf4], xmm0
mov byte [ebp - 0xd4], bl
movaps xmm0, xmmword [0x1008eba0]
movups xmmword [ebp - 0xe4], xmm0
mov al, byte [ebp - 0xf4]
xor byte [ebp + ecx - 0xf3], al
inc ecx
cmp ecx, 0x1f
jb 0x1003b998
lea eax, [ebp - 0xf3]
mov byte [ebp - 0xd4], bl
push eax
lea ecx, [ebp - 0x7c]
call fcn.10001f6a
push ebx
push ebx
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.10018621
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.10001e1f
lea ecx, [ebp - 0x64]
jmp 0x1003bcf4
mov edx, dword [ebp + 0x14]
mov cl, bl
cmp edx, 1
jne 0x1003ba00
movzx eax, cl
imul eax, eax, 0x18
cmp dword [eax + esi + 0x118], 2
je 0x1003ba50
cmp edx, 2
jne 0x1003ba19
movzx eax, cl
imul eax, eax, 0x18
cmp dword [eax + esi + 0x118], 1
je 0x1003bb1a
inc cl
cmp cl, 6
jb 0x1003b9eb
mov cl, bl
mov byte [ebp - 0x29], cl
movzx eax, cl
imul eax, eax, 0x18
cmp dword [eax + esi + 0x10c], ebx
ja 0x1003ba41
cmp dword [eax + esi + 0x110], ebx
jbe 0x1003bbc9
inc cl
mov byte [ebp - 0x29], cl
cmp cl, 6
jb 0x1003ba25
jmp 0x1003bcfc
movaps xmm0, xmmword [0x1008e2d0]
mov ecx, ebx
movups xmmword [ebp - 0x40], xmm0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xe
jb 0x1003ba5d
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x31], bl
push eax
lea ecx, [ebp - 0x7c]
call fcn.10001f6a
mov dword [ebp - 4], 2
mov ecx, ebx
movaps xmm0, xmmword [0x1008f330]
movups xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0x80], 0x757a20
movaps xmm0, xmmword [0x1008f340]
movups xmmword [ebp - 0xc0], xmm0
movaps xmm0, xmmword [0x1008ed50]
movups xmmword [ebp - 0xb0], xmm0
movaps xmm0, xmmword [0x1008ecd0]
movups xmmword [ebp - 0xa0], xmm0
movaps xmm0, xmmword [0x1008ea80]
movups xmmword [ebp - 0x90], xmm0
mov al, byte [ebp - 0xd0]
xor byte [ebp + ecx - 0xcf], al
inc ecx
cmp ecx, 0x52
jb 0x1003bacf
lea eax, [ebp - 0xcf]
mov byte [ebp - 0x7d], bl
push eax
lea ecx, [ebp - 0x64]
call fcn.10001f6a
mov byte [ebp - 4], 3
push ebx
push ebx
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x64]
call fcn.10018621
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.10001e1f
lea ecx, [ebp - 0x7c]
jmp 0x1003bcf4
movaps xmm0, xmmword [str.wHPBU_nrW_atSHUB]
mov ecx, ebx
movups xmmword [ebp - 0x40], xmm0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xe
jb 0x1003bb27
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x31], bl
push eax
lea ecx, [ebp - 0x7c]
call fcn.10001f6a
mov dword [ebp - 4], 4
mov ecx, ebx
movaps xmm0, xmmword [0x1008f410]
movups xmmword [ebp - 0xd0], xmm0
mov word [ebp - 0x80], 0x7c73
movaps xmm0, xmmword [0x1008ebd0]
movups xmmword [ebp - 0xc0], xmm0
mov byte [ebp - 0x7e], bl
movaps xmm0, xmmword [0x1008f400]
movups xmmword [ebp - 0xb0], xmm0
movaps xmm0, xmmword [0x1008eb10]
movups xmmword [ebp - 0xa0], xmm0
movaps xmm0, xmmword [0x1008eb00]
movups xmmword [ebp - 0x90], xmm0
mov al, byte [ebp - 0xd0]
xor byte [ebp + ecx - 0xcf], al
inc ecx
cmp ecx, 0x51
jb 0x1003bb9b
lea eax, [ebp - 0xcf]
mov byte [ebp - 0x7e], bl
push eax
lea ecx, [ebp - 0x64]
call fcn.10001f6a
mov byte [ebp - 4], 5
jmp 0x1003baf8
mov ecx, edi
call fcn.100087f9
mov edi, eax
test edi, edi
je 0x1003bcfc
mov dword [ebp - 0x14], 0xf
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], 6
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 0x1003bc23
cmp dword [eax + 0x48], ebx
je 0x1003bc23
push dword [ebp - 0x30]
xor edx, edx
lea ecx, [ebp - 0x64]
push eax
call fcn.100089bb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10003ac6
lea ecx, [ebp - 0x64]
jmp 0x1003bc45
push dword [ebp - 0x30]
mov edx, edi
lea ecx, [ebp - 0x10c]
push ebx
call fcn.100089bb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10003ac6
lea ecx, [ebp - 0x10c]
push ebx
push 1
call fcn.10001e1f
movzx eax, byte [ebp - 0x29]
mov dword [ebp - 0x4c], eax
add eax, 0xb
imul eax, eax, 0x18
mov dword [ebp - 0x44], eax
mov ecx, dword [eax + esi]
test ecx, ecx
je 0x1003bcc5
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000cd00
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + esi]
mov dword [eax + 0x50], edi
mov eax, dword [edx + esi]
mov dword [eax + 0x54], ecx
mov eax, dword [edx + esi]
mov dword [eax + 0x58], 1
test ecx, ecx
je 0x1003bc9b
movsx ecx, word [ecx + 0x56]
movsx eax, word [edi + 0x66]
add ecx, eax
jmp 0x1003bc9f
movsx ecx, word [edi + 0x66]
mov eax, dword [edx + esi]
mov dword [eax + 0x5c], ecx
mov eax, dword [edx + esi]
mov ecx, dword [eax]
test ecx, ecx
je 0x1003bcc5
lea edx, [ebp - 0x28]
call fcn.10010878
mov eax, dword [ebp - 0x44]
mov dl, 1
mov ecx, dword [eax + esi]
mov ecx, dword [ecx]
call fcn.10010276
imul ecx, dword [ebp - 0x4c], 0x18
mov eax, dword [ebp + 8]
mov dword [ecx + esi + 0x10c], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + esi + 0x110], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + esi + 0x114], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx + esi + 0x118], eax
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.10001e1f
call fcn.10046009
ret 0x10