Function at 0x10021bac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi]
call fcn.1000d70c
mov ecx, dword [esi]
or eax, 0x20
mov edx, eax
call fcn.1000d72d
xor ebx, ebx
mov dword [ebp - 0x10], 0x23392f4d
mov cl, 0x4d
mov dword [ebp - 0xc], 0x22212e12
mov word [ebp - 8], 0x283e
mov edx, ebx
mov byte [ebp - 6], bl
xor cl, byte [ebp + edx - 0xf]
mov byte [ebp + edx - 0xf], cl
inc edx
cmp edx, 9
jae 0x10021bf9
mov cl, byte [ebp - 0x10]
jmp 0x10021be6
sub esp, 0x18
mov byte [ebp - 6], bl
lea eax, [ebp - 0xf]
mov ecx, esp
push eax
call fcn.10004179
mov ecx, dword [esi]
call fcn.1000d3df
add esp, 0x18
mov dword [esi + 4], eax
mov cl, 0x18
mov dword [ebp - 0x14], 0x766c7a18
mov dword [ebp - 0x10], 0x6a796f47
mov edx, ebx
mov dword [ebp - 0xc], 0x6a77716a
mov byte [ebp - 8], bl
xor cl, byte [ebp + edx - 0x13]
mov byte [ebp + edx - 0x13], cl
inc edx
cmp edx, 0xb
jae 0x10021c46
mov cl, byte [ebp - 0x14]
jmp 0x10021c33
sub esp, 0x18
mov byte [ebp - 8], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10004179
mov ecx, dword [esi]
call fcn.1000d3df
add esp, 0x18
mov dword [esi + 8], eax
mov cl, 0x70
mov dword [ebp - 0x10], 0x1e041270
mov dword [ebp - 0xc], 0x171f022f
mov edx, ebx
mov word [ebp - 8], 0x1505
mov byte [ebp - 6], bl
xor cl, byte [ebp + edx - 0xf]
mov byte [ebp + edx - 0xf], cl
inc edx
cmp edx, 9
jae 0x10021c92
mov cl, byte [ebp - 0x10]
jmp 0x10021c7f
sub esp, 0x18
mov byte [ebp - 6], bl
lea eax, [ebp - 0xf]
mov ecx, esp
push eax
call fcn.10004179
mov ecx, dword [esi]
call fcn.1000d3df
add esp, 0x18
mov dword [esi + 0xc], eax
mov cl, 0x58
mov dword [ebp - 0x10], 0x362c3a58
mov dword [ebp - 0xc], 0x3f393507
mov edx, ebx
mov word [ebp - 8], 0x3d
xor cl, byte [ebp + edx - 0xf]
mov byte [ebp + edx - 0xf], cl
inc edx
cmp edx, 8
jae 0x10021cdb
mov cl, byte [ebp - 0x10]
jmp 0x10021cc8
sub esp, 0x18
mov byte [ebp - 7], bl
lea eax, [ebp - 0xf]
mov ecx, esp
push eax
call fcn.10004179
mov ecx, dword [esi]
call fcn.1000d3df
add esp, 0x18
mov dword [esi + 0x10], eax
mov dl, 0x51
mov dword [ebp - 0x10], 0x3f253351
mov dword [ebp - 0xc], 0x3823210e
mov ecx, ebx
mov dword [ebp - 8], 0x252234
xor dl, byte [ebp + ecx - 0xf]
mov byte [ebp + ecx - 0xf], dl
inc ecx
cmp ecx, 0xa
jae 0x10021d25
mov dl, byte [ebp - 0x10]
jmp 0x10021d12
sub esp, 0x18
mov byte [ebp - 5], bl
lea eax, [ebp - 0xf]
mov ecx, esp
push eax
call fcn.10004179
mov ecx, dword [esi]
call fcn.1000d3df
movaps xmm0, xmmword [0x1008af80]
add esp, 0x18
mov dword [esi + 0x14], eax
mov edx, ebx
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0x4a4246
mov cl, byte [ebp - 0x18]
xor byte [ebp + edx - 0x17], cl
inc edx
cmp edx, 0x12
jb 0x10021d57
sub esp, 0x18
mov byte [ebp - 5], bl
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.10004179
mov ecx, dword [esi]
call fcn.1000d3df
movaps xmm0, xmmword [0x1008a980]
add esp, 0x18
mov dword [esi + 0x18], eax
mov edx, ebx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x1f041e12
mov word [ebp - 8], 5
mov cl, byte [ebp - 0x1c]
xor byte [ebp + edx - 0x1b], cl
inc edx
cmp edx, 0x14
jb 0x10021d9c
sub esp, 0x18
mov byte [ebp - 7], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10004179
mov ecx, dword [esi]
call fcn.1000d3df
movaps xmm0, xmmword [0x1008a800]
add esp, 0x18
mov dword [esi + 0x1c], eax
mov ecx, ebx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x222e1221
mov dword [ebp - 8], 0x392338
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0x16
jb 0x10021de2
sub esp, 0x18
mov byte [ebp - 5], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10004179
mov ecx, dword [esi]
call fcn.1000d3df
add esp, 0x18
mov dword [esi + 0x20], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret