Function at 0x100d8216
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x16c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x10145e90], 0x1952
mov dword [0x10145e8c], 0x241b
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x100d8344
mov eax, dword [ebp - 0x13c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x100db5e6]
mov dh, byte [eax + 0x100db5b7]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x13c], ecx
je 0x100d83be
jmp 0x100d8254
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x144]
lea edx, section..data
mov esi, ecx
add esi, 1
imul edi, ecx, 0x158
mov ebx, edx
add ebx, edi
add ebx, 0x98
imul edi, ecx, 0x158
mov dword [ebp - 0x148], eax
mov eax, edx
add eax, edi
add eax, 0x100
mov edi, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x148]
add edi, eax
imul ecx, ecx, 0x158
add edx, ecx
mov ecx, dword [ebp - 0x150]
mov eax, dword [ecx]
mov edx, dword [edx]
movzx ebx, word [ebx]
xor ebx, eax
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ebx
call fcn.100d8f8f
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x148]
add eax, ecx
mov edx, dword [ebp - 0x154]
cmp edx, 0x4ed
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x140], eax
je 0x100d8445
jmp 0x100d828d
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x158
mov edi, edx
add edi, esi
add edi, 0x100
mov esi, dword [edi]
imul edi, eax, 0x158
add edx, edi
add edx, 0x98
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x4ed
mov ecx, edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x100d8344
mov dword [0x10145e90], 0x1e24
xor eax, eax
mov dword [0x10145e8c], 0x407
mov dword [ebp - 0x13c], eax
jmp 0x100d8254
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x160], eax
mov dword [0x10145e8c], 0xffffef45
mov dword [0x10145e90], 0x161a
call fcn.100d8eac
mov dword [esp], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
call fcn.100d8a52
mov ecx, eax
mov dword [0x10145eac], eax
mov eax, esp
mov edx, dword [ebp - 0x15c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [0x10145e90], 0x88a
mov edx, ecx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x140], ecx
jmp 0x100d828d
lea eax, [0x100db5c5]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [0x10145e8c]
add esi, 0xffffec63
mov dword [0x10145e90], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x168], ecx
call fcn.100d8d0c
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
mov ecx, dword [ebp - 0x14c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x15c]
mov dword [esp + 0xc], edx
call fcn.100d90af
xor eax, eax
mov ecx, dword [ebp - 0x14c]
add ecx, 0x45d5f
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x133400
mov ecx, dword [0x10145e8c]
add ecx, 0xfffff441
mov dword [0x10145e90], ecx
mov ecx, dword [ebp - 0x14c]
add ecx, 0x13f12
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f60
add esp, 0x16c
pop esi
pop edi
pop ebx
pop ebp
ret