Function at 0x10022940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062728
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x10077604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov cl, 0x70
mov dword [ebp - 0x38], 0x1f023770
mov dword [ebp - 0x34], 0x3c2f0005
xor eax, eax
mov dword [ebp - 0x30], 0x1e39171f
mov byte [ebp - 0x2c], 0
nop word [eax + eax]
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0xb
jae 0x1002299f
mov cl, byte [ebp - 0x38]
jmp 0x10022990
cmp byte [ebp - 0x37], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jne 0x100229bf
xor ecx, ecx
jmp 0x100229ce
lea ecx, [ebp - 0x37]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100229c5
sub ecx, edx
push ecx
lea eax, [ebp - 0x37]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002800
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push eax
push dword [esi]
call fcn.10012500
mov dword [esi + 0x58], eax
add esp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10022a11
inc eax
push 1
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
mov bh, 0x6d
mov byte [ebp - 0x20], 0
mov dh, 0x28
mov byte [ebp - 0x28], bh
mov al, 9
mov byte [ebp - 0x20], 0
mov cl, 4
mov dword [ebp - 0x54], 0xf
mov dl, 0x19
mov dword [ebp - 0x58], 0
mov bl, 0x32
mov byte [ebp - 0x68], 0
mov ah, 0x24
mov ch, 0x29
xor dh, bh
xor al, bh
xor cl, bh
mov byte [ebp - 0x27], dh
xor dl, bh
mov byte [ebp - 0x26], al
xor bl, bh
mov byte [ebp - 0x25], cl
xor ah, bh
mov byte [ebp - 0x24], dl
xor ch, bh
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], ah
mov byte [ebp - 0x21], ch
test dh, dh
jne 0x10022a69
xor ecx, ecx
jmp 0x10022a79
lea ecx, [ebp - 0x27]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022a70
sub ecx, edx
push ecx
lea eax, [ebp - 0x27]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002800
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 1
push eax
push dword [esi + 0x58]
call fcn.10012500
mov dword [esi + 0x5c], eax
add esp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10022abd
inc eax
push 1
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
mov bh, 0x5c
mov byte [ebp - 0x20], 0
mov dh, 0x19
mov byte [ebp - 0x28], bh
mov al, 0x38
mov byte [ebp - 0x20], 0
mov cl, 0x35
mov dword [ebp - 0x54], 0xf
mov dl, 0x28
mov dword [ebp - 0x58], 0
mov bl, 3
mov byte [ebp - 0x68], 0
mov ah, 0xc
mov ch, 0xb
xor dh, bh
xor al, bh
xor cl, bh
mov byte [ebp - 0x27], dh
xor dl, bh
mov byte [ebp - 0x26], al
xor bl, bh
mov byte [ebp - 0x25], cl
xor ah, bh
mov byte [ebp - 0x24], dl
xor ch, bh
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], ah
mov byte [ebp - 0x21], ch
test dh, dh
jne 0x10022b15
xor ecx, ecx
jmp 0x10022b29
lea ecx, [ebp - 0x27]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022b20
sub ecx, edx
push ecx
lea eax, [ebp - 0x27]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002800
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 2
push eax
push dword [esi + 0x58]
call fcn.10012500
mov dword [esi + 0x60], eax
add esp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10022b6d
inc eax
push 1
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
mov dh, 0x2a
mov byte [ebp - 0x21], 0
mov ch, 0x48
mov byte [ebp - 0x28], dh
mov al, 0x5e
mov byte [ebp - 0x21], 0
mov cl, 0x44
mov dword [ebp - 0x54], 0xf
mov dl, 0x75
mov dword [ebp - 0x58], 0
mov bl, 0x45
mov byte [ebp - 0x68], 0
mov ah, 0x41
xor ch, dh
xor al, dh
mov byte [ebp - 0x27], ch
xor cl, dh
mov byte [ebp - 0x26], al
xor dl, dh
mov byte [ebp - 0x25], cl
xor bl, dh
mov byte [ebp - 0x24], dl
xor ah, dh
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], ah
test ch, ch
jne 0x10022bbe
xor ecx, ecx
jmp 0x10022bcd
lea ecx, [ebp - 0x27]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022bc4
sub ecx, edx
push ecx
lea eax, [ebp - 0x27]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002800
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 3
push eax
push dword [esi + 0x58]
call fcn.10012500
mov dword [esi + 0x64], eax
add esp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10022c11
inc eax
push 1
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
mov cl, 0x70
mov dword [ebp - 0x3c], 0x1e041270
mov dword [ebp - 0x38], 0x1d15022f
xor eax, eax
mov dword [ebp - 0x34], 0x15121d15
mov word [ebp - 0x30], 2
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x10022c3f
mov cl, byte [ebp - 0x3c]
jmp 0x10022c30
cmp byte [ebp - 0x3b], 0
mov byte [ebp - 0x2f], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jne 0x10022c5f
xor ecx, ecx
jmp 0x10022c6e
lea ecx, [ebp - 0x3b]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022c65
sub ecx, edx
push ecx
lea eax, [ebp - 0x3b]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002800
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 4
push eax
push dword [esi + 0x58]
call fcn.10012500
mov dword [esi + 0x68], eax
add esp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10022cb2
inc eax
push 1
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
cmp dword [0x1007816c], 0
je 0x10022d17
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10022ce0
mov eax, dword [0x10078128]
test eax, eax
je 0x10022ce0
cmp eax, 0x15
ja 0x10022ce0
push 1
push 0x10078118
push ecx
call fcn.10012f20
add esp, 0xc
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x10022d05
mov eax, dword [0x10078140]
test eax, eax
je 0x10022d05
cmp eax, 0x30
ja 0x10022d05
push 0
push 0x10078130
push ecx
call fcn.10012f20
add esp, 0xc
mov eax, dword [esi + 0x68]
test eax, eax
je 0x10022d17
push 3
push eax
call fcn.10012b40
add esp, 8
movaps xmm0, xmmword [0x10069990]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x26274863
mov byte [ebp - 0x2c], 0
nop
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x13
jb 0x10022d30
cmp byte [ebp - 0x3f], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jne 0x10022d5d
xor ecx, ecx
jmp 0x10022d6c
lea ecx, [ebp - 0x3f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022d63
sub ecx, edx
push ecx
lea eax, [ebp - 0x3f]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002800
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 5
push eax
push dword [esi]
call fcn.10012500
mov dword [esi + 0x6c], eax
add esp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10022daf
inc eax
push 1
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
mov eax, 1
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], eax
lea edi, [esi + 8]
push eax
mov byte [ebp - 0x38], 0xb
mov al, 0x78
xor al, byte [ebp - 0x38]
mov dl, 0x79
mov byte [ebp - 0x37], al
mov cl, 0x6e
mov al, byte [ebp - 0x38]
mov ch, dl
xor dl, al
mov byte [ebp - 0x2e], 0
mov dh, 0x54
mov byte [ebp - 0x35], dl
xor dh, al
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 0x31], dh
mov ah, cl
xor cl, al
mov byte [ebp - 0x2e], 0
xor ah, al
mov byte [ebp - 0x36], cl
xor ch, al
mov byte [ebp - 0x33], ah
mov bl, 0x7d
mov byte [ebp - 0x32], ch
xor bl, al
mov bh, 0x2e
xor bh, al
mov byte [ebp - 0x34], bl
mov al, byte [ebp - 0xd]
sub esp, 0x18
xor al, byte [ebp - 0x38]
mov edx, esp
mov byte [ebp - 0x30], bh
mov byte [ebp - 0x2f], al
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10022e42
mov eax, dword [edx]
jmp 0x10022e44
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x10022e51
xor ecx, ecx
jmp 0x10022e60
lea ecx, [ebp - 0x37]
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022e57
sub ecx, ebx
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10002800
lea eax, [ebp - 0x68]
push eax
call fcn.100322e0
push eax
push dword [esi + 0x6c]
mov dword [ebp - 4], 6
call fcn.10012500
mov dword [edi], eax
add esp, 0x28
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10022ea8
inc eax
push 1
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebp - 0x14]
add edi, 4
inc eax
sub dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
jne 0x10022dc1
mov bh, 0x75
mov dword [ebp - 0x54], 0xf
mov dl, 0x18
mov byte [ebp - 0x28], bh
xor ah, ah
mov dword [ebp - 0x58], 0
mov dh, 0x25
mov byte [ebp - 0x20], ah
mov ch, dl
mov byte [ebp - 0x20], 0
mov al, 7
mov byte [ebp - 0x68], 0
mov cl, 0x10
mov bl, 0x1c
xor dh, bh
xor al, bh
xor cl, bh
mov byte [ebp - 0x27], dh
xor dl, bh
mov byte [ebp - 0x26], al
xor bl, bh
mov byte [ebp - 0x25], cl
xor ah, bh
mov byte [ebp - 0x24], dl
xor ch, bh
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], ah
mov byte [ebp - 0x21], ch
test dh, dh
jne 0x10022f13
xor ecx, ecx
jmp 0x10022f29
lea ecx, [ebp - 0x27]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022f20
sub ecx, edx
push ecx
lea eax, [ebp - 0x27]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002800
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 7
push eax
push dword [esi]
call fcn.10012500
mov dword [esi + 0x70], eax
add esp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10022f6c
inc eax
push 1
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
movaps xmm0, xmmword [0x100699a0]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x7c7d7b
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x12
jb 0x10022f80
cmp byte [ebp - 0x3f], 0
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jne 0x10022fad
xor ecx, ecx
jmp 0x10022fbc
lea ecx, [ebp - 0x3f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022fb3
sub ecx, edx
push ecx
lea eax, [ebp - 0x3f]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002800
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 8
push eax
push dword [esi]
call fcn.10012500
mov dword [esi + 0x54], eax
add esp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10022fff
push 1
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10002610
add esp, 0xc
push dword [esi + 0x54]
mov ebx, dword [0xc20bac]
mov edi, dword [0xc20bb0]
call fcn.10012770
mov ecx, ebx
sub ecx, eax
push 0
push ecx
push dword [esi + 0x54]
call fcn.10012ab0
push dword [esi + 0x58]
call fcn.100125e0
mov esi, eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x58]
call fcn.100125b0
sub edi, eax
push edi
push esi
mov esi, dword [ebp - 0x1c]
push dword [esi + 0x58]
call fcn.10012ab0
push dword [esi + 0x6c]
call fcn.100125e0
push 0
push 0
push dword [esi + 0x6c]
call fcn.10012ab0
push dword [esi + 0x70]
lea eax, [ebp - 0x50]
push eax
call fcn.10012630
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
sub eax, 0x201
push 0
push eax
push dword [esi + 0x70]
call fcn.10012ab0
add esp, 0x48
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret