Function at 0x100022fe
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x178
mov eax, 0x1003db85
call fcn.1003d86f
mov edi, ecx
mov dword [ebp - 0x140], edi
lea eax, [ebp - 0xe0]
push eax
call fcn.10039590
pop ecx
push 0
push 0x989680
push dword [eax + 4]
push dword [eax]
call fcn.1003d020
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
cmp byte [edi], 0
je 0x100029f3
cmp dword [0x10057860], 0
je 0x10002a0a
mov cl, 0x11
mov dword [ebp - 0xd8], 0x7d7e4211
mov word [ebp - 0xd4], 0x7e
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.10003d9a
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, 0x52
mov dword [ebp - 0xec], 0x20371f52
mov dword [ebp - 0xe8], 0x3c333a31
mov eax, edx
mov word [ebp - 0xe4], 0x26
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 [str.E_b_7__1j]
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, 9
mov dword [ebp - 0xe0], 0x7b685909
mov word [ebp - 0xdc], 0x707d
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.10003b05
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.100031dd
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0xf
jbe 0x100024c7
mov eax, dword [eax]
push esi
push eax
mov cl, 0x27
mov dword [ebp - 0xf8], 0x7540227
mov dword [ebp - 0xf4], 0x5402075b
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.10003d9a
lea eax, [ebp - 0xbc]
push eax
call fcn.100039e3
add esp, 0x24
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.10003b98
cmp byte [0x100578dc], 0
mov edi, dword [0x10057860]
je 0x10002577
mov ecx, 0x10b8134
call fcn.1000d2bd
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.1000d2bd
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 [str._jEIA]
push ecx
push eax
movups xmmword [ebp - 0x13c], xmm0
mov dword [ebp - 0x12c], 0x4001041e
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.10003d9a
lea eax, [ebp - 0xa4]
push eax
call fcn.100039e3
add esp, 0x24
mov edi, dword [ebp - 0x140]
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.10002a13
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x10002682
mov eax, dword [eax]
push eax
mov cl, 0x13
mov dword [ebp - 0xc4], 0x603613
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.10003d9a
lea eax, [ebp - 0x8c]
push eax
call fcn.100039e3
add esp, 0x20
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 7
call fcn.10003b98
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
call fcn.10002c9e
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0xf
jbe 0x100026f6
mov eax, dword [eax]
push eax
mov cl, 5
mov dword [ebp - 0xc8], 0x762005
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.10003d9a
lea eax, [ebp - 0x74]
push eax
call fcn.100039e3
add esp, 0x20
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0xa
call fcn.10003b98
lea eax, [ebp - 0x118]
mov ecx, edi
push eax
call fcn.10002f1d
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0xf
jbe 0x10002767
mov eax, dword [eax]
push eax
mov cl, 0x3f
mov dword [ebp - 0xcc], 0x4c1a3f
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.10003d9a
lea eax, [ebp - 0x5c]
push eax
call fcn.100039e3
add esp, 0x20
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xd
call fcn.10003b98
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
call fcn.10003088
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0xf
jbe 0x100027d8
mov eax, dword [eax]
push eax
mov cl, 0x18
mov dword [ebp - 0xd0], 0x6b3d18
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.10003d9a
lea eax, [ebp - 0x44]
push eax
call fcn.100039e3
add esp, 0x20
lea ecx, [ebp - 0x13c]
call fcn.10003b98
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0xbc]
xor edx, edx
mov dword [ebp - 0x17c], ecx
cmp dword [ebp - 0xa8], 0xf
xorps xmm0, xmm0
push 0xf
cmova eax, dword [ebp - 0xbc]
cmp dword [ebp - 0x90], 0xf
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0xa4]
cmova eax, dword [ebp - 0xa4]
mov dword [ebp - 0x184], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x8c]
pop ecx
cmp dword [ebp - 0x78], ecx
movlpd qword [ebp - 0x14c], xmm0
cmova eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x60], ecx
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x74]
cmova eax, dword [ebp - 0x74]
cmp dword [ebp - 0x48], ecx
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x5c]
cmova eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x30], ecx
mov ecx, edx
movlpd qword [ebp - 0x178], xmm0
movups xmm0, xmmword [0x1004cae0]
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 [0x1004d480]
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x164], eax
movups xmmword [ebp - 0x114], xmm0
mov dword [ebp - 0x104], 0xa090e06
mov word [ebp - 0x100], 8
mov al, byte [ebp - 0x124]
xor byte [ebp + ecx - 0x123], al
inc ecx
cmp ecx, 0x24
jb 0x1000290c
movups xmm0, xmmword [0x1004ca90]
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], 0xf343a15
mov dword [ebp - 0x10c], 0x2d0a2d18
mov dword [ebp - 0x108], 0x2d0a2d18
mov word [ebp - 0x104], 0x405d
mov byte [ebp - 0x102], dl
mov al, byte [ebp - 0x120]
xor byte [ebp + ecx - 0x11f], al
inc ecx
cmp ecx, 0x1d
jb 0x1000297c
lea eax, [ebp - 0x11f]
mov byte [ebp - 0x102], dl
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x150], eax
call fcn.100330a0
lea ecx, [ebp - 0x44]
call fcn.10003b98
lea ecx, [ebp - 0x5c]
call fcn.10003b98
lea ecx, [ebp - 0x74]
call fcn.10003b98
lea ecx, [ebp - 0x8c]
call fcn.10003b98
lea ecx, [ebp - 0xa4]
call fcn.10003b98
lea ecx, [ebp - 0xbc]
call fcn.10003b98
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003b98
jmp 0x100029fa
xor ecx, ecx
call fcn.100330a0
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000233b
mov ecx, dword [ebp - 0x14]
call fcn.1003d84d
ret