Function at 0x100226c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059670
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x10070014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
test eax, eax
je 0x100228cc
mov dword [esi + 0x24], eax
xor eax, eax
mov word [esi + 0x20], 1
mov word [esi + 0x28], ax
call fcn.10022da0
movaps xmm0, xmmword [str.:h_W_STST_]
xor ecx, ecx
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0xa0a611a
mov dword [ebp - 0x34], 0x670a0a00
mov byte [ebp - 0x30], 0
nop
mov al, byte [ebp - 0x48]
xor byte [ebp + ecx - 0x47], al
inc ecx
cmp ecx, 0x17
jb 0x10022730
cmp byte [ebp - 0x47], 0
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x1002275d
xor ecx, ecx
jmp 0x1002276c
lea ecx, [ebp - 0x47]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022763
sub ecx, edx
push ecx
lea eax, [ebp - 0x47]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10005550
mov byte [ebp - 4], 1
mov edi, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x1002279f
push 4
push edi
call ebx
test eax, eax
jne 0x1002279f
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call dword [0x100665c8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x100227b5
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.10005420
cmp dword [ebp + 0x1c], 0
jne 0x1002284e
mov byte [ebp - 0x20], 0x29
mov al, 0x7a
xor al, byte [ebp - 0x20]
mov cl, 0x40
xor cl, byte [ebp - 0x20]
mov dl, 0x4c
mov byte [ebp - 0x1f], al
mov ah, dl
mov byte [ebp - 0x1e], cl
mov ch, 9
mov cl, byte [ebp - 0x20]
mov dh, 0x6a
mov byte [ebp - 0x11], 0x48
xor ah, cl
mov al, byte [ebp - 0x11]
xor ch, cl
xor al, cl
mov byte [ebp - 0x12], 0x47
mov byte [ebp - 0x17], al
mov bl, 0x4e
mov al, byte [ebp - 0x12]
mov bh, 0x45
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.10005650
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x10]
test esi, esi
je 0x100228ba
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100228ba
lea eax, [ebp - 0x48]
push eax
jmp 0x100228b2
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
movaps xmm0, xmmword [0x100680c0]
cmovae eax, dword [ebp + 0xc]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x18
nop dword [eax]
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x10
jb 0x10022870
sub esp, 0x18
mov byte [ebp - 0x17], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10005650
lea eax, [ebp - 0x48]
push eax
call fcn.10009e40
add esp, 0x20
mov edi, eax
mov byte [ebp - 4], 3
mov esi, dword [esi + 0x10]
test esi, esi
je 0x100228ba
push 4
push esi
call ebx
test eax, eax
jne 0x100228ba
push edi
mov ecx, esi
call dword [0x100665c8]
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x100228cc
inc eax
push eax
push dword [ebp - 0x48]
call fcn.10005420
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x100228de
inc eax
push eax
push dword [ebp + 0xc]
call fcn.10005420
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