Function at 0x1002290c
Capabilities:
Encode data using xor

Disassembly:
push 0xbc
mov eax, 0x10079816
call fcn.10040a5d
mov esi, ecx
mov eax, dword [esi + 0x158]
cmp eax, dword [esi + 0x15c]
je 0x10022e62
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
push 0x68
pop ecx
cdq
idiv ecx
and dword [ebp - 0x30], 0
mov dword [ebp - 0x44], ecx
test eax, eax
jle 0x10022bfc
mov edi, dword [esi + 0x158]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
lea ecx, [edi + 0x18]
cmp dword [ecx], ebx
je 0x10022984
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 - 0x44]
mov edx, dword [ebp - 0x30]
cmp edx, eax
jl 0x1002295f
jmp 0x10022bf9
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 - 0x48], 4
mov dword [ebp - 0x74], ecx
mov byte [edi + ecx + 0x65], al
lea edi, [ecx + 0x58]
sub dword [ebp - 0x48], 1
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]
lea edx, [edx + 2]
mov word [edi + ecx], ax
lea edi, [edi + 2]
jne 0x100229a3
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x140]
jne 0x10022bf9
or dword [ebp - 0x48], 0xffffffff
lea eax, [esi + 0x84]
xor ebx, ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ebx
lea edi, [esi + 0xb4]
mov dword [ebp - 0x44], 4
mov ecx, dword [eax]
call fcn.1000f7e5
test al, al
je 0x10022bdf
mov eax, dword [esi + 0x158]
mov ecx, dword [ebp - 0x74]
cmp byte [ecx + eax + 0x65], 2
jne 0x10022a92
movaps xmm0, xmmword [0x10095290]
xor ecx, ecx
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0x191f0217
mov word [ebp - 0x5c], 0x2b18
mov byte [ebp - 0x5a], 0
mov al, byte [ebp - 0x70]
xor byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x15
jb 0x10022a36
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x5a], 0
push eax
lea ecx, [ebp - 0x94]
call fcn.10004181
and dword [ebp - 4], 0
lea edx, [ebp - 0x94]
mov ecx, dword [esi + 0x7c]
call fcn.1000ff04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
push 0
push 1
call fcn.10004036
mov ecx, dword [esi + 0x7c]
mov edx, 0xff5cb9fe
call fcn.1000ff4a
mov eax, 0xff808080
mov dword [ebp - 0x48], eax
jmp 0x10022b09
mov cl, 0x63
mov dword [ebp - 0x40], 0xd363863
mov dword [ebp - 0x3c], 0x43110607
xor eax, eax
mov dword [ebp - 0x38], 0x3e1a0214
mov byte [ebp - 0x34], 0
xor byte [ebp + eax - 0x3f], cl
inc eax
cmp eax, 0xb
jae 0x10022abe
mov cl, byte [ebp - 0x40]
jmp 0x10022aaf
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x34], 0
push eax
lea ecx, [ebp - 0x94]
call fcn.10004181
mov dword [ebp - 4], 1
lea edx, [ebp - 0x94]
mov ecx, dword [esi + 0x7c]
call fcn.1000ff04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
push 0
push 1
call fcn.10004036
mov ecx, dword [esi + 0x7c]
mov edx, 0xffc4fc03
call fcn.1000ff4a
mov eax, dword [ebp - 0x48]
mov ecx, dword [edi - 4]
mov edx, eax
call fcn.1000ff4a
imul ecx, dword [ebp - 0x30], 0x34
mov edx, dword [esi + 0x158]
lea eax, [ebx + ecx]
add ebx, ecx
movzx eax, word [edx + eax*2 + 0x58]
mov cl, 0x2d
push eax
movzx eax, word [edx + ebx*2 + 0x50]
push eax
mov dword [ebp - 0x54], 0xd49082d
xor eax, eax
mov dword [ebp - 0x50], 0x49080d02
mov byte [ebp - 0x4c], 0
xor byte [ebp + eax - 0x53], cl
inc eax
cmp eax, 7
jae 0x10022b53
mov cl, byte [ebp - 0x54]
jmp 0x10022b44
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10004181
lea eax, [ebp - 0x70]
push eax
call fcn.10003c4b
add esp, 0x24
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x10022b80
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.10004181
mov byte [ebp - 4], 3
lea edx, [ebp - 0x94]
mov ecx, dword [edi]
call fcn.1000ff04
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.10004036
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
push 0
push 1
call fcn.10004036
mov eax, dword [esi + 0x158]
xorps xmm3, xmm3
mov ecx, dword [edi + 4]
xorps xmm2, xmm2
movzx eax, word [eax + ebx*2 + 0x50]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.1000fda7
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
inc ebx
add eax, 4
mov dword [ebp - 0x78], ebx
add edi, 0x14
mov dword [ebp - 0x7c], eax
sub dword [ebp - 0x44], 1
jne 0x100229f9
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 0x10022e62
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 0x10022e62
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0x2c]
add eax, ebx
mov dword [ebp - 0x44], 0xffc4fc03
push eax
call fcn.10003baa
mov dword [ebp - 4], 4
mov eax, dword [esi + 0x158]
cmp byte [ebx + eax + 0x65], 2
jne 0x10022caf
movaps xmm0, xmmword [0x10095dc0]
xor ecx, ecx
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0x667b6e7c
mov dword [ebp - 0x5c], 0x526160
mov al, byte [ebp - 0x70]
xor byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x16
jb 0x10022c7e
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x59], 0
push eax
call fcn.10004164
pop ecx
push eax
lea eax, [ebp - 0x6f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10006f4b
mov dword [ebp - 0x44], 0xff5cb9fe
jmp 0x10022cf8
mov cl, 0x2f
mov dword [ebp - 0x40], 0x7a740f2f
mov dword [ebp - 0x3c], 0x5d4a4b41
xor eax, eax
mov dword [ebp - 0x38], 0x564e580f
mov word [ebp - 0x34], 0x72
xor byte [ebp + eax - 0x3f], cl
inc eax
cmp eax, 0xc
jae 0x10022cdd
mov cl, byte [ebp - 0x40]
jmp 0x10022cce
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x33], 0
push eax
call fcn.10004164
pop ecx
push eax
lea eax, [ebp - 0x3f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10006f4b
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x94]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10004181
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
call fcn.1000ff04
push 0
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call fcn.10004036
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
mov ecx, dword [eax]
call fcn.1000ff4a
mov ecx, dword [esi + 0x158]
movaps xmm0, xmmword [str._bDmmd___l___l]
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 - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xe
jb 0x10022d62
sub esp, 0x18
mov byte [ebp - 0x49], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10004181
lea eax, [ebp - 0xb0]
push eax
call fcn.10003c4b
add esp, 0x24
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x10022d9c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.10004181
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 7
mov ecx, dword [eax - 4]
call fcn.1000ff04
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.10004036
push 0
push 1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.10004036
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0xc8]
mov dx, word [eax + ebx + 0x60]
call fcn.1001eeb3
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x10022e01
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xb0]
call fcn.10004181
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xb0]
mov byte [ebp - 4], 9
mov ecx, dword [eax + 8]
call fcn.1000ff04
push 0
push 1
lea ecx, [ebp - 0xb0]
call fcn.10004036
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.10004036
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.10004036
mov eax, dword [ebp - 0x30]
inc edi
push 0x68
pop ecx
add ebx, ecx
cmp edi, dword [ebp - 0x74]
jl 0x10022c19
call fcn.10040a07
ret 0x10