Function at 0x100224e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059400
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x1006f014]
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 0x100226ec
mov dword [esi + 0x24], eax
xor eax, eax
mov word [esi + 0x20], 1
mov word [esi + 0x28], ax
call fcn.10022bc0
movaps xmm0, xmmword [0x10067020]
xor ecx, ecx
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0x25254e35
mov dword [ebp - 0x34], 0x4825252f
mov byte [ebp - 0x30], 0
nop
mov al, byte [ebp - 0x48]
xor byte [ebp + ecx - 0x47], al
inc ecx
cmp ecx, 0x17
jb 0x10022550
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 0x1002257d
xor ecx, ecx
jmp 0x1002258c
lea ecx, [ebp - 0x47]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022583
sub ecx, edx
push ecx
lea eax, [ebp - 0x47]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100054b0
mov byte [ebp - 4], 1
mov edi, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x100225bf
push 4
push edi
call ebx
test eax, eax
jne 0x100225bf
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call dword [0x100655b8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x100225d5
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.10005380
cmp dword [ebp + 0x1c], 0
jne 0x1002266e
mov byte [ebp - 0x20], 0x12
mov al, 0x41
xor al, byte [ebp - 0x20]
mov cl, 0x7b
xor cl, byte [ebp - 0x20]
mov dl, 0x77
mov byte [ebp - 0x1f], al
mov ah, dl
mov byte [ebp - 0x1e], cl
mov ch, 0x32
mov cl, byte [ebp - 0x20]
mov dh, 0x51
mov byte [ebp - 0x11], 0x73
xor ah, cl
mov al, byte [ebp - 0x11]
xor ch, cl
xor al, cl
mov byte [ebp - 0x12], 0x7c
mov byte [ebp - 0x17], al
mov bl, 0x75
mov al, byte [ebp - 0x12]
mov bh, 0x7e
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.100055b0
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x10]
test esi, esi
je 0x100226da
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100226da
lea eax, [ebp - 0x48]
push eax
jmp 0x100226d2
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
movaps xmm0, xmmword [0x100676b0]
cmovae eax, dword [ebp + 0xc]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x47
nop dword [eax]
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x10
jb 0x10022690
sub esp, 0x18
mov byte [ebp - 0x17], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.100055b0
lea eax, [ebp - 0x48]
push eax
call fcn.10009da0
add esp, 0x20
mov edi, eax
mov byte [ebp - 4], 3
mov esi, dword [esi + 0x10]
test esi, esi
je 0x100226da
push 4
push esi
call ebx
test eax, eax
jne 0x100226da
push edi
mov ecx, esi
call dword [0x100655b8]
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x100226ec
inc eax
push eax
push dword [ebp - 0x48]
call fcn.10005380
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x100226fe
inc eax
push eax
push dword [ebp + 0xc]
call fcn.10005380
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