Function at 0x100d1060
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x10162327
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
xor ebx, ebx
push ebp
mov ecx, 0x55
push esi
sub eax, ebx
push edi
mov dword [esp + 0x20], ebx
mov byte [0x1018cb5c], cl
je 0x100d12aa
sub eax, 2
je 0x100d11ad
mov al, byte [0x101958f0]
mov word [esp + 0x10], 0x43
test al, 1
mov word [esp + 0x12], 7
mov word [esp + 0x14], 0x15
mov word [esp + 0x16], 0xf
mov word [esp + 0x18], 0xa
mov word [esp + 0x1a], 5
mov word [esp + 0x1c], 0x13
mov word [esp + 0x1e], 0x16
jne 0x100d114a
or al, 1
push 0x12
mov byte [0x101958f0], al
call fcn.1013c2df
add esp, 4
mov dword [0x101958f4], eax
mov edi, 0x30
xor esi, esi
mov bp, word [esp + esi + 0x10]
push edi
mov eax, ebp
mov ecx, 0x101958f4
and eax, 0xffff
push eax
call fcn.1004a650
mov ecx, dword [0x101958f4]
xor eax, ebp
xor eax, edi
xor edi, edi
mov word [esi + ecx], ax
mov eax, dword [0x101958f4]
mov di, word [esi + eax]
add esi, 2
cmp esi, 0x10
jb 0x100d1100
push 0x100d13a0
mov word [eax + 0x10], bx
call fcn.1013c36b
add esp, 4
mov ebp, dword [0x101958f4]
mov esi, dword [esp + 0x34]
mov dl, byte [esp + 0x34]
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 0x100d11a0
mov eax, dword [esi + 4]
cmp edi, ebx
mov ecx, ebp
jbe 0x100d1196
mov edx, edi
mov bp, word [ecx]
add ecx, 2
mov word [eax], bp
add eax, 2
dec edx
jne 0x100d1187
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov word [eax + edi*2], bx
mov dword [esp + 0x20], 1
jmp 0x100d1361
mov eax, 1
mov word [esp + 0x10], cx
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
mov al, byte [0x101958f8]
mov word [esp + 0x12], 0x1d
test al, 1
mov word [esp + 0x14], 0xc
mov word [esp + 0x16], 0x11
mov word [esp + 0x18], 0xb
mov word [esp + 0x1a], 0xa
jne 0x100d1255
or al, 1
push 0x12
mov byte [0x101958f8], al
call fcn.1013c2df
add esp, 4
mov dword [0x101958fc], eax
mov edi, 0x30
xor esi, esi
mov bp, word [esp + esi + 0x10]
push edi
mov ecx, ebp
and ecx, 0xffff
push ecx
mov ecx, 0x101958fc
call fcn.1004a650
mov edx, dword [0x101958fc]
xor eax, ebp
xor eax, edi
xor edi, edi
mov word [esi + edx], ax
mov eax, dword [0x101958fc]
mov di, word [esi + eax]
add esi, 2
cmp esi, 0x10
jb 0x100d120a
push 0x100d1390
mov word [eax + 0x10], bx
call fcn.1013c36b
add esp, 4
mov ebp, dword [0x101958fc]
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x34]
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 edi, eax
mov ecx, esi
push 1
push edi
call fcn.1000c010
test al, al
je 0x100d129d
mov ecx, dword [esi + 4]
push edi
push ebp
push ecx
call fcn.100017d0
add esp, 0xc
mov ecx, esi
push edi
call fcn.1000bff0
mov dword [esp + 0x20], 1
jmp 0x100d1361
mov eax, 0x5e
mov word [esp + 0x12], 0x5f
mov word [esp + 0x10], ax
mov word [esp + 0x14], ax
mov al, byte [0x10195900]
mov word [esp + 0x16], cx
test al, 1
jne 0x100d132e
or al, 1
push 0xa
mov byte [0x10195900], al
call fcn.1013c2df
add esp, 4
mov dword [0x10195904], eax
xor esi, esi
mov di, word [esp + esi + 0x10]
push 0x30
mov edx, edi
mov ecx, 0x10195904
and edx, 0xffff
push edx
call fcn.100a8ee0
mov ecx, dword [0x10195904]
add eax, 0x30
xor eax, edi
mov word [esi + ecx], ax
add esi, 2
cmp esi, 8
jb 0x100d12e6
mov edx, dword [0x10195904]
push 0x100d1380
mov word [edx + 8], bx
call fcn.1013c36b
add esp, 4
mov edi, dword [0x10195904]
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x34]
push edi
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
push eax
push edi
call fcn.1000bf40
mov dword [esp + 0x20], 1
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret