Function at 0x1005da70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100d5ed1
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov ecx, dword [0x100fc310]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x1005de98
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100fbfac]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1017ec3c]
cmp eax, dword [ecx + 4]
jle 0x1005dbc0
push 0x1017ec3c
call fcn.100d136a
add esp, 4
cmp dword [0x1017ec3c], 0xffffffff
jne 0x1005dbc0
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x100f12d0]
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0xb7bc98be
mov dword [ebp - 0x58], 0x100adb1
nop dword [eax]
mov al, cl
sub al, 0x40
xor byte [ebp + ecx - 0x6c], al
inc ecx
cmp ecx, 0x16
jb 0x1005db00
mov byte [ebp - 0x55], 0
xor ecx, ecx
mov dword [ebp - 0x14], 0xb78b9ead
mov dword [ebp - 0x10], 0x100a8a1
mov al, cl
sub al, 0x40
xor byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 6
jb 0x1005db22
movaps xmm0, xmmword [0x100f1420]
xor ecx, ecx
mov byte [ebp - 0xd], 0
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x70], 0x100a3b5
mov al, cl
sub al, 0x40
xor byte [ebp + ecx - 0x80], al
inc ecx
cmp ecx, 0x12
jb 0x1005db48
mov byte [ebp - 0x6d], 0
xor ecx, ecx
mov dword [ebp - 0x24], 0x869d9584
mov dword [ebp - 0x20], 0x82a8aaa7
mov dword [ebp - 0x1c], 0xbfa3bda6
mov word [ebp - 0x18], 0xb5
mov byte [ebp - 0x16], 1
nop dword [eax + eax]
mov al, cl
sub al, 0x40
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 0xd
jb 0x1005db80
lea eax, [ebp - 0x6c]
mov byte [ebp - 0x16], 0
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10016040
push 0x1017ec3c
mov dword [0x1017ec38], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100d1320
add esp, 4
cmp byte [0x100fb562], 0
je 0x1005dbd5
call fcn.1005e4a0
mov byte [0x100fb562], 0
cmp byte [0x100fb560], 0
je 0x1005dbea
call fcn.1005df00
mov byte [0x100fb560], 0
cmp byte [0x100fb561], 0
je 0x1005dbff
call fcn.1005e1e0
mov byte [0x100fb561], 0
cmp dword [0x100fb568], 0
je 0x1005de98
mov ecx, dword [0x100fc310]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x100fc320]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1005de98
mov ecx, eax
call fcn.1000e7d0
test al, al
jne 0x1005de98
mov edx, dword [ebp - 0x10]
push ebx
xor ebx, ebx
mov edx, dword [edx + 0xcf8]
test edx, edx
je 0x1005de97
push esi
push edi
mov ecx, dword [0x100fc320]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x1005de82
lea edi, [ecx + 0x9c0]
test edi, edi
je 0x1005de82
cmp dword [edi + 0x10], 0
jg 0x1005de82
mov esi, dword [0x1017ec38]
lea eax, [ebp - 0x24]
add esi, ecx
mov ecx, 0x100fb564
push esi
push eax
call fcn.10008c20
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x100fb564]
cmp byte [ecx + 0xd], 0
jne 0x1005dcb4
mov eax, dword [esi]
cmp eax, dword [ecx + 0x10]
jge 0x1005dcb6
mov ecx, edx
cmp ecx, edx
je 0x1005de82
push esi
mov ecx, 0x100fb564
call fcn.1005e650
cmp byte [eax + 0x11], 0
je 0x1005dd77
mov eax, dword [esi]
cmp eax, 0x108
jg case.0x1005dced.5
je 0x1005dd4c
sub eax, 4
cmp eax, 0x19
ja case.0x1005dced.5
movzx eax, byte [eax + 0x1005ded8]
jmp dword [eax*4 + 0x1005dea8]
mov dword [esi], 0xcd
jmp case.0x1005dced.5
mov dword [esi], 0xc8
jmp case.0x1005dced.5
mov dword [esi], 0xd0
jmp case.0x1005dced.5
mov dword [esi], 0xce
jmp case.0x1005dced.5
mov dword [esi], 0xcf
jmp case.0x1005dced.5
mov dword [esi], 0xca
jmp case.0x1005dced.5
mov dword [esi], 0xc5
jmp case.0x1005dced.5
mov dword [esi], 0xd3
jmp case.0x1005dced.5
mov dword [esi], 0xc9
jmp case.0x1005dced.5
mov dword [esi], 0xcb
jmp case.0x1005dced.5
mov dword [esi], 0xc2
jmp case.0x1005dced.5
mov dword [esi], 0x42f
cmp dword [edi + 0x10], 0xe
jg 0x1005dd77
mov eax, 0x21e
mov dword [ebp - 0x2c], 0x3f800000
mov word [ebp - 0x30], ax
lea ecx, [edi + 4]
lea eax, [ebp - 0x34]
push eax
push dword [ecx + 0xc]
call fcn.1005e720
push esi
mov ecx, 0x100fb564
call fcn.1005e650
cmp dword [eax + 4], 0
je 0x1005ddbe
push esi
mov ecx, 0x100fb564
call fcn.1005e650
cmp dword [edi + 0x10], 0xe
movd xmm0, dword [eax + 4]
cvtdq2ps xmm0, xmm0
jg 0x1005ddbe
mov eax, 0x86
movss dword [ebp - 0x3c], xmm0
mov word [ebp - 0x40], ax
lea ecx, [edi + 4]
lea eax, [ebp - 0x44]
push eax
push dword [ecx + 0xc]
call fcn.1005e720
push esi
mov ecx, 0x100fb564
call fcn.1005e650
cmp dword [eax + 8], 0
je 0x1005de05
push esi
mov ecx, 0x100fb564
call fcn.1005e650
cmp dword [edi + 0x10], 0xe
movd xmm0, dword [eax + 8]
cvtdq2ps xmm0, xmm0
jg 0x1005de05
mov eax, 0x172
movss dword [ebp - 0x4c], xmm0
mov word [ebp - 0x50], ax
lea ecx, [edi + 4]
lea eax, [ebp - 0x54]
push eax
push dword [ecx + 0xc]
call fcn.1005e720
push esi
mov ecx, 0x100fb564
call fcn.1005e650
cmp byte [eax + 0x10], 0
je 0x1005de3b
cmp dword [edi + 0x10], 0xe
jg 0x1005de3b
mov eax, 0x96
mov dword [ebp - 0x5c], 0x3f800000
mov word [ebp - 0x60], ax
lea ecx, [edi + 4]
lea eax, [ebp - 0x64]
push eax
push dword [ecx + 0xc]
call fcn.1005e720
push esi
mov ecx, 0x100fb564
call fcn.1005e650
cmp dword [eax + 0xc], 0
je 0x1005de82
push esi
mov ecx, 0x100fb564
call fcn.1005e650
cmp dword [edi + 0x10], 0xe
movd xmm0, dword [eax + 0xc]
cvtdq2ps xmm0, xmm0
jg 0x1005de82
mov eax, 0x7de
movss dword [ebp - 0x74], xmm0
mov word [ebp - 0x78], ax
lea ecx, [edi + 4]
lea eax, [ebp - 0x7c]
push eax
push dword [ecx + 0xc]
call fcn.1005e720
mov eax, dword [ebp - 0x10]
inc ebx
mov edx, dword [eax + ebx*4 + 0xcf8]
test edx, edx
jne 0x1005dc57
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret