Function at 0x10021560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100bb084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, 0x10
mov byte [ebp - 0x29], 6
mov bh, al
mov byte [ebp - 0x50], 0x64
xor al, byte [ebp - 0x50]
mov ah, 1
mov byte [ebp - 0x2a], bh
mov dh, ah
mov bh, byte [ebp - 0x29]
mov dl, 0xa
xor bh, byte [ebp - 0x50]
mov bl, 0x3b
mov byte [ebp - 0x29], bh
mov cl, 0x16
mov byte [ebp - 0x4f], bh
mov ch, 0x17
mov bh, byte [ebp - 0x2a]
mov byte [ebp - 0x4e], al
mov al, byte [ebp - 0x50]
xor dl, al
mov byte [ebp - 0x46], 0
xor bl, al
mov byte [ebp - 0x4d], dl
xor cl, al
mov byte [ebp - 0x4c], bl
xor ah, al
mov byte [ebp - 0x4b], cl
xor ch, al
mov byte [ebp - 0x4a], ah
xor dh, al
mov byte [ebp - 0x49], ch
xor bh, al
mov byte [ebp - 0x48], dh
cmp byte [ebp - 0x29], 0
mov byte [ebp - 0x47], bh
mov byte [ebp - 0x46], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x10021607
xor ecx, ecx
jmp 0x10021619
lea ecx, [ebp - 0x4f]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021610
sub ecx, edx
push ecx
lea eax, [ebp - 0x4f]
push eax
lea ecx, [ebp - 0x28]
call fcn.10004a40
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10021658
mov eax, dword [ecx]
jmp 0x1002165a
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.100045d0
mov ecx, dword [esi]
call fcn.10014550
mov dword [esi + 4], eax
mov bl, 0x5a
mov byte [ebp - 0x3c], 0x3f
mov dh, bl
mov al, 0x5d
mov byte [ebp - 0x2a], dh
xor al, byte [ebp - 0x3c]
mov cl, 0x5e
xor cl, byte [ebp - 0x3c]
mov dl, 0x4c
mov byte [ebp - 0x3b], al
mov bh, dl
mov al, byte [ebp - 0x2a]
mov ah, 0x60
mov byte [ebp - 0x3a], cl
mov ch, 0x4d
mov cl, byte [ebp - 0x3c]
xor al, cl
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x33], al
xor dl, cl
mov byte [ebp - 0x39], dl
xor dh, cl
mov byte [ebp - 0x35], dh
xor bl, cl
mov edx, esp
mov byte [ebp - 0x29], 0x4b
mov al, byte [ebp - 0x29]
xor ah, cl
mov byte [ebp - 0x38], bl
xor ch, cl
mov byte [ebp - 0x37], ah
xor bh, cl
mov byte [ebp - 0x36], ch
xor al, cl
mov byte [ebp - 0x34], bh
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], 0
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 0x100216fc
mov eax, dword [edx]
jmp 0x100216fe
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x3b], 0
jne 0x1002170b
xor ecx, ecx
jmp 0x1002171a
lea ecx, [ebp - 0x3b]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021711
sub ecx, edi
push ecx
lea eax, [ebp - 0x3b]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [esi]
call fcn.10014550
movaps xmm0, xmmword [0x100af820]
add esp, 0x18
mov dword [esi + 8], eax
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xf
jb 0x10021744
sub esp, 0x18
mov byte [ebp - 0x30], 0
mov edx, esp
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 0x10021780
mov eax, dword [edx]
jmp 0x10021782
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x3f], 0
jne 0x1002178f
xor ecx, ecx
jmp 0x1002179e
lea ecx, [ebp - 0x3f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021795
sub ecx, edi
push ecx
lea eax, [ebp - 0x3f]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [esi + 8]
call fcn.10014550
mov dword [esi + 0xc], eax
mov cl, 0x14
mov byte [ebp - 0x3c], 0x60
mov al, 2
xor al, byte [ebp - 0x3c]
mov dh, 5
mov byte [ebp - 0x3b], al
mov dl, 0xe
mov byte [ebp - 0x29], cl
mov bl, 0x3f
xor cl, byte [ebp - 0x3c]
mov ah, 0x10
mov byte [ebp - 0x3a], cl
mov ch, 0x12
mov cl, byte [ebp - 0x3c]
mov bh, 0x13
mov byte [ebp - 0x2a], dh
xor dl, cl
mov al, byte [ebp - 0x2a]
xor dh, cl
mov byte [ebp - 0x39], dl
xor al, cl
mov byte [ebp - 0x33], al
xor bl, cl
mov al, byte [ebp - 0x29]
xor ah, cl
mov byte [ebp - 0x35], dh
xor ch, cl
mov edx, esp
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x38], bl
xor bh, cl
mov byte [ebp - 0x37], ah
xor al, cl
mov byte [ebp - 0x36], ch
mov byte [ebp - 0x34], bh
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], 0
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 0x1002183c
mov eax, dword [edx]
jmp 0x1002183e
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x3b], 0
jne 0x1002184b
xor ecx, ecx
jmp 0x1002185a
lea ecx, [ebp - 0x3b]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021851
sub ecx, edi
push ecx
lea eax, [ebp - 0x3b]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [esi + 8]
call fcn.10014550
movaps xmm0, xmmword [0x100af490]
add esp, 0x18
mov dword [esi + 0x14], eax
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xf
jb 0x10021885
sub esp, 0x18
mov byte [ebp - 0x30], 0
mov edx, esp
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 0x100218c1
mov eax, dword [edx]
jmp 0x100218c3
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x3f], 0
jne 0x100218d0
xor ecx, ecx
jmp 0x100218df
lea ecx, [ebp - 0x3f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100218d6
sub ecx, edi
push ecx
lea eax, [ebp - 0x3f]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [esi + 8]
call fcn.10014550
mov edi, dword [esi + 8]
add esp, 0x18
mov dword [esi + 0x10], eax
test edi, edi
je 0x10021916
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10021916
push eax
mov ecx, edi
call dword [0x100ad890]
mov ch, 0x15
mov byte [ebp - 0x32], 0
mov dl, 0x7b
mov byte [ebp - 0x38], ch
xor dl, ch
mov byte [ebp - 0x32], 0
mov byte [ebp - 0x35], dl
sub esp, 0x18
mov edx, esp
mov al, 0x77
mov cl, 0x61
mov bl, 0x4a
mov ah, 0x21
xor al, ch
mov byte [ebp - 0x37], al
xor cl, ch
mov byte [ebp - 0x36], cl
xor bl, ch
mov byte [ebp - 0x34], bl
xor ah, ch
mov byte [ebp - 0x33], ah
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 0x10021971
mov eax, dword [edx]
jmp 0x10021973
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x10021980
xor ecx, ecx
jmp 0x1002198f
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021986
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [esi]
call fcn.10014550
mov ch, 0x1d
mov dword [esi + 0x18], eax
mov dl, 0x73
mov byte [ebp - 0x32], 0
xor dl, ch
mov byte [ebp - 0x38], ch
mov byte [ebp - 0x35], dl
mov al, 0x7f
mov edx, esp
mov byte [ebp - 0x32], 0
mov cl, 0x69
mov bl, 0x42
mov ah, 0x28
xor al, ch
mov byte [ebp - 0x37], al
xor cl, ch
mov byte [ebp - 0x36], cl
xor bl, ch
mov byte [ebp - 0x34], bl
xor ah, ch
mov byte [ebp - 0x33], ah
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 0x100219fd
mov eax, dword [edx]
jmp 0x100219ff
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x10021a0c
xor ecx, ecx
jmp 0x10021a1b
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021a12
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [esi]
call fcn.10014550
mov ch, 0x6f
mov dword [esi + 0x1c], eax
mov dl, 1
mov byte [ebp - 0x32], 0
xor dl, ch
mov byte [ebp - 0x38], ch
mov byte [ebp - 0x35], dl
mov al, 0xd
mov edx, esp
mov byte [ebp - 0x32], 0
mov cl, 0x1b
mov bl, 0x30
mov ah, 0x59
xor al, ch
mov byte [ebp - 0x37], al
xor cl, ch
mov byte [ebp - 0x36], cl
xor bl, ch
mov byte [ebp - 0x34], bl
xor ah, ch
mov byte [ebp - 0x33], ah
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 0x10021a89
mov eax, dword [edx]
jmp 0x10021a8b
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x10021a98
xor ecx, ecx
jmp 0x10021aa9
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021aa0
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [esi]
call fcn.10014550
mov ch, 0x35
mov dword [esi + 0x20], eax
mov dl, 0x5b
mov byte [ebp - 0x32], 0
xor dl, ch
mov byte [ebp - 0x38], ch
mov byte [ebp - 0x35], dl
mov al, 0x57
mov edx, esp
mov byte [ebp - 0x32], 0
mov cl, 0x41
mov bl, 0x6a
mov ah, 2
xor al, ch
mov byte [ebp - 0x37], al
xor cl, ch
xor bl, ch
mov byte [ebp - 0x36], cl
xor ah, ch
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], ah
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x37], 0
jne 0x10021b0c
xor ecx, ecx
jmp 0x10021b1b
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021b12
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10004a40
mov ecx, dword [esi]
call fcn.10014550
mov dword [esi + 0x24], eax
add esp, 0x18
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10021b49
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.100048f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005baa0
mov esp, ebp
pop ebp
ret