Function at 0x1002f0c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056795
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x1006a018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x158]
cmp eax, dword [edi + 0x15c]
je 0x1002fa45
mov ecx, dword [edi + 0x15c]
sub ecx, eax
mov dword [ebp - 0x70], 0
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1002f5ea
mov ebx, dword [ebp + 8]
xor esi, esi
xor ecx, ecx
mov eax, dword [edi + 0x158]
cmp dword [esi + eax + 0x18], ebx
je 0x1002f169
inc ecx
add esi, 0x68
mov dword [ebp - 0x70], ecx
mov ecx, dword [edi + 0x15c]
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
mov ecx, dword [ebp - 0x70]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x1002f131
jmp 0x1002f5ea
imul edx, ecx, 0x68
mov ebx, 4
mov ecx, eax
mov al, byte [ebp + 0xc]
mov dword [ebp - 0x98], edx
mov byte [ecx + edx + 0x65], al
lea esi, [edx + 0x58]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edx
mov dword [ebp + 0x10], eax
nop
mov ecx, dword [edi + 0x158]
lea edx, [edx + 2]
movzx eax, word [eax + edx - 2]
lea esi, [esi + 2]
mov word [ecx + esi - 0xa], ax
mov ecx, dword [edi + 0x158]
movzx eax, word [edx - 2]
mov word [esi + ecx - 2], ax
mov eax, dword [ebp + 0x10]
sub ebx, 1
jne 0x1002f190
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x140]
jne 0x1002f5ea
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea eax, [edi + 0xb4]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x84]
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 4
nop dword [eax]
mov esi, dword [eax]
push 4
push esi
call ebx
test eax, eax
jne 0x1002f5d0
push 4
add esi, 0xe5
push esi
call ebx
test eax, eax
jne 0x1002f5d0
mov al, byte [esi]
test al, al
je 0x1002f5d0
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x98]
cmp byte [eax + ecx + 0x65], 2
jne 0x1002f31e
movaps xmm0, xmmword [0x100633d0]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x25233e2b
mov word [ebp - 0x40], 0x1724
mov byte [ebp - 0x3e], 0
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x15
jb 0x1002f261
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x3e], 0
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
jne 0x1002f291
xor ecx, ecx
jmp 0x1002f2a0
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f297
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x90]
call fcn.100052b0
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1002f2d6
push 4
push esi
call ebx
test eax, eax
jne 0x1002f2d6
lea eax, [ebp - 0x90]
mov ecx, esi
push eax
call dword [0x1006254c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x1002f2f2
inc eax
push eax
push dword [ebp - 0x90]
call fcn.10005180
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1002f30f
push 4
push esi
call ebx
test eax, eax
jne 0x1002f30f
push 0xff5cb9fe
mov ecx, esi
call dword [0x10062554]
mov dword [ebp - 0x94], 0xff808080
jmp 0x1002f3f0
mov cl, 0x3d
mov dword [ebp - 0x38], 0x5368663d
mov dword [ebp - 0x34], 0x1d4f5859
xor eax, eax
mov dword [ebp - 0x30], 0x60445c4a
mov byte [ebp - 0x2c], 0
nop dword [eax + eax]
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0xb
jae 0x1002f34f
mov cl, byte [ebp - 0x38]
jmp 0x1002f340
cmp byte [ebp - 0x37], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
jne 0x1002f372
xor ecx, ecx
jmp 0x1002f381
lea ecx, [ebp - 0x37]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f378
sub ecx, edx
push ecx
lea eax, [ebp - 0x37]
push eax
lea ecx, [ebp - 0x90]
call fcn.100052b0
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1002f3b7
push 4
push esi
call ebx
test eax, eax
jne 0x1002f3b7
lea eax, [ebp - 0x90]
mov ecx, esi
push eax
call dword [0x1006254c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x1002f3d3
inc eax
push eax
push dword [ebp - 0x90]
call fcn.10005180
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1002f3f0
push 4
push esi
call ebx
test eax, eax
jne 0x1002f3f0
push 0xffc4fc03
mov ecx, esi
call dword [0x10062554]
mov esi, dword [ebp - 0x3c]
mov esi, dword [esi - 4]
test esi, esi
je 0x1002f411
push 4
push esi
call ebx
test eax, eax
jne 0x1002f411
push dword [ebp - 0x94]
mov ecx, esi
call dword [0x10062554]
imul edx, dword [ebp - 0x70], 0x34
mov ebx, dword [ebp - 0x74]
mov eax, dword [edi + 0x158]
lea ecx, [edx + ebx]
movzx eax, word [eax + ecx*2 + 0x58]
lea ecx, [edx + ebx]
push eax
mov eax, dword [edi + 0x158]
mov bh, 0x1c
mov dword [ebp - 0x78], ecx
mov dl, 0x3c
mov bl, 0x33
xor bl, bh
movzx eax, word [eax + ecx*2 + 0x50]
mov cl, 0x78
push eax
mov dh, cl
mov byte [ebp - 0x60], 0
mov ah, dl
mov byte [ebp - 0x68], bh
xor dl, bh
mov byte [ebp - 0x64], bl
mov byte [ebp - 0x65], dl
xor dh, bh
mov byte [ebp - 0x61], dh
mov al, 0x39
sub esp, 0x18
mov byte [ebp - 0x60], 0
mov edx, esp
mov ch, al
xor al, bh
xor cl, bh
mov byte [ebp - 0x67], al
xor ah, bh
mov byte [ebp - 0x66], cl
xor ch, bh
mov byte [ebp - 0x63], ah
mov byte [ebp - 0x62], ch
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1002f4a2
mov eax, dword [edx]
jmp 0x1002f4a4
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x67], 0
jne 0x1002f4b1
xor ecx, ecx
jmp 0x1002f4c0
lea ecx, [ebp - 0x67]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f4b7
sub ecx, esi
push ecx
lea eax, [ebp - 0x67]
mov ecx, edx
push eax
call fcn.100052b0
lea eax, [ebp - 0x90]
push eax
call fcn.10004bd0
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 0x10
jb 0x1002f4ec
mov edx, dword [edx]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x1002f507
xor ecx, ecx
jmp 0x1002f519
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f510
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.100052b0
mov ebx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
mov esi, dword [ebx]
test esi, esi
je 0x1002f549
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002f549
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call dword [0x1006254c]
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1002f55b
inc eax
push eax
push dword [ebp - 0x54]
call fcn.10005180
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp eax, 0x10
jb 0x1002f589
inc eax
push eax
push dword [ebp - 0x90]
call fcn.10005180
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x78]
mov ebx, dword [ebx + 4]
movzx esi, word [eax + ecx*2 + 0x50]
test ebx, ebx
je 0x1002f5ca
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002f5ca
sub esp, 0xc
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov ecx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x1006253c]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [ebp - 0x58]
inc dword [ebp - 0x74]
add eax, 4
add dword [ebp - 0x3c], 0x14
sub dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], eax
jne 0x1002f200
mov eax, dword [edi + 0x144]
shl eax, 2
mov dword [ebp - 0x78], eax
lea esi, [eax - 4]
mov dword [ebp - 0x58], esi
cmp esi, eax
jge 0x1002fa45
imul ebx, esi, 0x68
lea eax, [edi + 0xc]
nop word [eax + eax]
mov ecx, dword [edi + 0x15c]
add eax, 0x18
sub ecx, dword [edi + 0x158]
mov dword [ebp - 0x3c], eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp esi, eax
jg 0x1002fa45
mov eax, dword [edi + 0x158]
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
add eax, ebx
mov dword [ebp - 0x5c], 0xffc4fc03
push 0
push eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10004e70
mov dword [ebp - 4], 4
mov eax, dword [edi + 0x158]
cmp byte [ebx + eax + 0x65], 2
jne 0x1002f6e0
movaps xmm0, xmmword [str.zZ_8]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x130e1b09
mov dword [ebp - 0x40], 0x271415
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x16
jb 0x1002f6a0
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x3d], 0
jne 0x1002f6bb
xor ecx, ecx
jmp 0x1002f6ca
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f6c1
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x28]
call fcn.100077e0
mov dword [ebp - 0x5c], 0xff5cb9fe
jmp 0x1002f739
mov cl, 8
mov dword [ebp - 0x38], 0x5d532808
mov dword [ebp - 0x34], 0x7a6d6c66
xor eax, eax
mov dword [ebp - 0x30], 0x71697f28
mov word [ebp - 0x2c], 0x55
nop
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0xc
jae 0x1002f70f
mov cl, byte [ebp - 0x38]
jmp 0x1002f700
cmp byte [ebp - 0x37], 0
mov byte [ebp - 0x2b], 0
jne 0x1002f71d
xor ecx, ecx
jmp 0x1002f72c
lea ecx, [ebp - 0x37]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f723
sub ecx, edx
push ecx
lea eax, [ebp - 0x37]
push eax
lea ecx, [ebp - 0x28]
call fcn.100077e0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [ebp - 0x7c], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp byte [edx], 0
jne 0x1002f762
xor ecx, ecx
jmp 0x1002f770
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f767
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.100052b0
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 4], 5
mov esi, dword [esi]
test esi, esi
je 0x1002f7a6
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002f7a6
lea eax, [ebp - 0x90]
mov ecx, esi
push eax
call dword [0x1006254c]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x1002f7bf
inc eax
push eax
push dword [ebp - 0x90]
call fcn.10005180
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax]
test esi, esi
je 0x1002f7e0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002f7e0
push dword [ebp - 0x5c]
mov ecx, esi
call dword [0x10062554]
mov eax, dword [edi + 0x158]
xor ecx, ecx
movaps xmm0, xmmword [0x10062a50]
movzx eax, byte [eax + ebx + 0x64]
push eax
mov eax, dword [edi + 0x158]
movzx eax, byte [ebx + eax + 0x63]
push eax
movups xmmword [ebp - 0x6c], xmm0
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0xe
jb 0x1002f805
sub esp, 0x18
mov byte [ebp - 0x5d], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1002f841
mov eax, dword [edx]
jmp 0x1002f843
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x6b], 0
jne 0x1002f850
xor ecx, ecx
jmp 0x1002f85f
lea ecx, [ebp - 0x6b]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f856
sub ecx, esi
push ecx
lea eax, [ebp - 0x6b]
mov ecx, edx
push eax
call fcn.100052b0
lea eax, [ebp - 0xcc]
push eax
call fcn.10004bd0
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 0x10
jb 0x1002f888
mov edx, dword [edx]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x1002f8a3
xor ecx, ecx
jmp 0x1002f8b1
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f8a8
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.100052b0
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 7
mov esi, dword [eax - 4]
test esi, esi
je 0x1002f8e2
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002f8e2
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call dword [0x1006254c]
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1002f8f4
inc eax
push eax
push dword [ebp - 0x54]
call fcn.10005180
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp eax, 0x10
jb 0x1002f922
inc eax
push eax
push dword [ebp - 0xcc]
call fcn.10005180
mov eax, dword [edi + 0x158]
lea ecx, [ebp - 0xcc]
mov dx, word [eax + ebx + 0x60]
call fcn.10029200
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0x10
jb 0x1002f946
mov edx, dword [edx]
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
cmp byte [edx], 0
jne 0x1002f96a
xor ecx, ecx
jmp 0x1002f979
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f970
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb4]
call fcn.100052b0
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 9
mov esi, dword [eax + 8]
test esi, esi
je 0x1002f9b0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002f9b0
lea eax, [ebp - 0xb4]
mov ecx, esi
push eax
call dword [0x1006254c]
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x1002f9c8
inc eax
push eax
push dword [ebp - 0xb4]
call fcn.10005180
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
cmp eax, 0x10
jb 0x1002f9fb
inc eax
push eax
push dword [ebp - 0xcc]
call fcn.10005180
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb8], 0xf
mov dword [ebp - 0xbc], 0
mov byte [ebp - 0xcc], 0
cmp eax, 0x10
jb 0x1002fa2f
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10005180
mov esi, dword [ebp - 0x58]
add ebx, 0x68
mov eax, dword [ebp - 0x3c]
inc esi
mov dword [ebp - 0x58], esi
cmp esi, dword [ebp - 0x78]
jl 0x1002f610
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052ee0
mov esp, ebp
pop ebp
ret 0x10