Function at 0x1002f0f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100881d8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x100a7078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov di, word [ebp + 8]
mov dword [ebp - 4], 0
test di, di
je 0x1002f303
movzx eax, word [esi + 0x28]
test ax, ax
jg 0x1002f303
movaps xmm0, xmmword [0x1009e810]
xor ecx, ecx
mov byte [esi + 0x20], 0
mov dword [esi + 0x24], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x7c76761d
mov dword [ebp - 0x18], 0x1b7676
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x16
jb 0x1002f161
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x15], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.10002870
mov byte [ebp - 4], 1
lea edx, [ebp - 0x48]
mov ecx, dword [esi + 8]
call fcn.10019110
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1002f1a6
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.10002650
movaps xmm0, xmmword [str._w_HDLKLKB]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x15157e05
mov dword [ebp - 0x18], 0x7815151f
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x17
jb 0x1002f1c5
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.10002870
mov byte [ebp - 4], 2
lea edx, [ebp - 0x48]
mov ecx, dword [esi + 0xc]
call fcn.10019110
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1002f20a
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.10002650
cmp dword [ebp + 0x1c], 0
jne 0x1002f286
mov byte [ebp - 0x20], 0x7c
mov al, 0x2f
xor al, byte [ebp - 0x20]
mov cl, 0x15
xor cl, byte [ebp - 0x20]
mov dl, 0x19
mov byte [ebp - 0x1f], al
mov ah, dl
mov byte [ebp - 0x1e], cl
mov ch, 0x5c
mov cl, byte [ebp - 0x20]
mov dh, 0x3f
mov byte [ebp - 0x2d], 0x1d
xor ah, cl
mov al, byte [ebp - 0x2d]
xor ch, cl
xor al, cl
mov byte [ebp - 0x2e], 0x12
mov byte [ebp - 0x17], al
mov bl, 0x1b
mov al, byte [ebp - 0x2e]
mov bh, 0x10
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.10002870
mov byte [ebp - 4], 3
lea edx, [ebp - 0x48]
jmp 0x1002f2d6
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
movaps xmm0, xmmword [0x1009e4b0]
cmovae eax, dword [ebp + 0xc]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x64
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x10
jb 0x1002f2a5
sub esp, 0x18
mov byte [ebp - 0x17], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10002870
lea eax, [ebp - 0x48]
push eax
call fcn.1000d830
add esp, 0x20
mov byte [ebp - 4], 4
mov edx, eax
mov ecx, dword [esi + 0x10]
call fcn.10019110
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.10002220
mov ecx, dword [esi]
push 2
call dword [0x1009d450]
mov ecx, esi
mov word [esi + 0x28], di
mov byte [esi + 0x21], 1
call fcn.1002f500
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x1002f318
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.10002650
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