Function at 0x1002ea30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077afe
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1009d084]
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 ebx, ecx
mov dword [ebp - 0x68], ebx
movzx ecx, word [ebp + 8]
mov dword [ebp - 4], 0
mov esi, dword [0x100a67ec]
mov eax, esi
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1002ea94
nop dword [eax]
cmp dword [edx + 0x10], ecx
jae 0x1002ea8a
mov edx, dword [edx + 8]
jmp 0x1002ea8e
mov eax, edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x1002ea80
cmp eax, esi
je 0x1002ea9d
cmp ecx, dword [eax + 0x10]
jae 0x1002ea9f
mov eax, esi
cmp eax, esi
je 0x1002eaf1
lea edx, [eax + 0x14]
test edx, edx
je 0x1002eaf1
add edx, 4
cmp dword [edx + 0x14], 0x10
jb 0x1002eab5
mov edx, dword [edx]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp byte [edx], 0
jne 0x1002ead0
xor ecx, ecx
jmp 0x1002eade
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ead5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.100028b0
mov byte [ebp - 4], 1
jmp 0x1002eb8e
mov bh, 0x14
mov byte [ebp - 0x29], 0x16
mov byte [ebp - 0x37], bh
mov al, 0x5f
mov bh, byte [ebp - 0x29]
mov cl, 0x44
mov byte [ebp - 0x44], 0x2a
mov bl, cl
xor bh, byte [ebp - 0x44]
mov dh, bl
xor al, byte [ebp - 0x44]
mov dl, 0x41
mov byte [ebp - 0x29], bh
mov ah, 0x45
mov byte [ebp - 0x43], bh
mov ch, 0x5d
mov bh, byte [ebp - 0x37]
mov byte [ebp - 0x42], al
mov al, byte [ebp - 0x44]
xor cl, al
mov byte [ebp - 0x3a], 0
xor dl, al
mov byte [ebp - 0x41], cl
xor bl, al
mov byte [ebp - 0x40], dl
xor ah, al
mov byte [ebp - 0x3f], bl
xor ch, al
mov byte [ebp - 0x3e], ah
xor dh, al
mov byte [ebp - 0x3d], ch
xor bh, al
mov byte [ebp - 0x3c], dh
cmp byte [ebp - 0x29], 0
mov byte [ebp - 0x3b], bh
mov byte [ebp - 0x3a], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jne 0x1002eb6b
xor ecx, ecx
jmp 0x1002eb7a
lea ecx, [ebp - 0x43]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002eb71
sub ecx, edx
push ecx
lea eax, [ebp - 0x43]
push eax
lea ecx, [ebp - 0x5c]
call fcn.100028b0
mov ebx, dword [ebp - 0x68]
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x24]
lea edx, [ebp - 0x5c]
call fcn.10014710
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x1002ebb2
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.10002790
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov byte [ebp - 0x29], 0
cmp esi, edi
je 0x1002f029
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x60], eax
test ecx, ecx
je 0x1002f01b
test ax, ax
je 0x1002f01b
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10014880
mov ecx, eax
call dword [0x1009044c]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1002ed91
push 0
lea eax, [ebp - 0x37]
mov word [ebp - 0x38], 0x1d
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x37], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100028b0
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x34]
mov cl, byte [eax + 4]
call fcn.10011010
mov dword [ebp - 0x64], eax
test eax, eax
je 0x1002ec73
cmp dword [eax + 0x48], 0
je 0x1002ec73
push dword [ebp - 0x34]
xor edx, edx
lea ecx, [ebp - 0x5c]
push eax
call fcn.10011080
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.100074c0
jmp 0x1002ecc3
push dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x5c]
push 0
call fcn.10011080
add esp, 8
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x1002ecbf
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1002eca2
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10002790
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10005910
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x1002ecd8
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.10002790
movzx eax, byte [ebp - 0x29]
lea ecx, [eax + eax*2]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebx + ecx*8 + 0x3c]
test ecx, ecx
je 0x1002ed6f
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.10012ae0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + ecx*8 + 0x3c]
mov dword [eax + 0x50], edx
mov eax, dword [ebx + ecx*8 + 0x3c]
mov edx, dword [ebp - 0x64]
mov dword [eax + 0x54], edx
mov eax, dword [ebx + ecx*8 + 0x3c]
mov dword [eax + 0x58], 0
mov eax, dword [ebp - 0x30]
test edx, edx
je 0x1002ed2e
movsx edx, word [edx + 0x56]
movsx eax, word [eax + 0x66]
add edx, eax
jmp 0x1002ed32
movsx edx, word [eax + 0x66]
mov eax, dword [ebx + ecx*8 + 0x3c]
mov dword [eax + 0x5c], edx
mov eax, dword [ebx + ecx*8 + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x1002ed6f
lea edx, [ebp - 0x28]
call fcn.100145d0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebx + ecx*8 + 0x3c]
mov ebx, dword [eax]
test ebx, ebx
je 0x1002ed6f
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ed6f
push 1
mov ecx, ebx
call dword [0x10090478]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1002eeb3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002790
jmp 0x1002eeb3
mov ecx, dword [ebp - 0x34]
lea eax, [ecx - 1]
cmp eax, 0x5f5e0fe
ja 0x1002eeb3
movzx eax, byte [ebp - 0x29]
lea eax, [eax + eax*2]
cmp dword [ebx + eax*8 + 0x3c], 0
mov dword [ebp - 0x30], eax
mov dword [ebx + eax*8 + 0x28], ecx
je 0x1002ee91
movaps xmm0, xmmword [str.j_6]
xor ecx, ecx
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0x441e0f18
mov dword [ebp - 0x48], 0x1e120e
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x16
jb 0x1002edd6
lea eax, [ebp - 0x5b]
mov byte [ebp - 0x45], 0
push eax
lea ecx, [ebp - 0x80]
call fcn.100029b0
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x80]
mov byte [ebp - 4], 5
mov ecx, dword [ebx + ecx*8 + 0x3c]
add ecx, 4
call fcn.10012ae0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.10002360
mov eax, dword [ebp - 0x30]
mov eax, dword [ebx + eax*8 + 0x3c]
cmp dword [eax], 0
je 0x1002ee8e
movaps xmm0, xmmword [str.e0_9_f]
xor ecx, ecx
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0x4b110017
mov dword [ebp - 0x48], 0x111d01
nop dword [eax]
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x16
jb 0x1002ee40
lea eax, [ebp - 0x5b]
mov byte [ebp - 0x45], 0
push eax
lea ecx, [ebp - 0x80]
call fcn.100029b0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x80]
mov byte [ebp - 4], 6
mov ecx, dword [ebx + eax*8 + 0x3c]
mov ecx, dword [ecx]
call fcn.100145d0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.10002360
mov eax, dword [ebp - 0x30]
xor dl, dl
mov ecx, dword [ebx + eax*8 + 0x3c]
mov ecx, dword [ecx]
call fcn.10014570
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebx + eax*8 + 0x38]
test ebx, ebx
je 0x1002eeb3
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002eeb3
lea ecx, [ebx + 0xd0]
mov dl, 2
call fcn.100147b0
mov eax, dword [ebp - 0x60]
mov bh, 0x2e
movss xmm1, dword [0x10091ba0]
mov dl, 0x1c
movzx eax, ax
xor dl, bh
mov byte [ebp - 0x41], dl
sub esp, 0x20
xor cl, cl
mov byte [ebp - 0x44], bh
mov byte [ebp - 0x3c], cl
mov bl, 0x42
movd xmm0, eax
xor cl, bh
cvtdq2ps xmm0, xmm0
mov al, 0xb
mov byte [ebp - 0x42], cl
mov ch, al
mov byte [ebp - 0x3c], 0
mov dh, ch
mov ah, 0x48
xor dh, bh
xor al, bh
mov byte [ebp - 0x3d], dh
xor bl, bh
divss xmm0, xmm1
mov edx, esp
mov byte [ebp - 0x43], al
mov byte [ebp - 0x40], bl
xor ah, bh
mov byte [ebp - 0x3f], ah
xor ch, bh
mov byte [ebp - 0x3e], 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
minss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [ebp - 0x60], xmm1
movsd qword [esp + 0x18], xmm0
jb 0x1002ef46
mov eax, dword [edx]
jmp 0x1002ef48
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x43], 0
jne 0x1002ef55
xor ecx, ecx
jmp 0x1002ef69
lea ecx, [ebp - 0x43]
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ef60
sub ecx, ebx
push ecx
lea eax, [ebp - 0x43]
mov ecx, edx
push eax
call fcn.100028b0
lea eax, [ebp - 0x5c]
push eax
call fcn.10005a00
add esp, 0x24
mov ebx, dword [ebp - 0x68]
mov edx, eax
mov byte [ebp - 4], 7
movzx ecx, byte [ebp - 0x29]
mov dword [ebp - 0x34], ecx
lea ecx, [ecx + ecx*2]
mov ecx, dword [ebx + ecx*8 + 0x30]
call fcn.10014710
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x1002efb6
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.10002790
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*2]
mov eax, dword [ebx + eax*8 + 0x34]
mov dword [ebp - 0x64], eax
test eax, eax
je 0x1002eff2
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002eff2
movss xmm0, dword [ebp - 0x60]
sub esp, 0xc
mov ecx, dword [ebp - 0x64]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x10090494]
mov eax, dword [ebp - 0x34]
mov eax, dword [ebx + eax*4 + 0xc]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x1002f018
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002f018
mov ecx, dword [ebp - 0x60]
push 1
call dword [0x10090478]
inc byte [ebp - 0x29]
add esi, 8
cmp esi, edi
jne 0x1002ebc4
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1002f03c
mov eax, dword [ebp + 0x14]
sub eax, esi
sar eax, 3
push eax
push esi
call fcn.1002f1f0
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.1003a2a5
mov esp, ebp
pop ebp
ret 0x10