Function at 0x1002120d
Capabilities:
Encode data using xor

Disassembly:
push 0xbc
mov eax, 0x100750c2
call fcn.1003d3a0
mov esi, ecx
mov eax, dword [esi + 0x158]
cmp eax, dword [esi + 0x15c]
je 0x10021776
mov eax, dword [esi + 0x15c]
xor ebx, ebx
sub eax, dword [esi + 0x158]
push 0x68
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x48], ecx
test eax, eax
jle 0x1002150a
mov edi, dword [esi + 0x158]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
lea ecx, [edi + 0x18]
cmp dword [ecx], ebx
je 0x10021286
push 0x68
pop eax
add ecx, eax
inc edx
mov eax, dword [esi + 0x15c]
sub eax, edi
mov dword [ebp - 0x30], edx
cdq
idiv dword [ebp - 0x48]
mov edx, dword [ebp - 0x30]
cmp edx, eax
jl 0x10021261
jmp 0x10021507
mov al, byte [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
imul ecx, edx, 0x68
mov edx, dword [ebp + 0x14]
sub ebx, edx
mov dword [ebp - 0x44], 4
mov dword [ebp - 0x74], ecx
mov byte [ecx + edi + 0x65], al
lea edi, [ecx + 0x58]
mov ecx, dword [esi + 0x158]
mov ax, word [ebx + edx]
mov word [edi + ecx - 8], ax
mov ecx, dword [esi + 0x158]
mov ax, word [edx]
add edx, 2
sub dword [ebp - 0x44], 1
mov word [edi + ecx], ax
lea edi, [edi + 2]
jne 0x100212a5
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x140]
jne 0x10021507
or dword [ebp - 0x78], 0xffffffff
lea eax, [esi + 0x84]
and dword [ebp - 0x44], 0
lea edi, [esi + 0xb4]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x48], 4
mov ecx, dword [eax]
call fcn.1000d731
test al, al
je 0x100214ee
mov eax, dword [esi + 0x158]
mov ecx, dword [ebp - 0x74]
cmp byte [ecx + eax + 0x65], 2
jne 0x1002139a
movaps xmm0, xmmword [0x1008f9d0]
xor ecx, ecx
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0x17110c19
mov word [ebp - 0x5c], 0x2516
mov byte [ebp - 0x5a], 0
mov al, byte [ebp + ecx - 0x6f]
xor al, byte [ebp - 0x70]
mov byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x15
jb 0x1002133a
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x5a], 0
push eax
lea ecx, [ebp - 0x94]
call fcn.10004179
and dword [ebp - 4], 0
lea edx, [ebp - 0x94]
mov ecx, dword [esi + 0x7c]
call fcn.1000de50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
push 0
push 1
call fcn.1000402e
mov ecx, dword [esi + 0x7c]
mov edx, 0xff5cb9fe
call fcn.1000de96
mov eax, 0xff808080
mov dword [ebp - 0x78], eax
jmp 0x10021411
mov dl, 0x2f
mov dword [ebp - 0x40], 0x417a742f
mov dword [ebp - 0x3c], 0xf5d4a4b
xor ecx, ecx
mov dword [ebp - 0x38], 0x72564e58
mov byte [ebp - 0x34], 0
xor byte [ebp + ecx - 0x3f], dl
inc ecx
cmp ecx, 0xb
jae 0x100213c6
mov dl, byte [ebp - 0x40]
jmp 0x100213b7
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x34], 0
push eax
lea ecx, [ebp - 0x94]
call fcn.10004179
mov dword [ebp - 4], 1
lea edx, [ebp - 0x94]
mov ecx, dword [esi + 0x7c]
call fcn.1000de50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
push 0
push 1
call fcn.1000402e
mov ecx, dword [esi + 0x7c]
mov edx, 0xffc4fc03
call fcn.1000de96
mov eax, dword [ebp - 0x78]
mov ecx, dword [edi - 4]
mov edx, eax
call fcn.1000de96
mov edx, dword [esi + 0x158]
mov eax, dword [ebp - 0x44]
imul ecx, ebx, 0x34
add eax, ecx
movzx eax, word [edx + eax*2 + 0x58]
push eax
mov eax, dword [ebp - 0x44]
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x30], eax
movzx eax, word [edx + eax*2 + 0x50]
mov dl, 0x39
push eax
mov dword [ebp - 0x54], 0x195d1c39
mov dword [ebp - 0x50], 0x5d1c1916
mov byte [ebp - 0x4c], 0
xor byte [ebp + ecx - 0x53], dl
inc ecx
cmp ecx, 7
jae 0x10021462
mov dl, byte [ebp - 0x54]
jmp 0x10021453
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x70]
push eax
call fcn.10003c43
add esp, 0x24
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1002148f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.10004179
mov byte [ebp - 4], 3
lea edx, [ebp - 0x94]
mov ecx, dword [edi]
call fcn.1000de50
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.1000402e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
push 0
push 1
call fcn.1000402e
mov eax, dword [esi + 0x158]
xorps xmm3, xmm3
mov ecx, dword [ebp - 0x30]
xorps xmm2, xmm2
movzx eax, word [eax + ecx*2 + 0x50]
mov ecx, dword [edi + 4]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.1000dcf3
mov eax, dword [ebp - 0x7c]
add edi, 0x14
inc dword [ebp - 0x44]
add eax, 4
sub dword [ebp - 0x48], 1
mov dword [ebp - 0x7c], eax
jne 0x100212fd
push 0x68
pop ecx
mov eax, dword [esi + 0x144]
shl eax, 2
mov dword [ebp - 0x74], eax
lea edi, [eax - 4]
cmp edi, eax
jge 0x10021776
imul ebx, edi, 0x68
lea eax, [esi + 0xc]
add eax, 0x18
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
cdq
idiv ecx
dec eax
cmp edi, eax
jg 0x10021776
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0x2c]
add eax, ebx
mov dword [ebp - 0x48], 0xffc4fc03
push eax
call fcn.10003ba2
mov dword [ebp - 4], 4
xor ecx, ecx
mov eax, dword [esi + 0x158]
cmp byte [ebx + eax + 0x65], 2
jne 0x100215c1
movaps xmm0, xmmword [0x1008ff30]
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0x45584d5f
mov dword [ebp - 0x5c], 0x714243
mov al, byte [ebp + ecx - 0x6f]
xor al, byte [ebp - 0x70]
mov byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x16
jb 0x1002158c
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x59], 0
push eax
call fcn.1000415c
pop ecx
push eax
lea eax, [ebp - 0x6f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100067e3
mov dword [ebp - 0x48], 0xff5cb9fe
jmp 0x10021608
mov dl, 0x64
mov dword [ebp - 0x40], 0x313f4464
mov dword [ebp - 0x3c], 0x1601000a
mov dword [ebp - 0x38], 0x1d051344
mov word [ebp - 0x34], 0x39
xor byte [ebp + ecx - 0x3f], dl
inc ecx
cmp ecx, 0xc
jae 0x100215ed
mov dl, byte [ebp - 0x40]
jmp 0x100215de
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x33], 0
push eax
call fcn.1000415c
pop ecx
push eax
lea eax, [ebp - 0x3f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100067e3
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x94]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10004179
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
call fcn.1000de50
push 0
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call fcn.1000402e
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x48]
mov ecx, dword [eax]
call fcn.1000de96
mov ecx, dword [esi + 0x158]
movaps xmm0, xmmword [0x1008f720]
movzx eax, byte [ebx + ecx + 0x64]
push eax
movzx eax, byte [ebx + ecx + 0x63]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov al, byte [ebp + ecx - 0x57]
xor al, byte [ebp - 0x58]
mov byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xe
jb 0x10021672
sub esp, 0x18
mov byte [ebp - 0x49], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0xb0]
push eax
call fcn.10003c43
add esp, 0x24
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x100216b0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.10004179
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 7
mov ecx, dword [eax - 4]
call fcn.1000de50
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.1000402e
push 0
push 1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.1000402e
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0xc8]
mov dx, word [eax + ebx + 0x60]
call fcn.1001d202
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x10021715
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xb0]
call fcn.10004179
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xb0]
mov byte [ebp - 4], 9
mov ecx, dword [eax + 8]
call fcn.1000de50
push 0
push 1
lea ecx, [ebp - 0xb0]
call fcn.1000402e
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.1000402e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.1000402e
mov eax, dword [ebp - 0x30]
inc edi
push 0x68
pop ecx
add ebx, ecx
cmp edi, dword [ebp - 0x74]
jl 0x10021527
call fcn.1003d34a
ret 0x10