Function at 0x10021f60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066fed
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1007c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dl, 0xc
mov byte [ebp - 0x38], 0x78
mov byte [ebp - 0x3f], dl
mov al, 0x1a
xor al, byte [ebp - 0x38]
mov dh, 0x1d
xor dl, byte [ebp - 0x38]
mov cl, 0x27
mov byte [ebp - 0x37], al
mov ch, 0xa
mov byte [ebp - 0x36], dl
mov ah, 0x16
mov dl, byte [ebp - 0x38]
xorps xmm0, xmm0
mov byte [ebp - 0x3d], 0xb
xor cl, dl
mov al, byte [ebp - 0x3d]
xor ch, dl
xor al, dl
mov byte [ebp - 0x3e], dh
mov byte [ebp - 0x31], al
xor ah, dl
mov al, byte [ebp - 0x3e]
xor dh, dl
xor al, dl
mov byte [ebp - 0x34], cl
mov byte [ebp - 0x30], al
mov al, byte [ebp - 0x3f]
mov byte [ebp - 0x33], ch
xor al, dl
lea ecx, [ebp - 0x37]
mov byte [ebp - 0x2e], 0
mov byte [ebp - 0x32], dh
lea edx, [ecx + 1]
mov byte [ebp - 0x35], ah
mov byte [ebp - 0x2f], al
mov byte [ebp - 0x2e], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022004
sub ecx, edx
lea eax, [ebp - 0x37]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100051a0
sub esp, 0x18
mov dword [ebp - 4], 0
mov esi, dword [edi]
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.10004c40
mov ecx, esi
call fcn.10012c60
mov dword [edi + 4], eax
mov cl, 0x19
mov esi, dword [edi]
mov al, 0x1a
mov byte [ebp - 0x38], 0x78
mov ah, 0x1d
xor al, byte [ebp - 0x38]
mov dl, 0xb
xor cl, byte [ebp - 0x38]
mov ch, 0x27
mov byte [ebp - 0x37], al
mov dh, 0xa
mov byte [ebp - 0x3f], ah
xorps xmm0, xmm0
mov al, byte [ebp - 0x3f]
mov byte [ebp - 0x36], cl
mov cl, byte [ebp - 0x38]
xor al, cl
mov byte [ebp - 0x3e], dl
mov byte [ebp - 0x31], al
xor dl, cl
mov al, byte [ebp - 0x3e]
xor ch, cl
xor al, cl
mov byte [ebp - 0x3d], ah
mov byte [ebp - 0x30], al
xor ah, cl
mov al, byte [ebp - 0x3d]
xor dh, cl
xor al, cl
mov byte [ebp - 0x45], 0xc
mov byte [ebp - 0x2f], al
mov al, byte [ebp - 0x45]
xor al, cl
mov byte [ebp - 0x33], ch
mov ecx, esp
mov byte [ebp - 0x35], dl
mov byte [ebp - 0x32], dh
lea edx, [ebp - 0x37]
mov byte [ebp - 0x34], ah
mov byte [ebp - 0x2e], al
lea eax, [edx + 1]
movups xmmword [ecx], xmm0
mov byte [ebp - 0x2d], 0
mov byte [ebp - 0x2d], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x44], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x100220c4
sub edx, dword [ebp - 0x44]
lea eax, [ebp - 0x37]
push edx
push eax
call fcn.100051a0
mov ecx, esi
call fcn.10012c60
movaps xmm0, xmmword [0x10075660]
mov esi, eax
add esp, 0x18
mov dword [edi + 8], esi
movups xmmword [ebp - 0x3c], xmm0
mov byte [ebp - 0x2c], 0
xor ecx, ecx
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xf
jb 0x100220f8
sub esp, 0x18
mov byte [ebp - 0x2c], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x44], eax
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022130
sub ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x3b]
push ecx
push eax
mov ecx, edx
call fcn.100051a0
mov ecx, esi
call fcn.10012c60
mov dword [edi + 0xc], eax
mov cl, 0x23
mov esi, dword [edi + 8]
mov al, 0x35
mov byte [ebp - 0x3d], cl
mov ch, 0x27
mov byte [ebp - 0x38], 0x57
mov dl, 0x39
xor al, byte [ebp - 0x38]
mov ah, 8
xor cl, byte [ebp - 0x38]
mov dh, 0x25
mov byte [ebp - 0x37], al
xorps xmm0, xmm0
mov byte [ebp - 0x36], cl
mov cl, byte [ebp - 0x38]
mov byte [ebp - 0x45], 0x32
xor dl, cl
mov al, byte [ebp - 0x45]
xor ah, cl
xor al, cl
mov byte [ebp - 0x3f], 0x24
mov byte [ebp - 0x31], al
xor ch, cl
mov al, byte [ebp - 0x3f]
xor dh, cl
xor al, cl
mov byte [ebp - 0x3e], 0x32
mov byte [ebp - 0x30], al
mov al, byte [ebp - 0x3e]
xor al, cl
mov byte [ebp - 0x33], ch
mov byte [ebp - 0x2f], al
mov al, byte [ebp - 0x3d]
xor al, cl
mov byte [ebp - 0x35], dl
mov ecx, esp
mov byte [ebp - 0x32], dh
lea edx, [ebp - 0x37]
mov byte [ebp - 0x34], ah
mov byte [ebp - 0x2e], al
lea eax, [edx + 1]
mov byte [ebp - 0x2d], 0
movups xmmword [ecx], xmm0
mov byte [ebp - 0x2d], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x44], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100221e0
sub edx, dword [ebp - 0x44]
lea eax, [ebp - 0x37]
push edx
push eax
call fcn.100051a0
mov ecx, esi
call fcn.10012c60
movaps xmm0, xmmword [0x10074df0]
add esp, 0x18
mov dword [edi + 0x14], eax
xor ecx, ecx
mov eax, dword [edi + 8]
mov dword [ebp - 0x44], eax
movups xmmword [ebp - 0x3c], xmm0
mov byte [ebp - 0x2c], 0
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xf
jb 0x10022218
sub esp, 0x18
mov byte [ebp - 0x2c], 0
mov ecx, esp
lea edx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [edx + 1]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x10022248
sub edx, esi
lea eax, [ebp - 0x3b]
push edx
push eax
call fcn.100051a0
mov ecx, dword [ebp - 0x44]
call fcn.10012c60
mov esi, dword [edi + 8]
add esp, 0x18
mov dword [edi + 0x10], eax
test esi, esi
je 0x10022286
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10022286
push eax
mov ecx, esi
call dword [0x100735d4]
mov esi, dword [edi]
mov dh, 0x71
mov al, 0x13
mov byte [ebp - 0x34], dh
mov cl, 5
mov byte [ebp - 0x2e], 0
mov dl, 0x1f
mov byte [ebp - 0x2e], 0
mov ah, 0x2e
mov ch, 0x45
xor al, dh
xor cl, dh
xor ah, dh
mov byte [ebp - 0x32], cl
xor ch, dh
mov byte [ebp - 0x33], al
xor dl, dh
mov byte [ebp - 0x2f], ch
sub esp, 0x18
mov byte [ebp - 0x31], dl
mov ecx, esp
mov byte [ebp - 0x30], ah
lea edx, [ebp - 0x33]
xorps xmm0, xmm0
lea eax, [edx + 1]
mov dword [ebp - 0x44], eax
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100222e0
sub edx, dword [ebp - 0x44]
lea eax, [ebp - 0x33]
push edx
push eax
call fcn.100051a0
mov ecx, esi
call fcn.10012c60
mov esi, dword [edi]
mov dh, 0x25
mov dword [edi + 0x18], eax
mov cl, 0x51
mov al, 0x47
mov byte [ebp - 0x34], dh
mov dl, 0x4b
mov byte [ebp - 0x2e], 0
mov ah, 0x7a
mov byte [ebp - 0x2e], 0
xor al, dh
xor cl, dh
xor ah, dh
mov byte [ebp - 0x32], cl
mov ch, 0x10
mov byte [ebp - 0x33], al
xor dl, dh
mov byte [ebp - 0x30], ah
xor ch, dh
mov byte [ebp - 0x31], dl
mov byte [ebp - 0x2f], ch
lea edx, [ebp - 0x33]
mov ecx, esp
lea eax, [edx + 1]
xorps xmm0, xmm0
mov dword [ebp - 0x44], eax
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x10022350
sub edx, dword [ebp - 0x44]
lea eax, [ebp - 0x33]
push edx
push eax
call fcn.100051a0
mov ecx, esi
call fcn.10012c60
mov esi, dword [edi]
mov dh, 0x16
mov dword [edi + 0x1c], eax
mov cl, 0x62
mov al, 0x74
mov byte [ebp - 0x34], dh
mov dl, 0x78
mov byte [ebp - 0x2e], 0
mov ah, 0x49
mov byte [ebp - 0x2e], 0
xor al, dh
xor cl, dh
xor ah, dh
mov byte [ebp - 0x32], cl
mov ch, 0x20
mov byte [ebp - 0x33], al
xor dl, dh
mov byte [ebp - 0x30], ah
xor ch, dh
mov byte [ebp - 0x31], dl
mov byte [ebp - 0x2f], ch
lea edx, [ebp - 0x33]
mov ecx, esp
lea eax, [edx + 1]
xorps xmm0, xmm0
mov dword [ebp - 0x44], eax
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x100223c0
sub edx, dword [ebp - 0x44]
lea eax, [ebp - 0x33]
push edx
push eax
call fcn.100051a0
mov ecx, esi
call fcn.10012c60
mov esi, dword [edi]
mov dh, 0x40
mov dword [edi + 0x20], eax
mov cl, 0x34
mov al, 0x22
mov byte [ebp - 0x34], dh
mov dl, 0x2e
mov byte [ebp - 0x2e], 0
mov ah, 0x1f
mov byte [ebp - 0x2e], 0
xor al, dh
xor cl, dh
xor ah, dh
mov byte [ebp - 0x32], cl
mov ch, 0x77
mov byte [ebp - 0x33], al
xor dl, dh
mov byte [ebp - 0x30], ah
xor ch, dh
mov byte [ebp - 0x31], dl
mov byte [ebp - 0x2f], ch
lea edx, [ebp - 0x33]
mov ecx, esp
lea eax, [edx + 1]
xorps xmm0, xmm0
mov dword [ebp - 0x44], eax
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x10022430
sub edx, dword [ebp - 0x44]
lea eax, [ebp - 0x33]
push edx
push eax
call fcn.100051a0
mov ecx, esi
call fcn.10012c60
mov ecx, dword [ebp - 0x14]
add esp, 0x18
mov dword [edi + 0x24], eax
cmp ecx, 0xf
jbe 0x10022487
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002247d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002247d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100641c5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10064164
mov esp, ebp
pop ebp
ret