Function at 0x20007100
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x81c
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x818], eax
mov al, byte [esp + 0x828]
push ebx
mov bl, al
movzx eax, al
push esi
mov esi, dword [esp + 0x834]
shr bl, 2
and eax, 0x80000003
push edi
jns 0x20007139
dec eax
or eax, 0xfffffffc
inc eax
mov byte [esp + 0xf], al
mov eax, dword [0x2002b328]
cmp eax, dword [0x20026270]
jne 0x20007282
push 0x100
push 0
push 0x20027658
call fcn.200132c0
movzx ecx, byte [esp + 0x1b]
mov dl, byte [esp + 0x83c]
mov byte [0x2002765f], cl
mov byte [0x20027658], 0
mov byte [0x20027659], 0x55
mov byte [0x2002765a], 0xaa
mov byte [0x2002765b], 0x10
mov byte [0x2002765c], 0x16
mov byte [0x2002765d], 0xff
mov byte [0x2002765e], bl
mov byte [0x20027660], dl
movzx eax, byte [esi]
mov byte [0x20027661], al
movzx ecx, byte [esi + 1]
mov byte [0x20027662], cl
movzx edx, byte [esi + 2]
mov byte [0x20027663], dl
movzx eax, byte [esi + 3]
mov byte [0x20027664], al
movzx ecx, byte [esi + 4]
mov ax, word [0x2002a21a]
mov byte [0x20027665], cl
movzx edx, byte [esi + 5]
mov byte [0x2002766a], ah
mov byte [0x20027669], al
mov eax, dword [0x2002a218]
mov ecx, eax
shr ecx, 8
add esp, 0xc
mov byte [0x20027668], cl
mov byte [0x20027667], al
mov byte [0x20027666], dl
xor cl, cl
mov eax, 1
mov dl, byte [eax + 0x20027658]
xor dl, byte [eax + 0x20027659]
add eax, 6
xor dl, byte [eax + 0x20027654]
xor dl, byte [eax + 0x20027655]
xor dl, byte [eax + 0x20027657]
xor dl, cl
xor dl, byte [eax + 0x20027656]
cmp eax, 0x12
mov cl, dl
jle 0x20007210
push 0x1000
push 0
push 0x20028760
mov byte [0x2002766b], cl
call fcn.200132c0
add esp, 0xc
call fcn.20003b30
cmp byte [0x20028764], 0x56
jne 0x20007278
cmp byte [0x20028765], 0xff
jne 0x20007278
xor eax, eax
jmp 0x20007412
mov eax, 0xfffffffd
jmp 0x20007412
mov edi, dword [esp + 0x82c]
lea edi, [edi + edi*2]
add edi, edi
add edi, edi
cmp dword [edi + 0x2002b32c], 0
jbe 0x2000740d
cmp dword [edi + 0x2002b324], 0
jbe 0x2000740d
cmp dword [edi + 0x2002b328], 0
jbe 0x2000740d
cmp dword [0x2002a218], 0
ja 0x200072c8
or eax, 0xffffffff
jmp 0x20007412
mov al, byte [esp + 0x830]
cmp al, 0x61
je 0x200072e1
cmp al, 0x60
je 0x200072e1
mov eax, 0xfffffffe
jmp 0x20007412
push 0x7ff
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call fcn.200132c0
movzx ecx, byte [esp + 0x1b]
mov dl, byte [esp + 0x83c]
xor eax, eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov byte [esp + 0x2e], al
movzx eax, byte [esi]
mov byte [esp + 0x23], cl
movzx ecx, byte [esi + 1]
mov byte [esp + 0x24], dl
movzx edx, byte [esi + 2]
mov byte [esp + 0x25], al
movzx eax, byte [esi + 3]
mov byte [esp + 0x26], cl
movzx ecx, byte [esi + 4]
mov byte [esp + 0x27], dl
movzx edx, byte [esi + 5]
mov byte [esp + 0x28], al
mov ax, word [0x2002a21a]
add esp, 0xc
mov byte [esp + 0x1d], cl
mov byte [esp + 0x22], ah
mov byte [esp + 0x21], al
mov eax, dword [0x2002a218]
mov byte [esp + 0x1e], dl
mov ecx, eax
push 0xf
lea edx, [esp + 0x18]
shr ecx, 8
push edx
mov edx, dword [edi + 0x2002b328]
mov byte [esp + 0x28], cl
mov ecx, dword [edi + 0x2002b324]
sub esp, 0xc
mov byte [esp + 0x33], al
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x2002b32c]
mov dword [eax + 4], edx
mov byte [esp + 0x28], 0x16
mov byte [esp + 0x29], 0xff
mov byte [esp + 0x2a], bl
mov dword [eax + 8], ecx
call fcn.20004060
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0x13
jne 0x20007278
mov ecx, dword [edi + 0x2002b324]
lea edx, [esp + 0x10]
push edx
mov edx, dword [edi + 0x2002b328]
lea eax, [esp + 0x28]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x2002b32c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call fcn.20004150
add esp, 0x14
test eax, eax
je 0x200073f4
mov eax, 0xfffffffc
jmp 0x20007412
cmp byte [esp + 0x24], 0x56
jne 0x20007406
cmp byte [esp + 0x25], 0xff
je 0x20007271
mov eax, 0xfffffffb
jmp 0x20007412
mov eax, 0xffffffe0
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.20012ef0
add esp, 0x81c
ret 0x10