Function at 0x10022b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0x28320446
push edi
mov cl, 0x46
mov dword [esp + 0x10], 0x362f1019
mov dword [esp + 0x14], 0x2a332710
xor eax, eax
mov word [esp + 0x18], 0x32
xor byte [esp + eax + 0xd], cl
inc eax
cmp eax, 0xc
jae 0x10022b41
mov cl, byte [esp + 0xc]
jmp 0x10022b31
cmp byte [esp + 0xd], 0
mov byte [esp + 0x19], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jne 0x10022b66
xor ecx, ecx
jmp 0x10022b79
lea ecx, [esp + 0xd]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022b70
sub ecx, edx
push ecx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x28]
call fcn.100028c0
mov ecx, dword [esi]
lea edx, [esp + 0x20]
call fcn.100145a0
mov edx, dword [esp + 0x34]
mov dword [esi + 4], eax
cmp edx, 0x10
jb 0x10022bae
mov ecx, dword [esp + 0x20]
inc edx
push 1
call fcn.10002790
add esp, 4
push 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x10022bc4
mov dword [esi + 4], 0
mov byte [esp + 0xc], 0x35
mov al, 0x54
xor al, byte [esp + 0xc]
mov cl, 0x46
mov bh, 0x57
mov byte [esp + 0xe], al
mov al, byte [esp + 0xc]
mov dh, cl
xor bh, byte [esp + 0xc]
mov dl, 0x50
mov bl, 0x6a
mov byte [esp + 0x15], 0
mov ah, 0x56
mov byte [esp + 0xd], bh
mov ch, 0x5a
mov byte [esp + 0x15], 0
xor cl, al
mov dword [esp + 0x34], 0xf
xor dl, al
mov byte [esp + 0xf], cl
xor bl, al
mov byte [esp + 0x10], dl
xor ah, al
mov byte [esp + 0x11], bl
xor ch, al
mov byte [esp + 0x12], ah
xor dh, al
mov byte [esp + 0x13], ch
mov byte [esp + 0x14], dh
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
test bh, bh
jne 0x10022c38
xor ecx, ecx
jmp 0x10022c49
lea ecx, [esp + 0xd]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022c40
sub ecx, edx
push ecx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x28]
call fcn.100028c0
mov ecx, dword [esi]
lea edx, [esp + 0x20]
call fcn.100145a0
mov edx, dword [esp + 0x34]
mov dword [esi + 8], eax
cmp edx, 0x10
jb 0x10022c7e
mov ecx, dword [esp + 0x20]
inc edx
push 1
call fcn.10002790
add esp, 4
movaps xmm0, xmmword [0x1006f6c0]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov byte [esp + 0x1c], 0
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0xf
jb 0x10022c91
cmp byte [esp + 0xd], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jne 0x10022cc4
xor ecx, ecx
jmp 0x10022cd9
lea ecx, [esp + 0xd]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022cd0
sub ecx, edx
push ecx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x28]
call fcn.100028c0
mov ecx, dword [esi]
lea edx, [esp + 0x20]
call fcn.100145a0
mov edx, dword [esp + 0x34]
mov dword [esi + 0xc], eax
cmp edx, 0x10
jb 0x10022d0e
mov ecx, dword [esp + 0x20]
inc edx
push 1
call fcn.10002790
add esp, 4
movaps xmm0, xmmword [0x1006fef0]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0x1c], 0x4351
mov byte [esp + 0x1e], 0
nop dword [eax + eax]
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x11
jb 0x10022d30
cmp byte [esp + 0xd], 0
mov byte [esp + 0x1e], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jne 0x10022d63
xor ecx, ecx
jmp 0x10022d79
lea ecx, [esp + 0xd]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022d70
sub ecx, edx
push ecx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x28]
call fcn.100028c0
mov ecx, dword [esi]
lea edx, [esp + 0x20]
call fcn.100145a0
mov edx, dword [esp + 0x34]
mov dword [esi + 0x10], eax
cmp edx, 0x10
jb 0x10022dae
mov ecx, dword [esp + 0x20]
inc edx
push 1
call fcn.10002790
add esp, 4
movaps xmm0, xmmword [0x1006f9e0]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0x1c], 0x2735
mov byte [esp + 0x1e], 0
nop dword [eax + eax]
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x11
jb 0x10022dd0
cmp byte [esp + 0xd], 0
mov byte [esp + 0x1e], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jne 0x10022e03
xor ecx, ecx
jmp 0x10022e19
lea ecx, [esp + 0xd]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022e10
sub ecx, edx
push ecx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x28]
call fcn.100028c0
mov ecx, dword [esi]
lea edx, [esp + 0x20]
call fcn.100145a0
mov edx, dword [esp + 0x34]
mov dword [esi + 0x14], eax
cmp edx, 0x10
jb 0x10022e4e
mov ecx, dword [esp + 0x20]
inc edx
push 1
call fcn.10002790
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push dword [esi + 8]
call ebx
test eax, eax
je 0x10022e66
mov dword [esi + 8], 0
push 4
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x10022e78
mov dword [esi + 0xc], 0
push 4
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x10022e8a
mov dword [esi + 0x10], 0
push 4
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x10022e9c
mov dword [esi + 0x14], 0
mov edi, dword [esi + 0xc]
test edi, edi
je 0x10022ecc
cmp dword [0x1007a824], 0
push 4
push edi
je 0x10022eb9
call ebx
test eax, eax
jne 0x10022ecc
mov dl, 3
jmp 0x10022ec1
call ebx
test eax, eax
jne 0x10022ecc
mov dl, 2
lea ecx, [edi + 0xd0]
call fcn.100151b0
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10022efc
cmp dword [0x1007a828], 0
push 4
push edi
je 0x10022ee9
call ebx
test eax, eax
jne 0x10022efc
mov dl, 3
jmp 0x10022ef1
call ebx
test eax, eax
jne 0x10022efc
mov dl, 2
lea ecx, [edi + 0xd0]
call fcn.100151b0
cmp dword [esi + 0x14], 0
je 0x10022f62
cmp dword [0x1007a82c], 0
mov eax, 0xeb
mov ecx, 0x74
cmovne eax, ecx
mov byte [0x427dcd], al
cmp dword [0x1007a82c], 0
mov esi, dword [esi + 0x14]
je 0x10022f48
test esi, esi
je 0x10022f62
push 4
push esi
call ebx
test eax, eax
jne 0x10022f62
mov dl, 3
lea ecx, [esi + 0xd0]
call fcn.100151b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10022f62
push 4
push esi
call ebx
test eax, eax
jne 0x10022f62
mov dl, 2
lea ecx, [esi + 0xd0]
call fcn.100151b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret