Function at 0x10022670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov dh, 0x2d
mov byte [esp + 6], 0
push esi
mov esi, ecx
mov byte [esp + 4], dh
mov dl, 0x48
mov dword [esp + 0x48], esi
mov ch, dl
mov byte [esp + 0xa], 0
mov cl, 0x44
mov dword [esp + 0x2c], 0
xor cl, dh
mov dword [esp + 0x30], 0
mov al, 0x4a
mov byte [esp + 8], cl
mov ah, 0x43
xor al, dh
xor dl, dh
mov byte [esp + 5], al
xor ah, dh
mov byte [esp + 6], dl
xor ch, dh
mov byte [esp + 7], ah
mov byte [esp + 9], ch
xorps xmm0, xmm0
lea ecx, [esp + 5]
movaps xmmword [esp + 0x1c], xmm0
push edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100226d8
sub ecx, edx
lea eax, [esp + 9]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.100024a0
cmp dword [esp + 0x30], 0
mov edi, dword [esi + 8]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov dword [esp + 0x1c], edi
je 0x10022783
test edi, edi
je 0x10022783
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10022783
mov eax, dword [edi + 0xc4]
mov dword [esp + 8], eax
mov esi, dword [eax]
cmp esi, eax
je 0x1002277d
cmp esi, dword [edi + 0xc4]
jne 0x10022733
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 8]
mov dword [esp + 0x18], edi
test edi, edi
je 0x10022763
cmp dword [edi + 0x78], 0x10
lea ecx, [edi + 0x64]
jb 0x10022749
mov ecx, dword [ecx]
cmp dword [esp + 0x34], 0xf
lea eax, [esp + 0x20]
cmova eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100227b7
mov edi, dword [esp + 0x1c]
cmp esi, dword [edi + 0xc4]
jne 0x10022775
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
cmp esi, dword [esp + 8]
jne 0x10022725
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
xor edi, edi
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x34]
cmp ecx, 0xf
jbe 0x100227c9
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100227bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100227bf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x10022789
push ecx
push edx
call fcn.1007d105
add esp, 8
mov al, 0x6d
mov byte [esp + 8], 0xc
mov ah, al
mov byte [esp + 0xf], 0
xor al, byte [esp + 8]
mov cl, 0x78
mov dl, cl
mov byte [esp + 9], al
mov al, byte [esp + 8]
mov ch, 0x6f
xor cl, al
mov dword [esp + 0x30], 0
xor ch, al
mov byte [esp + 0xa], cl
mov dh, 0x67
mov byte [esp + 0xd], ch
xor dl, al
mov dword [esp + 0x34], 0xf
xor ah, al
mov byte [esp + 0xb], dl
xor dh, al
mov byte [esp + 0x20], 0
xorps xmm0, xmm0
mov byte [esp + 0xe], dh
lea ecx, [esp + 9]
mov byte [esp + 0xc], ah
mov byte [esp + 0xf], 0
lea edx, [ecx + 1]
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022842
sub ecx, edx
lea eax, [esp + 9]
push ecx
push eax
lea ecx, [esp + 0x58]
call fcn.100024a0
cmp dword [esp + 0x60], 0
je 0x100228e0
test edi, edi
je 0x100228e0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100228e0
mov eax, dword [edi + 0xc4]
mov dword [esp + 8], eax
mov edi, dword [eax]
cmp edi, eax
je 0x100228e0
mov eax, dword [esp + 0x18]
cmp edi, dword [eax + 0xc4]
jne 0x10022894
call esi
mov eax, dword [esp + 0x18]
mov esi, dword [edi + 8]
test esi, esi
je 0x100228c4
cmp dword [esi + 0x78], 0x10
lea ecx, [esi + 0x64]
jb 0x100228a6
mov ecx, dword [ecx]
cmp dword [esp + 0x64], 0xf
lea eax, [esp + 0x50]
cmova eax, dword [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100228e2
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
cmp edi, dword [eax + 0xc4]
jne 0x100228d8
call esi
mov eax, dword [esp + 0x18]
mov edi, dword [edi]
cmp edi, dword [esp + 8]
jne 0x10022886
xor esi, esi
mov ecx, dword [esp + 0x64]
cmp ecx, 0xf
jbe 0x1002291a
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10022910
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10022910
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
movaps xmm0, xmmword [0x10089090]
xor ecx, ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0xf
mov byte [esp + 0x50], 0
movups xmmword [esp + 8], xmm0
nop dword [eax]
mov al, byte [esp + 8]
xor byte [esp + ecx + 9], al
inc ecx
cmp ecx, 0xe
jb 0x10022940
xorps xmm0, xmm0
mov byte [esp + 0x17], 0
lea ecx, [esp + 9]
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0
lea edx, [ecx + 1]
mov dword [esp + 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022972
sub ecx, edx
lea eax, [esp + 9]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.100024a0
cmp dword [esp + 0x30], 0
je 0x10022a06
test esi, esi
je 0x10022a06
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10022a06
mov eax, dword [esi + 0xc4]
mov dword [esp + 8], eax
mov edi, dword [eax]
cmp edi, eax
je 0x10022a06
cmp edi, dword [esi + 0xc4]
jne 0x100229c0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x100229f0
cmp dword [eax + 0x78], 0x10
lea ecx, [eax + 0x64]
jb 0x100229d6
mov ecx, dword [ecx]
cmp dword [esp + 0x34], 0xf
lea eax, [esp + 0x20]
cmova eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10022a3c
cmp edi, dword [esi + 0xc4]
jne 0x100229fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov edi, dword [edi]
cmp edi, dword [esp + 8]
jne 0x100229b2
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
cmp ecx, 0xf
jbe 0x10022a4c
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10022a42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10022a42
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [esp + 0x1c]
jmp 0x10022a08
push ecx
push edx
call fcn.1007d105
add esp, 8
movaps xmm0, xmmword [str.__VLLMVCVVCAI]
xor ecx, ecx
movups xmmword [esp + 8], xmm0
nop word [eax + eax]
mov al, byte [esp + 8]
xor byte [esp + ecx + 9], al
inc ecx
cmp ecx, 0xe
jb 0x10022a60
xorps xmm0, xmm0
mov byte [esp + 0x17], 0
lea ecx, [esp + 9]
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0
lea edx, [ecx + 1]
mov dword [esp + 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022a92
sub ecx, edx
lea eax, [esp + 9]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.100024a0
cmp dword [esp + 0x30], 0
je 0x10022b26
test esi, esi
je 0x10022b26
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10022b26
mov eax, dword [esi + 0xc4]
mov dword [esp + 8], eax
mov edi, dword [eax]
cmp edi, eax
je 0x10022b26
cmp edi, dword [esi + 0xc4]
jne 0x10022ae0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10022b10
cmp dword [eax + 0x78], 0x10
lea ecx, [eax + 0x64]
jb 0x10022af6
mov ecx, dword [ecx]
cmp dword [esp + 0x34], 0xf
lea eax, [esp + 0x20]
cmova eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10022b5d
cmp edi, dword [esi + 0xc4]
jne 0x10022b1e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov edi, dword [edi]
cmp edi, dword [esp + 8]
jne 0x10022ad2
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x34]
cmp ecx, 0xf
jbe 0x10022b6d
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10022b63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10022b63
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [esp + 0x1c]
jmp 0x10022b28
push ecx
push edx
call fcn.1007d105
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret