Function at 0x1002cd80
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x10158e1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x6c], ebx
call fcn.1002d090
mov byte [0x1018c50f], al
mov al, byte [esp + 0x88]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.1000bc70
mov cl, byte [0x1018c513]
mov dword [esp + 0x78], 1
mov byte [0x1018c50e], cl
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x88]
mov byte [0x1018c512], 0x80
cmp eax, ebx
mov dword [esp + 0x10], ebp
jbe 0x1002d012
mov eax, 0x15
mov word [esp + 0x18], 2
mov word [esp + 0x14], ax
mov word [esp + 0x16], ax
mov word [esp + 0x1a], 0x6a
mov al, byte [0x1018c50f]
dec al
cmp ebp, ebx
mov byte [0x1018c50f], al
mov byte [0x1018c510], al
je 0x1002cef3
mov al, byte [0x10198310]
test al, 1
jne 0x1002ce91
or al, 1
push 4
mov byte [0x10198310], al
call fcn.1013c2df
add esp, 4
mov ecx, 0x10198314
mov dword [0x10198314], eax
push 0x35
push 0xfff8
call fcn.1002ea10
mov edx, 0x2d
push 0x1002d0a0
sub edx, eax
mov eax, dword [0x10198314]
mov word [eax], dx
mov ecx, dword [0x10198314]
mov word [ecx + 2], bx
call fcn.1013c36b
add esp, 4
mov ebp, dword [0x10198314]
push ebp
call fcn.1013c2c2
mov edx, dword [0x1016a210]
mov ecx, dword [esp + 0x28]
mov edi, eax
sub edx, ecx
add esp, 4
cmp edx, edi
ja 0x1002ceb7
call fcn.101307ab
cmp edi, ebx
jbe 0x1002cef3
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x20]
lea esi, [eax + edi]
push esi
call fcn.1000c010
test al, al
je 0x1002cef3
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push edi
push ebp
lea eax, [ecx + edx*2]
push eax
call fcn.100017d0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], esi
add esp, 0xc
mov word [eax + esi*2], bx
mov al, byte [0x10198318]
test al, 1
jne 0x1002cf64
or al, 1
push 0xa
mov byte [0x10198318], al
call fcn.1013c2df
add esp, 4
mov dword [0x1019831c], eax
mov edi, 0x30
xor esi, esi
mov bp, word [esp + esi + 0x14]
push edi
mov ecx, ebp
and ecx, 0xffff
push ecx
mov ecx, 0x1019831c
call fcn.1004a650
mov edx, dword [0x1019831c]
xor eax, ebp
xor eax, edi
xor edi, edi
mov word [esi + edx], ax
mov eax, dword [0x1019831c]
mov di, word [esi + eax]
add esi, 2
cmp esi, 8
jb 0x1002cf19
push 0x1002d0b0
mov word [eax + 8], bx
call fcn.1013c36b
add esp, 4
mov ecx, dword [esp + 0x84]
mov ebp, dword [esp + 0x10]
mov edx, dword [0x1019831c]
xor eax, eax
mov al, byte [ecx + ebp]
push eax
lea eax, [esp + 0x30]
push edx
push eax
call fcn.1013d1ea
mov al, byte [0x1018c510]
lea ecx, [esp + 0x38]
dec al
push ecx
mov byte [0x1018c510], al
call fcn.1013c2c2
mov edx, dword [0x1016a210]
mov ecx, dword [esp + 0x34]
mov esi, eax
sub edx, ecx
add esp, 0x10
cmp edx, esi
ja 0x1002cfb6
call fcn.101307ab
cmp esi, ebx
jbe 0x1002cffe
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x20]
lea edi, [eax + esi]
push edi
call fcn.1000c010
test al, al
je 0x1002cffe
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
lea ecx, [ecx + edx*2]
lea edx, [esp + 0x2c]
sub ecx, edx
mov dx, word [eax]
mov word [ecx + eax], dx
add eax, 2
dec esi
jne 0x1002cfe5
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], edi
mov word [eax + edi*2], bx
mov eax, dword [esp + 0x88]
inc ebp
cmp ebp, eax
mov dword [esp + 0x10], ebp
jb 0x1002ce22
mov esi, dword [esp + 0x80]
mov cl, byte [esp + 0x1c]
lea eax, [esp + 0x1c]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x1016a210]
mov ecx, esi
push edx
push ebx
push eax
call fcn.1000ba60
mov dword [esp + 0x6c], 1
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x78], bl
cmp ecx, ebx
je 0x1002d06e
mov al, byte [ecx - 1]
cmp al, bl
je 0x1002d062
cmp al, 0xff
je 0x1002d062
dec al
mov byte [ecx - 1], al
jmp 0x1002d06e
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret