Function at 0x20007680
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x820
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x81c], 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 0x200076b9
dec eax
or eax, 0xfffffffc
inc eax
mov byte [esp + 0xf], al
mov eax, dword [0x2002b328]
cmp eax, dword [0x20026270]
jne 0x2000780e
push 0x100
push 0
push 0x20027658
call fcn.200132c0
movzx ecx, byte [esp + 0x1b]
mov byte [0x2002765f], cl
mov byte [0x20027658], 0
mov byte [0x20027659], 0x55
mov byte [0x2002765a], 0xaa
mov byte [0x2002765b], 0x15
mov byte [0x2002765c], 0x18
mov byte [0x2002765d], 0xff
mov byte [0x2002765e], bl
movzx edx, byte [esi]
mov byte [0x20027660], dl
movzx eax, byte [esi + 1]
mov byte [0x20027661], al
movzx ecx, byte [esi + 2]
mov byte [0x20027662], cl
movzx edx, byte [esi + 3]
mov byte [0x20027663], dl
movzx eax, byte [esi + 4]
mov byte [0x20027664], al
movzx ecx, byte [esi + 5]
mov byte [0x20027665], cl
movzx edx, byte [esi + 6]
mov byte [0x20027666], dl
movzx eax, byte [esi + 7]
mov byte [0x20027667], al
movzx ecx, byte [esi + 8]
mov byte [0x20027668], cl
movzx edx, byte [esi + 9]
mov byte [0x20027669], dl
movzx eax, byte [esi + 0xa]
mov byte [0x2002766a], al
movzx ecx, byte [esi + 0xb]
mov byte [0x2002766b], cl
movzx edx, byte [esi + 0xc]
mov byte [0x2002766c], dl
movzx eax, byte [esi + 0xd]
mov byte [0x2002766d], al
movzx ecx, byte [esi + 0xe]
mov byte [0x2002766e], cl
movzx edx, byte [esi + 0xf]
add esp, 0xc
mov byte [0x2002766f], dl
xor cl, cl
mov eax, 1
mov edi, edi
xor cl, byte [eax + 0x20027658]
inc eax
cmp eax, 0x17
jle 0x200077c0
push 0x1000
push 0
push 0x20028760
mov byte [0x20027670], cl
call fcn.200132c0
add esp, 0xc
call fcn.20003b30
cmp byte [0x20028764], 0x56
jne 0x20007804
cmp byte [0x20028765], 0xff
jne 0x20007804
xor eax, eax
jmp 0x200079aa
mov eax, 0xfffffffd
jmp 0x200079aa
mov edi, dword [esp + 0x830]
lea edi, [edi + edi*2]
add edi, edi
add edi, edi
cmp dword [edi + 0x2002b32c], 0
jbe 0x200079a5
cmp dword [edi + 0x2002b324], 0
jbe 0x200079a5
cmp dword [edi + 0x2002b328], 0
jbe 0x200079a5
test esi, esi
jne 0x2000784f
or eax, 0xffffffff
jmp 0x200079aa
push 0x7ff
lea eax, [esp + 0x2d]
push 0
push eax
mov byte [esp + 0x34], 0
call fcn.200132c0
movzx ecx, byte [esp + 0x1b]
movzx edx, byte [esi]
xor eax, eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
movzx eax, byte [esi + 1]
mov byte [esp + 0x23], cl
movzx ecx, byte [esi + 2]
mov byte [esp + 0x25], al
movzx eax, byte [esi + 4]
mov byte [esp + 0x24], dl
movzx edx, byte [esi + 3]
mov byte [esp + 0x26], cl
movzx ecx, byte [esi + 5]
mov byte [esp + 0x28], al
movzx eax, byte [esi + 7]
mov byte [esp + 0x27], dl
movzx edx, byte [esi + 6]
mov byte [esp + 0x29], cl
movzx ecx, byte [esi + 8]
mov byte [esp + 0x2b], al
movzx eax, byte [esi + 0xa]
mov byte [esp + 0x2a], dl
movzx edx, byte [esi + 9]
mov byte [esp + 0x2c], cl
movzx ecx, byte [esi + 0xb]
mov byte [esp + 0x2e], al
movzx eax, byte [esi + 0xd]
mov byte [esp + 0x2d], dl
movzx edx, byte [esi + 0xc]
add esp, 0xc
mov byte [esp + 0x23], cl
movzx ecx, byte [esi + 0xe]
mov byte [esp + 0x25], al
push 0x14
lea eax, [esp + 0x18]
mov byte [esp + 0x28], dl
movzx edx, byte [esi + 0xf]
push eax
mov byte [esp + 0x2e], cl
mov ecx, dword [edi + 0x2002b324]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x2002b32c]
mov byte [esp + 0x3b], dl
mov edx, dword [edi + 0x2002b328]
mov dword [eax + 4], edx
mov byte [esp + 0x28], 0x18
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, 0x18
jne 0x20007804
mov ecx, dword [edi + 0x2002b324]
lea edx, [esp + 0x10]
push edx
mov edx, dword [edi + 0x2002b328]
lea eax, [esp + 0x2c]
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 0x2000798c
mov eax, 0xfffffffc
jmp 0x200079aa
cmp byte [esp + 0x28], 0x56
jne 0x2000799e
cmp byte [esp + 0x29], 0xff
je 0x200077fd
mov eax, 0xfffffffb
jmp 0x200079aa
mov eax, 0xffffffe0
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.20012ef0
add esp, 0x820
ret 0xc