Function at 0x1002c500
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053688
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x10068040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov byte [ebp - 0x35], 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x30], ecx
cmp eax, ecx
je 0x1002cc07
nop dword [eax + eax]
mov edi, dword [eax]
test edi, edi
je 0x1002cbf3
mov esi, dword [0x100622dc]
mov eax, 0x10624dd3
mul edi
mov ecx, 0xd78ae8
mov eax, edx
shr eax, 6
mov dword [ebp - 0x44], eax
imul eax, eax, 0x3e8
push eax
call fcn.1000e620
mov ecx, eax
call esi
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1002c920
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov esi, edi
mov cl, byte [eax + 4]
mov eax, 0x12e0be83
mul edi
mov byte [ebp - 0x45], cl
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 0x1d
cmp esi, 4
jae 0x1002c6a8
cmp cl, 0x2d
jae 0x1002c6a8
push 4
push 0xd78af0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002c6a8
sub esi, dword [ebp - 0x44]
movzx ecx, byte [ebp - 0x45]
mov edx, dword [0x100622e0]
imul eax, esi, 0x3e8
mov ecx, dword [ecx*4 + 0xd78af0]
add eax, edi
push eax
call edx
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x1002c6ad
cmp dword [esi + 0x48], 0
mov dword [ebp - 0x50], esi
je 0x1002c6ad
push edi
push esi
xor edx, edx
lea ecx, [ebp - 0x8c]
call fcn.1000a640
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
call fcn.10003d40
mov ecx, dword [ebp - 0x78]
cmp ecx, 0xf
jbe 0x1002c68e
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c684
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cd04
push ecx
push edx
call fcn.10038006
add esp, 8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov dword [ebp - 0x50], esi
jmp 0x1002c71f
xor eax, eax
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0xa4]
push edi
push 0
call fcn.1000a640
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
call fcn.10003d40
mov ecx, dword [ebp - 0x90]
cmp ecx, 0xf
jbe 0x1002c704
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c6fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cd04
push ecx
push edx
call fcn.10038006
add esp, 8
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
mov eax, dword [ebp - 0x3c]
movzx edi, byte [ebp - 0x35]
mov esi, dword [ebp - 0x2c]
shl edi, 2
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x58], esi
mov eax, dword [edi + eax]
test eax, eax
je 0x1002c8dd
add eax, 4
mov dword [ebp - 0x4c], eax
je 0x1002c7d4
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002c7d4
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c766
sub ecx, edx
mov dword [ebp - 0x54], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10038019
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10039ec0
add esp, 0xc
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
lea esi, [edi + 0x20]
cmova ecx, dword [ebp - 0x58]
push dword [ebp - 0x54]
push ecx
push esi
call fcn.10039940
mov eax, dword [ebp - 0x54]
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push 0xffffffffffffffff
push 0
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100622e8]
push edi
call fcn.10038014
mov esi, dword [ebp - 0x58]
add esp, 4
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + edi]
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
mov eax, dword [edi + eax]
mov dword [eax + 0x54], ecx
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + edi]
mov dword [eax + 0x58], 0
test ecx, ecx
je 0x1002c812
movsx ecx, word [ecx + 0x56]
movsx eax, word [edx + 0x66]
add ecx, eax
jmp 0x1002c816
movsx ecx, word [edx + 0x66]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xc]
mov eax, dword [eax + edi]
mov dword [eax + 0x5c], ecx
mov eax, dword [edx + 0xc]
mov eax, dword [edi + eax]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1002c8dd
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002c8b7
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c850
sub ecx, edx
mov dword [ebp - 0x40], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10038019
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10039ec0
add esp, 0xc
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x58]
push dword [ebp - 0x40]
push edx
push esi
call fcn.10039940
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10062314]
push edi
call fcn.10038014
mov edi, dword [ebp - 0x44]
add esp, 4
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
mov eax, dword [edi + eax]
mov esi, dword [eax]
test esi, esi
je 0x1002c8dd
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002c8dd
push 1
mov ecx, esi
call dword [0x1006230c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x1002cbe7
mov edx, dword [ebp - 0x58]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c911
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cd04
push ecx
push edx
call fcn.10038006
add esp, 8
jmp 0x1002cbe7
mov esi, dword [ebp - 0x3c]
movzx edi, byte [ebp - 0x35]
shl edi, 2
mov dword [ebp - 0x54], edi
mov eax, dword [esi + 0xc]
cmp dword [edi + eax], 0
je 0x1002cbea
movaps xmm0, xmmword [str.l9_0]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x4218091e
mov dword [ebp - 0x18], 0x181408
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x16
jb 0x1002c955
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x2b]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c981
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10001790
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x40], esi
mov eax, dword [edi + eax]
add eax, 4
mov dword [ebp - 0x4c], eax
je 0x1002ca3f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ca3f
cmp dword [ebp - 0x5c], 0xf
lea ecx, [ebp - 0x70]
cmova ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c9d1
sub ecx, edx
mov dword [ebp - 0x44], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10038019
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10039ec0
add esp, 0xc
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0xf
lea esi, [edi + 0x20]
cmova ecx, dword [ebp - 0x40]
push dword [ebp - 0x44]
push ecx
push esi
call fcn.10039940
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push 0xffffffffffffffff
push 0
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100622e8]
push edi
call fcn.10038014
mov esi, dword [ebp - 0x40]
add esp, 4
mov edi, dword [ebp - 0x54]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 0xf
jbe 0x1002ca76
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1002ca6c
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cd04
push ecx
push esi
call fcn.10038006
add esp, 8
mov esi, dword [ebp - 0x3c]
mov eax, dword [esi + 0xc]
mov eax, dword [edi + eax]
cmp dword [eax], 0
je 0x1002cbea
movaps xmm0, xmmword [0x100627b0]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x6b312037
mov dword [ebp - 0x18], 0x313d21
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x16
jb 0x1002caa3
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x2b]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002cad0
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10001790
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xc]
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x40], esi
mov eax, dword [edi + eax]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1002cb8b
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002cb8b
cmp dword [ebp - 0x5c], 0xf
lea ecx, [ebp - 0x70]
cmova ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002cb21
sub ecx, edx
mov dword [ebp - 0x44], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10038019
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10039ec0
add esp, 0xc
lea edx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x40]
push dword [ebp - 0x44]
push edx
push esi
call fcn.10039940
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10062314]
push edi
call fcn.10038014
mov esi, dword [ebp - 0x40]
add esp, 4
mov edi, dword [ebp - 0x54]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 0xf
jbe 0x1002cbc2
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1002cbb8
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cd04
push ecx
push esi
call fcn.10038006
add esp, 8
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
mov eax, dword [edi + eax]
mov esi, dword [eax]
test esi, esi
je 0x1002cbe7
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002cbe7
push eax
mov ecx, esi
call dword [0x1006230c]
mov esi, dword [ebp - 0x3c]
inc byte [ebp - 0x35]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x74], eax
cmp eax, ecx
jne 0x1002c570
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, dword [esi]
test esi, esi
je 0x1002cc2d
push 4
push esi
call edi
test eax, eax
jne 0x1002cc2d
push 4
add esi, 0xfc
push esi
call edi
test eax, eax
jne 0x1002cc2d
cmp byte [esi], al
jne 0x1002ccb1
mov eax, dword [0x1006b998]
mov esi, dword [eax + 0x88]
test esi, esi
je 0x1002cc91
mov esi, dword [esi]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
test esi, esi
je 0x1002cc65
push 4
push esi
call edi
test eax, eax
jne 0x1002cc65
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call dword [0x10062304]
mov edi, dword [ebp - 0x3c]
mov esi, dword [edi]
test esi, esi
je 0x1002cc94
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002cc94
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov ecx, esi
add eax, 0x12c
push eax
call dword [0x10062308]
jmp 0x1002cc94
mov edi, dword [ebp - 0x3c]
mov esi, dword [edi]
test esi, esi
je 0x1002ccb1
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ccb1
push 1
mov ecx, esi
call dword [0x1006230c]
mov edx, dword [ebx + 8]
test edx, edx
je 0x1002cce4
mov ecx, dword [ebx + 0x10]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1002ccda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cd04
push ecx
push edx
call fcn.10038006
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10037fa5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.1003cf4f
int3