Function at 0x100dad60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10180c75
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x101dadb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
test esi, esi
je 0x100db139
mov ecx, dword [0xf3e688]
mov eax, 0x10624dd3
mul esi
mov ebx, edx
shr ebx, 6
imul eax, ebx, 0x3e8
push eax
call dword [0x101ba7a4]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x100db139
movzx ecx, byte [eax + 4]
mov edi, esi
mov eax, 0x12e0be83
mul esi
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 0x1d
cmp edi, 4
jae 0x100db139
cmp ecx, 0x2c
ja 0x100db139
mov ecx, dword [ecx*4 + 0xf3e690]
mov edx, esi
imul eax, ebx, 0x3e8
sub edx, eax
cmp esi, 0x3b9aca00
lea eax, [edx + 0x3e8]
cmovb eax, edx
push eax
call dword [0x101ba7a8]
test eax, eax
je 0x100db139
mov esi, dword [eax + 0x44]
test esi, esi
mov eax, dword [ebp - 0x74]
push 8
cmove esi, dword [eax + 0x4c]
lea eax, [ebp - 0x79]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x74], eax
call fcn.10048e10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x78], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
push 0
push 0x101b8c74
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10048200
mov eax, 0xcccccccd
mov dword [ebp - 4], 1
mul esi
mov ebx, esi
mov dword [ebp - 0x74], 0x2710
shr edx, 3
mov eax, edx
mov byte [ebp - 0x30], 0
lea ecx, [edx + edx*4]
xor edx, edx
add ecx, ecx
sub ebx, ecx
mov ecx, 0x64
div ecx
mov eax, 0x10624dd3
mov ecx, edx
mul esi
push ebx
shr edx, 6
mov eax, edx
xor edx, edx
div dword [ebp - 0x74]
mov eax, 0x6b5fca6b
mov dword [ebp - 0x74], edx
mul esi
push ecx
push dword [ebp - 0x74]
shr edx, 0x16
lea eax, [edi - 1]
xor ecx, ecx
push edx
cmp eax, 2
jbe 0x100daf1f
movaps xmm0, xmmword [0x101c1bf0]
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x34], 0x424e5218
movaps xmm0, xmmword [0x101c2950]
movups xmmword [ebp - 0x44], xmm0
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x23
jb 0x100daf10
jmp 0x100daf4d
movaps xmm0, xmmword [0x101c1c70]
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x34], 0x4d415d17
movaps xmm0, xmmword [0x101c2b00]
movups xmmword [ebp - 0x44], xmm0
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x23
jb 0x100daf40
sub esp, 0x1c
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x70]
push eax
call fcn.1004a7a0
mov esi, eax
add esp, 0x30
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x100dafab
mov ecx, eax
call fcn.100447b0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100daf90
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10048ea0
add esp, 8
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10048410
lea ecx, [ebp - 0x70]
call fcn.100447b0
mov eax, dword [ebp - 0x58]
cmp eax, 0x10
jb 0x100dafc8
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.10048ea0
add esp, 8
mov eax, dword [ebp - 0x70]
push 8
push eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
call fcn.10048ea0
mov ebx, dword [ebp - 0x80]
add esp, 8
mov esi, dword [ebx]
test esi, esi
je 0x100db050
mov dword [ebp - 0x74], esi
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx]
mov eax, dword [eax + 0x80]
push dword [ebp + 0xc]
call eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.100ba640
mov dword [esp + 4], 0x3f340000
mov dword [esp], 0x3f340000
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0
push esi
call fcn.100daa80
add esp, 0x14
mov ecx, dword [ebp - 0x74]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
jmp 0x100db0ef
mov ecx, 0x2a0
call fcn.100daad0
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
call fcn.100daa60
mov esi, dword [ebp - 0x74]
add esp, 4
mov dword [ebp - 0x80], esi
mov ecx, dword [ebp - 0x80]
mov eax, dword [ecx]
mov eax, dword [eax + 0x80]
push dword [ebp + 0xc]
call eax
cmp dword [ebp - 0x18], 0
jne 0x100db092
push esi
push str._d__n
call fcn.10082cd0
jmp 0x100db09c
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.100ba640
add esp, 8
sub esp, 0x10
mov dword [esp + 0xc], 0x3f340000
mov dword [esp + 8], 0x3f340000
mov dword [esp + 4], 0
mov dword [esp], 0
push esi
call fcn.100daa80
add esp, 0x14
mov dword [esi + 0xdc], 0xb
mov ecx, dword [ebp - 0x74]
push 0x110
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
call eax
mov ecx, dword [ebp - 0x74]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
lea ecx, [ebp - 0x2c]
mov dword [ebx], esi
call fcn.100447b0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100db10e
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10048ea0
add esp, 8
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.10048ea0
add esp, 8
mov al, 1
jmp 0x100db13b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10120250
mov esp, ebp
pop ebp
ret 0xc