Function at 0x1001de30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055c48
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x1006a018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp word [ebp + 8], 0
mov dword [ebp - 4], 0
jbe 0x1001e0b5
movzx eax, word [esi + 0x28]
test ax, ax
jg 0x1001e0b5
movaps xmm0, xmmword [0x10063230]
xor ecx, ecx
mov byte [esi + 0x20], 0
mov dword [esi + 0x24], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x303a3a51
mov dword [ebp - 0x18], 0x573a3a
nop
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x16
jb 0x1001dea0
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x15], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.100053b0
mov byte [ebp - 4], 1
mov edi, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x1001dee3
push 4
push edi
call ebx
test eax, eax
jne 0x1001dee3
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call dword [0x1006254c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1001def9
inc eax
push eax
push dword [ebp - 0x48]
call fcn.10005180
movaps xmm0, xmmword [0x10063320]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x38385328
mov dword [ebp - 0x18], 0x55383832
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x17
jb 0x1001df18
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.100053b0
mov byte [ebp - 4], 2
mov edi, dword [esi + 0xc]
test edi, edi
je 0x1001df55
push 4
push edi
call ebx
test eax, eax
jne 0x1001df55
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call dword [0x1006254c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1001df6b
inc eax
push eax
push dword [ebp - 0x48]
call fcn.10005180
cmp dword [ebp + 0x1c], 0
jne 0x1001e004
mov byte [ebp - 0x20], 0x4b
mov al, 0x18
xor al, byte [ebp - 0x20]
mov cl, 0x22
xor cl, byte [ebp - 0x20]
mov dl, 0x2e
mov byte [ebp - 0x1f], al
mov ah, dl
mov byte [ebp - 0x1e], cl
mov ch, 0x6b
mov cl, byte [ebp - 0x20]
mov dh, 8
mov byte [ebp - 0x2d], 0x2a
xor ah, cl
mov al, byte [ebp - 0x2d]
xor ch, cl
xor al, cl
mov byte [ebp - 0x2e], 0x25
mov byte [ebp - 0x17], al
mov bl, 0x2c
mov al, byte [ebp - 0x2e]
mov bh, 0x27
xor al, cl
mov byte [ebp - 0x1b], ah
mov byte [ebp - 0x16], al
xor dl, cl
xor bl, cl
mov byte [ebp - 0x1a], ch
xor dh, cl
mov byte [ebp - 0x15], 0
xor bh, cl
mov byte [ebp - 0x1d], dl
lea eax, [ebp - 0x1f]
mov byte [ebp - 0x1c], bl
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x19], dh
mov byte [ebp - 0x18], bh
mov byte [ebp - 0x15], 0
call fcn.100053b0
mov byte [ebp - 4], 3
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1001e070
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001e070
lea eax, [ebp - 0x48]
push eax
jmp 0x1001e068
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
movaps xmm0, xmmword [0x10063930]
cmovae eax, dword [ebp + 0xc]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x4c
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x10
jb 0x1001e023
sub esp, 0x18
mov byte [ebp - 0x17], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.100053b0
lea eax, [ebp - 0x48]
push eax
call fcn.1000be20
add esp, 0x20
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 4
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1001e070
push 4
push edi
call ebx
test eax, eax
jne 0x1001e070
push dword [ebp - 0x4c]
mov ecx, edi
call dword [0x1006254c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1001e086
inc eax
push eax
push dword [ebp - 0x48]
call fcn.10005180
mov ecx, dword [esi]
push 2
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
call dword [0x100625a0]
mov ax, word [ebp + 8]
mov ecx, esi
mov word [esi + 0x28], ax
mov byte [esi + 0x21], 1
call fcn.1001e2d0
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x1001e0c7
inc eax
push eax
push dword [ebp + 0xc]
call fcn.10005180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c