Function at 0x10040ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x100be084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
movzx eax, word [edi + 0xf6]
xor ecx, ecx
movaps xmm0, xmmword [0x100b2300]
push eax
movzx eax, word [edi + 0xf4]
push eax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x7464c
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x12
jb 0x10040f41
sub esp, 0x18
mov byte [ebp - 0x11], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10040f6f
mov eax, dword [edx]
jmp 0x10040f71
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x23], 0
jne 0x10040f7e
xor ecx, ecx
jmp 0x10040f8d
lea ecx, [ebp - 0x23]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040f84
sub ecx, esi
push ecx
lea eax, [ebp - 0x23]
mov ecx, edx
push eax
call fcn.100055d0
lea eax, [ebp - 0x80]
push eax
call fcn.10004f40
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x10040fb6
mov edx, dword [edx]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp byte [edx], 0
jne 0x10040fd1
xor ecx, ecx
jmp 0x10040fdf
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040fd6
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.100055d0
mov byte [ebp - 4], 1
mov esi, dword [edi + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test esi, esi
je 0x1004100f
push 4
push esi
call ebx
test eax, eax
jne 0x1004100f
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call dword [0x100b0938]
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x10041024
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.10005480
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp eax, 0x10
jb 0x10041052
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.10005480
movzx eax, word [edi + 0xf8]
test ax, ax
jne 0x100410ed
mov cl, 0x75
mov byte [ebp - 0xe], 0
mov al, 0x58
mov byte [ebp - 0x10], cl
xor al, cl
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xf], al
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jne 0x1004108e
xor ecx, ecx
jmp 0x1004109d
lea ecx, [ebp - 0xf]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041094
sub ecx, edx
push ecx
lea eax, [ebp - 0xf]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100055d0
mov dword [ebp - 4], 2
mov esi, dword [edi + 0x54]
test esi, esi
je 0x100410cd
push 4
push esi
call ebx
test eax, eax
jne 0x100410cd
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call dword [0x100b0938]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x1004121d
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
jmp 0x10041218
push eax
mov cl, 0x12
mov dword [ebp - 0x20], 0x717b4612
mov dword [ebp - 0x1c], 0x28667779
xor eax, eax
mov dword [ebp - 0x18], 0x76373132
mov byte [ebp - 0x14], 0
nop dword [eax + eax]
xor byte [ebp + eax - 0x1f], cl
inc eax
cmp eax, 0xb
jae 0x1004111f
mov cl, byte [ebp - 0x20]
jmp 0x10041110
sub esp, 0x18
mov byte [ebp - 0x14], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10041140
mov eax, dword [edx]
jmp 0x10041142
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x1f], 0
jne 0x1004114f
xor ecx, ecx
jmp 0x1004115e
lea ecx, [ebp - 0x1f]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041155
sub ecx, esi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.100055d0
lea eax, [ebp - 0x80]
push eax
call fcn.10004f40
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 3
cmp dword [edx + 0x14], 0x10
jb 0x10041187
mov edx, dword [edx]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp byte [edx], 0
jne 0x100411a2
xor ecx, ecx
jmp 0x100411b0
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100411a7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.100055d0
mov byte [ebp - 4], 4
mov esi, dword [edi + 0x54]
test esi, esi
je 0x100411da
push 4
push esi
call ebx
test eax, eax
jne 0x100411da
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call dword [0x100b0938]
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x100411ef
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.10005480
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp eax, 0x10
jb 0x1004121d
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.10005480
movzx eax, word [edi + 0xf4]
sub esp, 8
movss xmm1, dword [0x100b1f10]
xor ecx, ecx
mov byte [ebp - 0x40], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
movaps xmm0, xmmword [0x100b2500]
movups xmmword [ebp - 0x50], xmm0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0xf
jb 0x10041253
sub esp, 0x18
mov byte [ebp - 0x40], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10041281
mov eax, dword [edx]
jmp 0x10041283
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x4f], 0
jne 0x10041290
xor ecx, ecx
jmp 0x1004129f
lea ecx, [ebp - 0x4f]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041296
sub ecx, esi
push ecx
lea eax, [ebp - 0x4f]
mov ecx, edx
push eax
call fcn.100055d0
lea eax, [ebp - 0x98]
push eax
call fcn.10004f40
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 5
cmp dword [edx + 0x14], 0x10
jb 0x100412cb
mov edx, dword [edx]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
cmp byte [edx], 0
jne 0x100412e6
xor ecx, ecx
jmp 0x100412f9
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100412f0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.100055d0
mov byte [ebp - 4], 6
mov esi, dword [edi + 0x58]
test esi, esi
je 0x10041323
push 4
push esi
call ebx
test eax, eax
jne 0x10041323
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x100b0938]
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x10041338
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.10005480
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
cmp eax, 0x10
jb 0x10041368
inc eax
lea ecx, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
call fcn.10005480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret