Function at 0x1002ec50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092daa
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x100bb084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
cmp byte [esi + 0x13c], 0
movzx eax, word [esi + 0x140]
movzx ecx, word [esi + 0x136]
push eax
mov word [esi + 0x13e], cx
push ecx
je 0x1002ed37
movaps xmm0, xmmword [0x100afb40]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x34793835
mov byte [ebp - 0x24], 0
nop dword [eax]
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x13
jb 0x1002ecc0
sub esp, 0x18
mov byte [ebp - 0x24], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1002ecee
mov eax, dword [edx]
jmp 0x1002ecf0
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x1002ecfd
xor ecx, ecx
jmp 0x1002ed0c
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ed03
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10004d00
lea eax, [ebp - 0x80]
push eax
call fcn.10004670
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 0
mov ebx, 1
jmp 0x1002ede0
mov byte [ebp - 0x20], 0x16
mov al, 0x33
mov dh, al
mov byte [ebp - 0x17], 0
xor al, byte [ebp - 0x20]
mov dl, 0x36
mov byte [ebp - 0x1f], al
mov ch, dl
mov al, byte [ebp - 0x20]
mov cl, 0x72
xor dl, al
mov byte [ebp - 0x17], 0
xor dh, al
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x19], dh
sub esp, 0x18
mov edx, esp
mov bh, cl
mov bl, 0x79
mov ah, 0x70
xor cl, al
xor bl, al
xor ah, al
mov byte [ebp - 0x1e], cl
xor ch, al
mov byte [ebp - 0x1c], bl
xor bh, al
mov byte [ebp - 0x1b], ah
mov byte [ebp - 0x1a], ch
mov byte [ebp - 0x18], bh
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1002ed9c
mov eax, dword [edx]
jmp 0x1002ed9e
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x1f], 0
jne 0x1002edab
xor ecx, ecx
jmp 0x1002edba
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002edb1
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10004d00
lea eax, [ebp - 0x68]
push eax
call fcn.10004670
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 1
mov ebx, 2
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x10], ebx
jb 0x1002edeb
mov edx, dword [edx]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x1002ee06
xor ecx, ecx
jmp 0x1002ee19
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ee10
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10004d00
mov dword [ebp - 4], 2
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1002ee4a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ee4a
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call dword [0x100adae4]
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1002ee5f
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.10004bb0
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
test bl, 2
je 0x1002eea0
mov eax, dword [ebp - 0x54]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x1002ee8e
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.10004bb0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
test bl, 1
je 0x1002eeba
mov eax, dword [ebp - 0x6c]
cmp eax, 0x10
jb 0x1002eeba
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.10004bb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret