Function at 0x1002e570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055c55
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x10069018]
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 0x1002eef5
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 0x1002ea9a
mov ebx, dword [ebp + 8]
xor esi, esi
xor ecx, ecx
mov eax, dword [edi + 0x158]
cmp dword [esi + eax + 0x18], ebx
je 0x1002e619
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 0x1002e5e1
jmp 0x1002ea9a
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 0x1002e640
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x140]
jne 0x1002ea9a
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 0x1002ea80
push 4
add esi, 0xe5
push esi
call ebx
test eax, eax
jne 0x1002ea80
mov al, byte [esi]
test al, al
je 0x1002ea80
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x98]
cmp byte [eax + ecx + 0x65], 2
jne 0x1002e7ce
movaps xmm0, xmmword [0x10061d90]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x14120f1a
mov word [ebp - 0x40], 0x2615
mov byte [ebp - 0x3e], 0
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x15
jb 0x1002e711
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 0x1002e741
xor ecx, ecx
jmp 0x1002e750
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e747
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x90]
call fcn.100048e0
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1002e786
push 4
push esi
call ebx
test eax, eax
jne 0x1002e786
lea eax, [ebp - 0x90]
mov ecx, esi
push eax
call dword [0x10061534]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x1002e7a2
inc eax
push eax
push dword [ebp - 0x90]
call fcn.100047b0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1002e7bf
push 4
push esi
call ebx
test eax, eax
jne 0x1002e7bf
push 0xff5cb9fe
mov ecx, esi
call dword [0x1006153c]
mov dword [ebp - 0x94], 0xff808080
jmp 0x1002e8a0
mov cl, 0x75
mov dword [ebp - 0x38], 0x1b202e75
mov dword [ebp - 0x34], 0x55071011
xor eax, eax
mov dword [ebp - 0x30], 0x280c1402
mov byte [ebp - 0x2c], 0
nop dword [eax + eax]
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0xb
jae 0x1002e7ff
mov cl, byte [ebp - 0x38]
jmp 0x1002e7f0
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 0x1002e822
xor ecx, ecx
jmp 0x1002e831
lea ecx, [ebp - 0x37]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e828
sub ecx, edx
push ecx
lea eax, [ebp - 0x37]
push eax
lea ecx, [ebp - 0x90]
call fcn.100048e0
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1002e867
push 4
push esi
call ebx
test eax, eax
jne 0x1002e867
lea eax, [ebp - 0x90]
mov ecx, esi
push eax
call dword [0x10061534]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x1002e883
inc eax
push eax
push dword [ebp - 0x90]
call fcn.100047b0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1002e8a0
push 4
push esi
call ebx
test eax, eax
jne 0x1002e8a0
push 0xffc4fc03
mov ecx, esi
call dword [0x1006153c]
mov esi, dword [ebp - 0x3c]
mov esi, dword [esi - 4]
test esi, esi
je 0x1002e8c1
push 4
push esi
call ebx
test eax, eax
jne 0x1002e8c1
push dword [ebp - 0x94]
mov ecx, esi
call dword [0x1006153c]
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, 0x56
mov dword [ebp - 0x78], ecx
mov dl, 0x76
mov bl, 0x79
xor bl, bh
movzx eax, word [eax + ecx*2 + 0x50]
mov cl, 0x32
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, 0x73
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 0x1002e952
mov eax, dword [edx]
jmp 0x1002e954
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x67], 0
jne 0x1002e961
xor ecx, ecx
jmp 0x1002e970
lea ecx, [ebp - 0x67]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e967
sub ecx, esi
push ecx
lea eax, [ebp - 0x67]
mov ecx, edx
push eax
call fcn.100048e0
lea eax, [ebp - 0x90]
push eax
call fcn.10004200
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 0x10
jb 0x1002e99c
mov edx, dword [edx]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x1002e9b7
xor ecx, ecx
jmp 0x1002e9c9
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e9c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.100048e0
mov ebx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
mov esi, dword [ebx]
test esi, esi
je 0x1002e9f9
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002e9f9
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call dword [0x10061534]
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1002ea0b
inc eax
push eax
push dword [ebp - 0x54]
call fcn.100047b0
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 0x1002ea39
inc eax
push eax
push dword [ebp - 0x90]
call fcn.100047b0
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 0x1002ea7a
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ea7a
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 [0x10061524]
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 0x1002e6b0
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 0x1002eef5
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 0x1002eef5
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.100044a0
mov dword [ebp - 4], 4
mov eax, dword [edi + 0x158]
cmp byte [ebx + eax + 0x65], 2
jne 0x1002eb90
movaps xmm0, xmmword [str._]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x15081d0f
mov dword [ebp - 0x40], 0x211213
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x16
jb 0x1002eb50
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x3d], 0
jne 0x1002eb6b
xor ecx, ecx
jmp 0x1002eb7a
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002eb71
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006dd0
mov dword [ebp - 0x5c], 0xff5cb9fe
jmp 0x1002ebe9
mov cl, 0x72
mov dword [ebp - 0x38], 0x27295272
mov dword [ebp - 0x34], 0x17161c
xor eax, eax
mov dword [ebp - 0x30], 0xb130552
mov word [ebp - 0x2c], 0x2f
nop
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0xc
jae 0x1002ebbf
mov cl, byte [ebp - 0x38]
jmp 0x1002ebb0
cmp byte [ebp - 0x37], 0
mov byte [ebp - 0x2b], 0
jne 0x1002ebcd
xor ecx, ecx
jmp 0x1002ebdc
lea ecx, [ebp - 0x37]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ebd3
sub ecx, edx
push ecx
lea eax, [ebp - 0x37]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006dd0
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 0x1002ec12
xor ecx, ecx
jmp 0x1002ec20
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ec17
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.100048e0
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 4], 5
mov esi, dword [esi]
test esi, esi
je 0x1002ec56
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ec56
lea eax, [ebp - 0x90]
mov ecx, esi
push eax
call dword [0x10061534]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x1002ec6f
inc eax
push eax
push dword [ebp - 0x90]
call fcn.100047b0
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax]
test esi, esi
je 0x1002ec90
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ec90
push dword [ebp - 0x5c]
mov ecx, esi
call dword [0x1006153c]
mov eax, dword [edi + 0x158]
xor ecx, ecx
movaps xmm0, xmmword [0x10061cd0]
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 0x1002ecb5
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 0x1002ecf1
mov eax, dword [edx]
jmp 0x1002ecf3
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x6b], 0
jne 0x1002ed00
xor ecx, ecx
jmp 0x1002ed0f
lea ecx, [ebp - 0x6b]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ed06
sub ecx, esi
push ecx
lea eax, [ebp - 0x6b]
mov ecx, edx
push eax
call fcn.100048e0
lea eax, [ebp - 0xcc]
push eax
call fcn.10004200
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 0x10
jb 0x1002ed38
mov edx, dword [edx]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x1002ed53
xor ecx, ecx
jmp 0x1002ed61
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ed58
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.100048e0
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 7
mov esi, dword [eax - 4]
test esi, esi
je 0x1002ed92
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ed92
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call dword [0x10061534]
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1002eda4
inc eax
push eax
push dword [ebp - 0x54]
call fcn.100047b0
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 0x1002edd2
inc eax
push eax
push dword [ebp - 0xcc]
call fcn.100047b0
mov eax, dword [edi + 0x158]
lea ecx, [ebp - 0xcc]
mov dx, word [eax + ebx + 0x60]
call fcn.100286c0
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0x10
jb 0x1002edf6
mov edx, dword [edx]
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
cmp byte [edx], 0
jne 0x1002ee1a
xor ecx, ecx
jmp 0x1002ee29
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ee20
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb4]
call fcn.100048e0
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 9
mov esi, dword [eax + 8]
test esi, esi
je 0x1002ee60
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ee60
lea eax, [ebp - 0xb4]
mov ecx, esi
push eax
call dword [0x10061534]
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x1002ee78
inc eax
push eax
push dword [ebp - 0xb4]
call fcn.100047b0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
cmp eax, 0x10
jb 0x1002eeab
inc eax
push eax
push dword [ebp - 0xcc]
call fcn.100047b0
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 0x1002eedf
inc eax
push eax
push dword [ebp - 0x28]
call fcn.100047b0
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 0x1002eac0
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.100523a0
mov esp, ebp
pop ebp
ret 0x10