Function at 0x10022950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9c85
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1018d004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10022b65
push dword [esi + 0x54]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x44]
xor edi, edi
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], esi
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], 0x7fffffff
add edx, 1
je 0x10022a10
add ecx, 4
cmp dword [ecx + 0x14], 8
mov edx, ecx
jb 0x100229ec
mov edx, dword [ecx]
cmp word [edx + eax*2], 0xa
je 0x100229f8
cmp eax, dword [ebp - 0x44]
jne 0x10022a04
cmp esi, dword [ebp + 0xc]
je 0x10022a61
lea edi, [eax + 1]
inc esi
mov dword [ebp - 0x4c], edi
mov edx, dword [ebp - 0x44]
inc eax
mov edi, dword [ebp - 0x4c]
inc edx
cmp eax, edx
jb 0x100229e2
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x54]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10022b65
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10022b5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022b90
jmp 0x10022b5b
xor edx, edx
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], dx
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x2c], 7
cmp edx, edi
jb 0x10022b95
sub eax, edi
sub edx, edi
cmp edx, eax
cmovb eax, edx
cmp dword [ecx + 0x14], 8
jb 0x10022a91
mov ecx, dword [ecx]
push eax
lea eax, [ecx + edi*2]
push eax
lea ecx, [ebp - 0x40]
call fcn.10006120
lea ecx, [ebp - 0x28]
call fcn.100055f0
movups xmm0, xmmword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x44], edx
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
add eax, 1
je 0x10022b20
xor ecx, ecx
nop word [eax + eax]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x48]
mov edi, ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x64]
push ecx
push edx
push eax
push dword [ebp - 0x54]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x64]
mov ecx, esi
sub eax, dword [ebp + 8]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x44]
cmp eax, ecx
cmovl ecx, eax
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x4c]
add ecx, edx
cmp eax, esi
mov eax, dword [ebp - 0x18]
cmovge ecx, edi
inc edx
inc eax
mov dword [ebp - 0x44], edx
cmp edx, eax
jb 0x10022ad0
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10022b56
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10022b4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022b9a
push edx
push ecx
call fcn.1007f3ba
add esp, 8
mov eax, dword [ebp - 0x50]
jmp 0x10022b73
push edx
push ecx
call fcn.1007f3ba
add esp, 8
push dword [ebp - 0x5c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007f9c8
mov esp, ebp
pop ebp
ret 8
call fcn.10084d4f
call fcn.1000c1c0
call fcn.10084d4f
int3