Function at 0x10040450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a97b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x10070014]
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 [0x10067f80]
push eax
movzx eax, word [edi + 0xf4]
push eax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x2d6c66
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x12
jb 0x100404a1
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 0x100404cf
mov eax, dword [edx]
jmp 0x100404d1
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x23], 0
jne 0x100404de
xor ecx, ecx
jmp 0x100404ed
lea ecx, [ebp - 0x23]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100404e4
sub ecx, esi
push ecx
lea eax, [ebp - 0x23]
mov ecx, edx
push eax
call fcn.10005550
lea eax, [ebp - 0x80]
push eax
call fcn.10009e40
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x10040516
mov edx, dword [edx]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp byte [edx], 0
jne 0x10040531
xor ecx, ecx
jmp 0x1004053f
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040536
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.10005550
mov byte [ebp - 4], 1
mov esi, dword [edi + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test esi, esi
je 0x1004056f
push 4
push esi
call ebx
test eax, eax
jne 0x1004056f
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call dword [0x100665c8]
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x10040581
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.10005420
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 0x100405ac
inc eax
push eax
push dword [ebp - 0x80]
call fcn.10005420
movzx eax, word [edi + 0xf8]
test ax, ax
jne 0x10040646
mov cl, 0x73
mov byte [ebp - 0xe], 0
mov al, 0x5e
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 0x100405e8
xor ecx, ecx
jmp 0x100405f9
lea ecx, [ebp - 0xf]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100405f0
sub ecx, edx
push ecx
lea eax, [ebp - 0xf]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10005550
mov dword [ebp - 4], 2
mov esi, dword [edi + 0x54]
test esi, esi
je 0x10040629
push 4
push esi
call ebx
test eax, eax
jne 0x10040629
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call dword [0x100665c8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x10040772
inc eax
push eax
push dword [ebp - 0x3c]
jmp 0x1004076d
push eax
mov cl, 0x2f
mov dword [ebp - 0x20], 0x4c467b2f
mov dword [ebp - 0x1c], 0x155b4a44
xor eax, eax
mov dword [ebp - 0x18], 0x4b0a0c0f
mov byte [ebp - 0x14], 0
xor byte [ebp + eax - 0x1f], cl
inc eax
cmp eax, 0xb
jae 0x10040673
mov cl, byte [ebp - 0x20]
jmp 0x10040664
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 0x10040694
mov eax, dword [edx]
jmp 0x10040696
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x1f], 0
jne 0x100406a3
xor ecx, ecx
jmp 0x100406b9
lea ecx, [ebp - 0x1f]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100406b0
sub ecx, esi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10005550
lea eax, [ebp - 0x80]
push eax
call fcn.10009e40
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 3
cmp dword [edx + 0x14], 0x10
jb 0x100406e2
mov edx, dword [edx]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp byte [edx], 0
jne 0x100406fd
xor ecx, ecx
jmp 0x1004070b
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040702
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.10005550
mov byte [ebp - 4], 4
mov esi, dword [edi + 0x54]
test esi, esi
je 0x10040735
push 4
push esi
call ebx
test eax, eax
jne 0x10040735
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call dword [0x100665c8]
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x10040747
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.10005420
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 0x10040772
inc eax
push eax
push dword [ebp - 0x80]
call fcn.10005420
movzx eax, word [edi + 0xf4]
sub esp, 8
movss xmm1, dword [0x1006771c]
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 [0x10067ed0]
movups xmmword [ebp - 0x50], xmm0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0xf
jb 0x100407a8
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 0x100407d6
mov eax, dword [edx]
jmp 0x100407d8
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x4f], 0
jne 0x100407e5
xor ecx, ecx
jmp 0x100407f9
lea ecx, [ebp - 0x4f]
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100407f0
sub ecx, esi
push ecx
lea eax, [ebp - 0x4f]
mov ecx, edx
push eax
call fcn.10005550
lea eax, [ebp - 0x98]
push eax
call fcn.10009e40
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 5
cmp dword [edx + 0x14], 0x10
jb 0x10040825
mov edx, dword [edx]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
cmp byte [edx], 0
jne 0x10040840
xor ecx, ecx
jmp 0x1004084e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040845
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.10005550
mov byte [ebp - 4], 6
mov esi, dword [edi + 0x58]
test esi, esi
je 0x10040878
push 4
push esi
call ebx
test eax, eax
jne 0x10040878
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x100665c8]
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x1004088a
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10005420
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
cmp eax, 0x10
jb 0x100408b4
inc eax
push eax
push dword [ebp - 0x98]
call fcn.10005420
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret