Function at 0x100d8260
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x10162e77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov eax, 0x61
push ebp
push esi
mov esi, dword [0x1018cb34]
mov cl, byte [0x1018cb5c]
cdq
idiv esi
push edi
mov edi, dword [0x1018cb30]
inc cl
push 0xffffffffffffff9d
mov byte [0x1018cb5c], cl
push 0x57
mov dword [esp + 0x30], 0
mov al, byte [edx + edi]
mov dl, 0x7c
add al, cl
imul dl
mov bl, al
mov al, byte [0x1018cb5b]
sub bl, cl
dec al
mov byte [0x1018cb5b], al
mov al, byte [0x1018cb58]
add al, 0x33
mov byte [esp + 0x1c], al
mov eax, 0x266
cdq
idiv esi
mov cl, byte [edx + edi]
push ecx
call fcn.100d3840
mov edx, dword [esp + 0x20]
push eax
push edx
push 0x1e
call fcn.100d3840
mov esi, dword [0x1018cb34]
mov cl, 0xe4
sub cl, al
mov eax, 0x3cb
cdq
idiv esi
mov eax, 0x1a0
mov byte [esp + 0x2b], cl
mov edi, edx
cdq
idiv esi
mov esi, dword [0x1018cb30]
mov al, byte [edi + esi]
add al, byte [edx + esi]
mov dl, byte [0x1018cb5b]
push eax
push ebx
push edx
call fcn.100d3840
mov cl, byte [esp + 0x37]
add esp, 0x24
add cl, al
mov eax, dword [esp + 0x40]
cmp eax, 1
mov byte [0x1018cb58], cl
jne 0x100d8441
mov al, byte [0x10195800]
mov word [esp + 0x18], 0x47
test al, 1
mov word [esp + 0x1a], 0x12
mov word [esp + 0x1c], 7
mov word [esp + 0x1e], 0x11
mov word [esp + 0x20], 5
mov word [esp + 0x22], 0x15
jne 0x100d83e5
mov bl, al
push 0xe
or bl, 1
mov byte [0x10195800], bl
call fcn.1013c2df
add esp, 4
xor ebx, ebx
mov dword [0x10195804], eax
mov edi, 0x30
xor esi, esi
mov bp, word [esp + esi + 0x18]
push edi
mov edx, ebp
mov ecx, 0x10195804
and edx, 0xffff
push edx
call fcn.1004a650
mov ecx, dword [0x10195804]
xor eax, ebp
xor eax, edi
xor edi, edi
mov word [esi + ecx], ax
mov eax, dword [0x10195804]
mov di, word [esi + eax]
add esi, 2
cmp esi, 0xc
jb 0x100d8398
push 0x100d85c0
mov word [eax + 0xc], bx
call fcn.1013c36b
add esp, 4
jmp 0x100d83e7
xor ebx, ebx
mov ebp, dword [0x10195804]
mov esi, dword [esp + 0x3c]
mov dl, byte [esp + 0x3c]
push ebp
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.1013c2c2
add esp, 4
mov edi, eax
mov ecx, esi
push 1
push edi
call fcn.1000c010
test al, al
je 0x100d8434
mov eax, dword [esi + 4]
push edi
push ebp
push eax
call fcn.100017d0
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
add esp, 0xc
mov word [eax + edi*2], bx
lea eax, [eax + edi*2]
mov dword [esp + 0x28], 1
jmp 0x100d859e
mov eax, 0x66
mov ecx, 0x6d
mov word [esp + 0x1a], ax
mov word [esp + 0x22], ax
mov al, byte [0x10195808]
mov word [esp + 0x18], cx
test al, 1
mov word [esp + 0x1c], 0x7e
mov word [esp + 0x1e], 0x67
mov word [esp + 0x20], 0x65
mov word [esp + 0x24], 0x68
mov word [esp + 0x26], cx
jne 0x100d84f7
mov bl, al
push 0x12
or bl, 1
mov byte [0x10195808], bl
call fcn.1013c2df
add esp, 4
xor ebx, ebx
mov dword [0x1019580c], eax
xor esi, esi
mov di, word [esp + esi + 0x18]
mov ecx, edi
and ecx, 0xffff
lea eax, [ecx + 9]
and eax, ecx
je 0x100d84c7
and eax, 9
je 0x100d84c7
cdq
xor eax, edx
sub eax, edx
je 0x100d84c7
sar eax, 2
jne 0x100d84c2
mov ecx, dword [0x1019580c]
add eax, 9
xor eax, edi
mov word [esi + ecx], ax
add esi, 2
cmp esi, 0x10
jb 0x100d84a2
mov edx, dword [0x1019580c]
push 0x100d85d0
mov word [edx + 0x10], bx
call fcn.1013c36b
add esp, 4
jmp 0x100d84f9
xor ebx, ebx
mov ebp, dword [0x1019580c]
mov esi, dword [esp + 0x3c]
mov al, byte [esp + 0x3c]
push ebp
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.1013c2c2
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.1000cba0
cmp eax, edi
jae 0x100d852d
call fcn.101307ab
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x100d8552
mov al, byte [ecx - 1]
test al, al
je 0x100d8552
cmp al, 0xff
je 0x100d8552
cmp edi, ebx
jne 0x100d8576
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, esi
call fcn.1000bc70
jmp 0x100d8596
cmp edi, ebx
jne 0x100d8561
push 1
mov ecx, esi
call fcn.1000bc70
jmp 0x100d8596
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x100d856d
cmp eax, edi
jae 0x100d857e
push 1
mov ecx, esi
call fcn.1000bc70
push edi
mov ecx, esi
call fcn.1000cbb0
mov ecx, dword [esi + 4]
push edi
push ebp
push ecx
call fcn.100017d0
mov edx, dword [esi + 4]
mov dword [esi + 8], edi
add esp, 0xc
mov word [edx + edi*2], bx
mov dword [esp + 0x28], 1
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret