Function at 0x100022fe
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x178
mov eax, 0x1003daa5
call fcn.1003d78f
mov edi, ecx
mov dword [ebp - 0x140], edi
lea eax, [ebp - 0xe0]
push eax
call fcn.100394b0
pop ecx
push 0
push 0x989680
push dword [eax + 4]
push dword [eax]
call fcn.1003cf40
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
cmp byte [edi], 0
je 0x100029f4
cmp dword [0x10057860], 0
je 0x10002a0b
mov cl, 0x18
mov dword [ebp - 0xd8], 0x74774b18
mov word [ebp - 0xd4], 0x77
xor eax, eax
xor byte [ebp + eax - 0xd7], cl
inc eax
cmp eax, 4
jae 0x1000237d
mov cl, byte [ebp - 0xd8]
jmp 0x10002368
lea eax, [ebp - 0xd7]
mov byte [ebp - 0xd3], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003da4
xor edx, edx
mov dword [ebp - 4], edx
cmp byte [edi + 1], 1
jne 0x10002443
mov al, byte [edi + 3]
test al, al
jne 0x10002400
mov cl, 0x60
mov dword [ebp - 0xec], 0x12052d60
mov dword [ebp - 0xe8], 0xe010803
mov eax, edx
mov word [ebp - 0xe4], 0x14
xor byte [ebp + eax - 0xeb], cl
inc eax
cmp eax, 8
jae 0x100023df
mov cl, byte [ebp - 0xec]
jmp 0x100023ca
lea ecx, [ebp - 0xeb]
mov byte [ebp - 0xe3], dl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100023ee
lea eax, [ebp - 0xeb]
jmp 0x10002496
jle 0x10002443
movups xmm0, xmmword [0x1004c850]
mov ecx, edx
movups xmmword [ebp - 0x134], xmm0
mov al, byte [ebp - 0x134]
xor byte [ebp + ecx - 0x133], al
inc ecx
cmp ecx, 0xe
jb 0x10002412
lea ecx, [ebp - 0x133]
mov byte [ebp - 0x125], dl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002434
lea eax, [ebp - 0x133]
jmp 0x10002496
cmp byte [edi + 3], dl
jle 0x100024a2
mov cl, 0x17
mov dword [ebp - 0xe0], 0x65764717
mov word [ebp - 0xdc], 0x6e63
mov eax, edx
mov byte [ebp - 0xda], dl
xor byte [ebp + eax - 0xdf], cl
inc eax
cmp eax, 5
jae 0x1000247a
mov cl, byte [ebp - 0xe0]
jmp 0x10002465
lea ecx, [ebp - 0xdf]
mov byte [ebp - 0xda], dl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002489
lea eax, [ebp - 0xdf]
sub ecx, edx
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003b0f
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x118]
lea esi, [ebp - 0x2c]
mov ecx, edi
cmova esi, dword [ebp - 0x2c]
push eax
call fcn.100031f0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0xf
jbe 0x100024c7
mov eax, dword [eax]
push esi
push eax
mov cl, 0x29
mov dword [ebp - 0xf8], 0x95a0c29
mov dword [ebp - 0xf4], 0x5a0c0955
xor eax, eax
mov byte [ebp - 0xf0], 0
xor byte [ebp + eax - 0xf7], cl
inc eax
cmp eax, 7
jae 0x100024fd
mov cl, byte [ebp - 0xf8]
jmp 0x100024e8
sub esp, 0x18
mov byte [ebp - 0xf0], 0
lea eax, [ebp - 0xf7]
mov ecx, esp
push eax
call fcn.10003da4
lea eax, [ebp - 0xbc]
push eax
call fcn.100039ed
add esp, 0x24
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.10003ba2
cmp byte [0x100578dc], 0
mov edi, dword [0x10057860]
je 0x10002577
mov ecx, 0x10b8134
call fcn.1000d2b7
mov esi, eax
test esi, esi
je 0x10002577
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10002577
push 4
add esi, 0x6e8
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10002577
mov al, byte [esi]
mov byte [edi + 0x3c], al
cmp byte [0x100578dc], 0
movzx ecx, byte [edi + 0x3c]
mov edi, dword [0x10057860]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0xc0], edi
je 0x100025f6
mov ecx, 0x10b8134
call fcn.1000d2b7
mov esi, eax
test esi, esi
je 0x100025f0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100025f0
push 4
lea edi, [esi + 0x6bc]
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100025ea
cmp dword [esi + 0x6d0], 0x10
jb 0x100025d1
mov edi, dword [edi]
mov eax, dword [ebp - 0xc0]
add eax, 0x20
cmp dword [eax + 0x14], 0xf
jbe 0x100025e2
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xfc]
lea eax, [edi + 0x20]
cmp dword [eax + 0x14], 0xf
jbe 0x10002601
mov eax, dword [eax]
movups xmm0, xmmword [0x1004d7f0]
push ecx
push eax
movups xmmword [ebp - 0x13c], xmm0
mov dword [ebp - 0x12c], 0x3372776d
xor ecx, ecx
mov byte [ebp - 0x128], 0
mov al, byte [ebp - 0x13c]
xor byte [ebp + ecx - 0x13b], al
inc ecx
cmp ecx, 0x13
jb 0x10002624
sub esp, 0x18
mov byte [ebp - 0x128], 0
lea eax, [ebp - 0x13b]
mov ecx, esp
push eax
call fcn.10003da4
lea eax, [ebp - 0xa4]
push eax
call fcn.100039ed
add esp, 0x24
mov edi, dword [ebp - 0x140]
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.10002a14
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x10002682
mov eax, dword [eax]
push eax
mov cl, 0xd
mov dword [ebp - 0xc4], 0x7e280d
xor eax, eax
xor byte [ebp + eax - 0xc3], cl
inc eax
cmp eax, 2
jae 0x100026a6
mov cl, byte [ebp - 0xc4]
jmp 0x10002691
sub esp, 0x18
mov byte [ebp - 0xc1], 0
lea eax, [ebp - 0xc3]
mov ecx, esp
push eax
call fcn.10003da4
lea eax, [ebp - 0x8c]
push eax
call fcn.100039ed
add esp, 0x20
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 7
call fcn.10003ba2
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
call fcn.10002ca3
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0xf
jbe 0x100026f6
mov eax, dword [eax]
push eax
mov cl, 0x71
mov dword [ebp - 0xc8], 0x25471
xor eax, eax
xor byte [ebp + eax - 0xc7], cl
inc eax
cmp eax, 2
jae 0x1000271a
mov cl, byte [ebp - 0xc8]
jmp 0x10002705
sub esp, 0x18
mov byte [ebp - 0xc5], 0
lea eax, [ebp - 0xc7]
mov ecx, esp
push eax
call fcn.10003da4
lea eax, [ebp - 0x74]
push eax
call fcn.100039ed
add esp, 0x20
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0xa
call fcn.10003ba2
lea eax, [ebp - 0x118]
mov ecx, edi
push eax
call fcn.10002f22
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0xf
jbe 0x10002767
mov eax, dword [eax]
push eax
mov cl, 2
mov dword [ebp - 0xcc], 0x712702
xor eax, eax
xor byte [ebp + eax - 0xcb], cl
inc eax
cmp eax, 2
jae 0x1000278b
mov cl, byte [ebp - 0xcc]
jmp 0x10002776
sub esp, 0x18
mov byte [ebp - 0xc9], 0
lea eax, [ebp - 0xcb]
mov ecx, esp
push eax
call fcn.10003da4
lea eax, [ebp - 0x5c]
push eax
call fcn.100039ed
add esp, 0x20
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xd
call fcn.10003ba2
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
call fcn.10003095
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0xf
jbe 0x100027d8
mov eax, dword [eax]
push eax
mov cl, 0x4e
mov dword [ebp - 0xd0], 0x3d6b4e
xor eax, eax
xor byte [ebp + eax - 0xcf], cl
inc eax
cmp eax, 2
jae 0x100027fc
mov cl, byte [ebp - 0xd0]
jmp 0x100027e7
sub esp, 0x18
mov byte [ebp - 0xcd], 0
lea eax, [ebp - 0xcf]
mov ecx, esp
push eax
call fcn.10003da4
lea eax, [ebp - 0x44]
push eax
call fcn.100039ed
add esp, 0x20
lea ecx, [ebp - 0x13c]
call fcn.10003ba2
xor edx, edx
mov ecx, dword [edi + 0xc]
cmp dword [ebp - 0xa8], 0xf
lea eax, [ebp - 0xbc]
xorps xmm0, xmm0
mov dword [ebp - 0x17c], ecx
cmova eax, dword [ebp - 0xbc]
mov ecx, edx
cmp dword [ebp - 0x90], 0xf
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0xa4]
cmova eax, dword [ebp - 0xa4]
cmp dword [ebp - 0x78], 0xf
mov dword [ebp - 0x184], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x8c]
cmova eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x60], 0xf
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x74]
cmova eax, dword [ebp - 0x74]
cmp dword [ebp - 0x48], 0xf
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x5c]
cmova eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x30], 0xf
movlpd qword [ebp - 0x14c], xmm0
movlpd qword [ebp - 0x178], xmm0
movups xmm0, xmmword [0x1004cee0]
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
movups xmmword [ebp - 0x124], xmm0
mov dword [ebp - 0x154], edx
movups xmm0, xmmword [0x1004d880]
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x164], eax
movups xmmword [ebp - 0x114], xmm0
mov dword [ebp - 0x104], 0x2c2f2820
mov word [ebp - 0x100], 0x2e
mov al, byte [ebp - 0x124]
xor byte [ebp + ecx - 0x123], al
inc ecx
cmp ecx, 0x24
jb 0x1000290d
movups xmm0, xmmword [0x1004cfe0]
lea eax, [ebp - 0x123]
mov dword [ebp - 0x158], 8
mov dword [ebp - 0x160], eax
mov ecx, edx
movsx eax, byte [edi + 3]
mov dword [ebp - 0x15c], eax
movups xmmword [ebp - 0x120], xmm0
mov dword [ebp - 0x110], 0x3f040a25
mov dword [ebp - 0x10c], 0x1d3a1d28
mov dword [ebp - 0x108], 0x1d3a1d28
mov word [ebp - 0x104], 0x706d
mov byte [ebp - 0x102], dl
mov al, byte [ebp - 0x120]
xor byte [ebp + ecx - 0x11f], al
inc ecx
cmp ecx, 0x1d
jb 0x1000297d
lea eax, [ebp - 0x11f]
mov byte [ebp - 0x102], dl
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x150], eax
call fcn.10033060
lea ecx, [ebp - 0x44]
call fcn.10003ba2
lea ecx, [ebp - 0x5c]
call fcn.10003ba2
lea ecx, [ebp - 0x74]
call fcn.10003ba2
lea ecx, [ebp - 0x8c]
call fcn.10003ba2
lea ecx, [ebp - 0xa4]
call fcn.10003ba2
lea ecx, [ebp - 0xbc]
call fcn.10003ba2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003ba2
jmp 0x100029fb
xor ecx, ecx
call fcn.10033060
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000233b
mov ecx, dword [ebp - 0x14]
call fcn.1003d76d
ret